MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003102VCMIGUI - PreGamepublic2020-01-21 08:402020-01-23 20:02
Reportertoneyisnow 
Assigned Totoneyisnow 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version0.99 
Target VersionFixed in Version0.next 
Summary0003102: LobbyScreen UI is showing multiple Difficulty options in toggle group when Loading map.
DescriptionScenario: 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.
TagsNo tags attached.
Attached Filesjpg file icon 1033189811.jpg [^] (320,489 bytes) 2020-01-21 08:40


png file icon fixed.PNG [^] (78,070 bytes) 2020-01-21 08:41

- Relationships

-  Notes
(0007858)
toneyisnow (developer)
2020-01-21 08:41

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.
(0007859)
toneyisnow (developer)
2020-01-21 08:41

How fix:
Add a new method to ToggleGroup class: setSelectedOnly, which will disable all other buttons and then set the selected button.
(0007860)
toneyisnow (developer)
2020-01-23 15:48

This is fixed by my pull request https://github.com/vcmi/vcmi/pull/624 [^]
(0007861)
SXX (administrator)
2020-01-23 20:02

Thanks for the fix.

- Issue History
Date Modified Username Field Change
2020-01-21 08:40 toneyisnow New Issue
2020-01-21 08:40 toneyisnow File Added: 1033189811.jpg
2020-01-21 08:41 toneyisnow Note Added: 0007858
2020-01-21 08:41 toneyisnow Note Added: 0007859
2020-01-21 08:41 toneyisnow File Added: fixed.PNG
2020-01-23 15:48 toneyisnow Note Added: 0007860
2020-01-23 20:02 SXX Note Added: 0007861
2020-01-23 20:02 SXX Status new => resolved
2020-01-23 20:02 SXX Fixed in Version => 0.next
2020-01-23 20:02 SXX Resolution open => fixed
2020-01-23 20:02 SXX Assigned To => toneyisnow

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2020 MantisBT Team
Hosting provided by DigitalOcean