triplea icon indicating copy to clipboard operation
triplea copied to clipboard

Fixing ordering of GamePlayer in sidePanel

Open RenXFlo opened this issue 1 year ago • 4 comments

Fixed ordering for EconomyPanels in game (tested on 3 maps TWW included)

Oredering

RenXFlo avatar Oct 20 '24 08:10 RenXFlo

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 20 '24 08:10 CLAassistant

@frigoref could you look at this pull request and give me feedback

RenXFlo avatar Oct 20 '24 08:10 RenXFlo

@RenXFlo Did you check whether the ordering is still fixed?

frigoref avatar Oct 20 '24 15:10 frigoref

@RenXFlo Did you check whether the ordering is still fixed?

@frigoref It is on my side aam I some anomaly ? Does it not work for you ?

RenXFlo avatar Oct 20 '24 16:10 RenXFlo

@RenXFlo Did you check whether the ordering is still fixed?

@frigoref It is on my side aam I some anomaly ? Does it not work for you ?

@RenXFlo No, but I haven't tested it. So I wanted to confirm that after the changes done it is still giving the result from the screenshot of your initial post in this thread. When you confirm this I would merge the PR.

frigoref avatar Nov 16 '24 19:11 frigoref

@frigoref Yes it still does work as shown in the image.

RenXFlo avatar Nov 17 '24 17:11 RenXFlo

Would there be any way of removing isHidden players from these side menus.

Thank you

Cheers...

WCSumpton avatar Mar 31 '25 22:03 WCSumpton

@WCSumpton I do not understand what you are aiming at. 'isHidden' seems to be a method name. What does it have to do with the side menu which is an UI element?

frigoref avatar Apr 01 '25 10:04 frigoref

"isHidden" is an optional setting for players and hides the player from in the player selection screen. Since this is talking about displaying players in the UI side panel. I was wondering if players marked "isHidden" could also be hidden from there.

Cheers...

WCSumpton avatar Apr 11 '25 02:04 WCSumpton

@WCSumpton The available XML option isHidden is documented under https://www.starlords3k.com/XOB.html as

Optional switch If true, does not show in player selection window.

Hence, it should not be used for a display property of a player in the table Politics.

@DanVanAtta Could you please review this PR as requested - meaning answering the question on file PlayerOrderComparator.java in section Files changed?

frigoref avatar Apr 21 '25 17:04 frigoref