1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/client/lobby
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
..
CBonusSelection.cpp Gui cleanup4 (#446) 2018-07-25 01:36:48 +03:00
CBonusSelection.h Warnings fixes (#538) 2019-01-19 13:52:02 +03:00
CLobbyScreen.cpp Fix bug: LobbyScreen UI has a bug on the Difficulty toggle group. 2020-01-21 01:09:08 -08:00
CLobbyScreen.h Gui cleanup4 (#446) 2018-07-25 01:36:48 +03:00
CSavingScreen.cpp Gui cleanup4 (#446) 2018-07-25 01:36:48 +03:00
CSavingScreen.h Fix double free and use of dead reference when saving (#445) 2018-04-07 22:21:28 +07:00
CScenarioInfoScreen.cpp Gui cleanup4 (#446) 2018-07-25 01:36:48 +03:00
CScenarioInfoScreen.h Gui cleanup4 (#446) 2018-07-25 01:36:48 +03:00
CSelectionBase.cpp Optimize button responsiveness during pregame options 2019-04-20 18:26:54 +02:00
CSelectionBase.h Optimize button responsiveness during pregame options 2019-04-20 18:26:54 +02:00
OptionsTab.cpp Gui cleanup4 (#446) 2018-07-25 01:36:48 +03:00
OptionsTab.h Full rework of pre-game interface and networking 2018-04-04 14:24:26 +07:00
RandomMapTab.cpp Fix broken RMG monster strength buttons 2018-08-24 19:20:27 +03:00
RandomMapTab.h Fix broken RMG monster strength buttons 2018-08-24 19:20:27 +03:00
SelectionTab.cpp Full rework of pre-game interface and networking 2018-04-04 14:24:26 +07:00
SelectionTab.h Full rework of pre-game interface and networking 2018-04-04 14:24:26 +07:00