HomeWildfire Games

New UI for gamesetup settings

Description

New UI for gamesetup settings

Nuke the more options window
Create 3 tabs containing all options from more options and map options, giving more space for new options
Rename options => settings in gamesetup

Reviewed By: elexis
Comments By: ffffffff and gentz
Differential Revision: https://code.wildfiregames.com/D1027

Details

Committed
bbJan 21 2018, 1:35 PM
Reviewer
elexis
Differential Revision
D1027: New UI for gamesetup options
Parents
rP20944: Add missing icons, and update boudica's
Branches
Unknown
Tags
Unknown
Build Status
Buildable 4583
Build 7982: Post-Commit Build

Event Timeline

elexis added a subscriber: elexis.Jan 21 2018, 6:14 PM

We should probably increase the dropdown width to what it was before, at least for > 1024x768. The unused GUI space is still ungood, we just need scrolling.

Perhaps we could move the options below the tabs, never display options to clients but always display the full gamedescription for them and for the host, only display the gamedescription parts that aren't part of the gamesettings, maybe.

Also map selection dropdown height should be increased

i got once a bug hope this is not coming again when i test commit now:
ERROR: JavaScript error: gui/gamesetup/gamesetup.js line 2248
TypeError: g_SettingsTabsGUI[g_TabCategorySelected] is undefined

updateGUIObjects@gui/gamesetup/gamesetup.js:2248:1
initGUIObjects/<@gui/gamesetup/gamesetup.js:1204:4
selectPanel@gui/common/tab_buttons.js:74:2
placeTabButtons@gui/common/tab_buttons.js:51:2
initGUIObjects@gui/gamesetup/gamesetup.js:1196:1
onTick@gui/gamesetup/gamesetup.js:1909:3
__eventhandler388 (tick)@setupWindow tick:0:1

i went into gamesetup gui tested all gone out and back again. this appeared all over screen.
r20960 freshly updated and compiled no changes.

ffffffff added a comment.EditedJan 22 2018, 7:18 AM

how about hitting cancel key escape to hide tab content back?

This would it D1242

bb added a comment.Jan 22 2018, 2:02 PM

i got once a bug hope this is not coming again when i test commit now:
ERROR: JavaScript error: gui/gamesetup/gamesetup.js line 2248
TypeError: g_SettingsTabsGUI[g_TabCategorySelected] is undefined

updateGUIObjects@gui/gamesetup/gamesetup.js:2248:1
initGUIObjects/<@gui/gamesetup/gamesetup.js:1204:4
selectPanel@gui/common/tab_buttons.js:74:2
placeTabButtons@gui/common/tab_buttons.js:51:2
initGUIObjects@gui/gamesetup/gamesetup.js:1196:1
onTick@gui/gamesetup/gamesetup.js:1909:3
__eventhandler388 (tick)@setupWindow tick:0:1

i went into gamesetup gui tested all gone out and back again. this appeared all over screen.
r20960 freshly updated and compiled no changes.

Got it reproduced: hold Alt+S/W when switching the gui page

We should do a long-strings test, I'm concerned that the map dropdown width is too small for a number of languages and maps

In german, a number of maps don't fit into that dropdown, whereas they did in a22.

Sorry for the complaint, but the checkbox is not vertically centered, it was this commit, wasn't it?

bb added inline comments.Feb 16 2018, 9:39 PM
/ps/trunk/binaries/data/mods/public/gui/gamesetup/gamesetup.xml
179

Must have gone wrong somewhere in writing the patch

Imarok added a subscriber: Imarok.Feb 21 2018, 6:33 PM
Imarok added inline comments.
/ps/trunk/binaries/data/mods/public/gui/gamesetup/gamesetup.js
1022

semicolon

elexis added inline comments.Oct 24 2018, 2:04 PM
/ps/trunk/binaries/data/mods/public/gui/gamesetup/gamesetup.xml
145

rebase error, snMapPreview was removed in rP20887

elexis added inline comments.Sep 1 2019, 5:20 PM
/ps/trunk/binaries/data/mods/public/gui/gamesetup/gamesetup.js
1414

unused