diff options
author | Bastien Bouclet | 2019-11-13 21:09:21 +0100 |
---|---|---|
committer | Bastien Bouclet | 2019-11-24 14:06:25 +0100 |
commit | 2c812a6b7a0b24b9012379118867fb4f64f32c14 (patch) | |
tree | 6f4225127305dbdae8f3a0dc7dfe61e51af51b1a /gui/themes/scummremastered/remastered_layout.stx | |
parent | 3db6aed4e474d5b16639ee4958d1cd13504d12fb (diff) | |
download | scummvm-rg350-2c812a6b7a0b24b9012379118867fb4f64f32c14.tar.gz scummvm-rg350-2c812a6b7a0b24b9012379118867fb4f64f32c14.tar.bz2 scummvm-rg350-2c812a6b7a0b24b9012379118867fb4f64f32c14.zip |
GUI: Add DropdownButtonWidget and use it in the launcher for mass add
DropdownButtonWidget is a button split in two parts vertically. Clicking
the left part triggers a default action. Clicking the right part shows a
list of other actions the user can choose from.
Using this widget on the launcher lets 'Mass add' be a secondary action
of the 'Add' button, removing the necessity of pressing the shift key to
access the feature.
Diffstat (limited to 'gui/themes/scummremastered/remastered_layout.stx')
-rw-r--r-- | gui/themes/scummremastered/remastered_layout.stx | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/gui/themes/scummremastered/remastered_layout.stx b/gui/themes/scummremastered/remastered_layout.stx index 092bbc0134..3d5587ed4b 100644 --- a/gui/themes/scummremastered/remastered_layout.stx +++ b/gui/themes/scummremastered/remastered_layout.stx @@ -58,6 +58,8 @@ <def var = 'Predictive.Button.Width' value = '60' /> <def var = 'Predictive.ShowDeletePic' value = '1'/> + <def var = 'DropdownButton.Width' value = '13'/> + <widget name = 'OptionsLabel' size = '115, Globals.Line.Height' textalign = 'right' @@ -75,6 +77,9 @@ <widget name = 'Button' size = '108, 24' /> + <widget name = 'LauncherButton' + size = '130, 24' + /> <widget name = 'WideButton' size = '216, 24' /> @@ -160,31 +165,31 @@ <widget name = 'GameList'/> <layout type = 'vertical' padding = '10, 0, 0, 0'> <widget name = 'StartButton' - type = 'Button' + type = 'LauncherButton' /> <widget name = 'LoadGameButton' - type = 'Button' + type = 'LauncherButton' /> <space size = '10' /> <widget name = 'AddGameButton' - type = 'Button' + type = 'LauncherButton' /> <widget name = 'EditGameButton' - type = 'Button' + type = 'LauncherButton' /> <widget name = 'RemoveGameButton' - type = 'Button' + type = 'LauncherButton' /> <space size = '10' /> <widget name = 'OptionsButton' - type = 'Button' + type = 'LauncherButton' /> <widget name = 'AboutButton' - type = 'Button' + type = 'LauncherButton' /> <space size = '10' /> <widget name = 'QuitButton' - type = 'Button' + type = 'LauncherButton' /> </layout> </layout> @@ -1820,5 +1825,6 @@ </layout> </layout> </dialog> - + <dialog name = 'DropdownDialog' overlays = 'screen_center'> + </dialog> </layout_info> |