Upgrade XNAUI to v3.1.0#821
Conversation
|
Nightly build for this pull request:
|
|
XNAUI v3.1 introduces XNAScrollPanel and HorizontalScrollBar. They require new assets -- horizontal scrollbar images and a corner panel for scroll panel, optionally (not sure how much that one is needed since it falls back to a black rectangle). I have whipped up this script to quickly convert existing scrollbar assets with ImageMagick. You need to place this script in the folder where the assets are and run it. @echo off
REM This script creates assets for new XNAHorizontalScrollBar from existing
REM XNAScrollBar assets by transposing the images and renaming them.
REM It requires ImageMagick to be installed and available in the PATH.
REM Usage: Run this script in the directory containing the original assets.
REM Ensure ImageMagick is installed
where magick >nul 2>&1
if %errorlevel% neq 0 (
echo ImageMagick is not installed or not found in PATH.
echo Please install ImageMagick and ensure it is available in the PATH.
exit /b 1
)
REM Transpose the images for horizontal scrollbar assets
magick sbBackground.png -transpose hsbBackground.png
magick sbUpArrow.png -transpose hsbLeftArrow.png
magick sbDownArrow.png -transpose hsbRightArrow.png
magick sbThumbTop.png -transpose hsbThumbLeft.png
magick sbMiddle.png -transpose hsbMiddle.png
magick sbThumbBottom.png -transpose hsbThumbRight.png
echo Press any key to continue...
pause >nulI think the shipped client config has to be updated with those in mind. Also I guess we could add that to migration docs, though this is kinda gray area-ish, because existing functionality is not broken, it's only the new functionality that requires those actions. |
|
Also #773 is overlapping with this PR and has changes that go hand in hand with this one. Should probably cherry pick the |
|
@Metadorius my intension is the bug fix Rampastring/Rampastring.XNAUI#47 to solve the game filter suggestion being actually filter, resulting in all game rooms invisiable the horizontal bars aren't enabled by default right? if they aren't enabled by default -- I'll merge this PR and leave all horizontal bar things to your PR |
|
They aren't, but the XNAScrollPanel could potentially be used by someone. I guess doesn't matter a whole lot, but something to keep in mind. |
No description provided.