Commit Graph
5 Commits
Author SHA1 Message Date
toneyisnow 8341ba3c27 Update according to comments. 2020-01-22 23:07:20 -08:00
toneyisnow 01ca21ae67 Fix bug: LobbyScreen UI has a bug on the Difficulty toggle group.
Scenario: In LoadGame Lobby screen, the difficulty toggle group is showing multiple choices, but actually only one valid is working.

The reason is, in the Lobby screen Initialization code will set the difficulty = 0, and each time the player changes a map in the selection, the toggle group control is not resetting the difficulty buttons to disabled state.

How fix:
Add a new method to ToggleGroup class: setSelectedOnly, which will disable all other buttons and then set the selected button.

Note:
During the game loading time, the client is loading the map, and send a NetPack to server: LobbySetMap, and send a NetPack to Interface: LobbyUpdateState.
In the LobbyUpdateState it sets the map difficulty.
2020-01-21 01:09:08 -08:00
toneyisnowandArseniy Shestakov 8bfe510e9c Fix one space issue. 2020-01-19 04:12:59 +00:00
toneyisnowandArseniy Shestakov a1ea72d84a Update according to comments. 2020-01-19 04:12:59 +00:00
toneyisnowandArseniy Shestakov 0fe3c0a569 Initialize the change. 2020-01-19 04:12:59 +00:00