Delta-v/Content.Client/UserInterface/Systems/Ghost/Controls/Roles
MilenVolf c0c9a8c2e4 Collapsible ghost roles menu (#32717)
* Make ghost roles collapsible

* Save `BodyVisible` state of each `Collapsible` box

* Make ghost role collapsible only when group has more than 1 role

* Make it a little prettier

* Make only ghost role buttons collapsible

* Apply requested changes

* Typo

* Small cleanup

* Store in list, instead of iterating

* Make unique ids more unique

* Move it out of the cycle

* Make _collapsibleBoxes into dictionary and use key instead of Collapsible boxes names

Added TODO. So after the problem will be fixed in `GhostRolesEui`, it should be mirrored and fixed here too.

* Put TODO in GhostRolesEui. I guess Issue must be made for this

* Use HashSet instead of Dictionary as suggested. Invert the HashSet, so being present means it uncollapsed

I decided to invert HashSet to _uncollapsedStates, because players surely will have more collapsed buttons than opened, so we optimise memory usage a little bit.

* Remove extra space from ghost roles window

* Add buttons stretching. Size 3:1
2024-11-15 17:26:03 +00:00
..
GhostRoleButtonsBox.xaml Collapsible ghost roles menu (#32717) 2024-11-15 17:26:03 +00:00
GhostRoleButtonsBox.xaml.cs Collapsible ghost roles menu (#32717) 2024-11-15 17:26:03 +00:00
GhostRoleEntryButtons.xaml Collapsible ghost roles menu (#32717) 2024-11-15 17:26:03 +00:00
GhostRoleEntryButtons.xaml.cs Add ghost role raffles (#26629) 2024-05-07 04:43:28 +02:00
GhostRoleInfoBox.xaml Collapsible ghost roles menu (#32717) 2024-11-15 17:26:03 +00:00
GhostRoleInfoBox.xaml.cs Collapsible ghost roles menu (#32717) 2024-11-15 17:26:03 +00:00
GhostRoleRulesWindow.xaml Roundstart antag role restrictions revival (#20108) 2023-09-27 21:59:12 +02:00
GhostRoleRulesWindow.xaml.cs Hud refactor (#7202) 2022-10-12 10:16:23 +02:00
GhostRolesEui.cs Collapsible ghost roles menu (#32717) 2024-11-15 17:26:03 +00:00
GhostRolesWindow.xaml Add ghost role raffles (#26629) 2024-05-07 04:43:28 +02:00
GhostRolesWindow.xaml.cs Collapsible ghost roles menu (#32717) 2024-11-15 17:26:03 +00:00
MakeGhostRoleEui.cs Add ghost role raffles (#26629) 2024-05-07 04:43:28 +02:00
MakeGhostRoleWindow.xaml Add ghost role raffles (#26629) 2024-05-07 04:43:28 +02:00
MakeGhostRoleWindow.xaml.cs Add ghost role raffles (#26629) 2024-05-07 04:43:28 +02:00