mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-26 08:41:13 +02:00
01ca21ae67
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. |
||
---|---|---|
.. | ||
CBonusSelection.cpp | ||
CBonusSelection.h | ||
CLobbyScreen.cpp | ||
CLobbyScreen.h | ||
CSavingScreen.cpp | ||
CSavingScreen.h | ||
CScenarioInfoScreen.cpp | ||
CScenarioInfoScreen.h | ||
CSelectionBase.cpp | ||
CSelectionBase.h | ||
OptionsTab.cpp | ||
OptionsTab.h | ||
RandomMapTab.cpp | ||
RandomMapTab.h | ||
SelectionTab.cpp | ||
SelectionTab.h |