Skip to content

Conversation

SadPencil
Copy link
Member

No description provided.

Copy link

Nightly build for this pull request:

  • artifacts.zip
    This comment is automatic and is meant to allow guests to get latest automatic builds without registering. It is updated on every successful build.

@SadPencil SadPencil added this to the 2.13.0 milestone Aug 19, 2025
@Metadorius
Copy link
Member

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 >nul

I 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.

@Metadorius
Copy link
Member

Also #773 is overlapping with this PR and has changes that go hand in hand with this one. Should probably cherry pick the XNAClientScrollPanel : XNAScrollPanel from there.

@SadPencil
Copy link
Member Author

@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

@Metadorius
Copy link
Member

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.

@SadPencil SadPencil merged commit 4fc67bf into CnCNet:develop Aug 20, 2025
1 check passed
@SadPencil SadPencil deleted the update-xnaui branch August 20, 2025 15:31
idshen pushed a commit to idshen/Sxna-cncnet-client that referenced this pull request Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants