Open main menu

Difference between revisions of "GUI Themes/STX Syntax"

6,084 bytes removed ,  07:42, 12 June 2009
→‎GUI Widget Distribution: -- theme widget list is incomplete. And there is no point to keep it in sync. Thus removing it
(→‎<widget> (local widget definition): -- described textalign widget property)
(→‎GUI Widget Distribution: -- theme widget list is incomplete. And there is no point to keep it in sync. Thus removing it)
Line 762: Line 762:
===== GUI Widget Distribution =====
===== GUI Widget Distribution =====


This is a list of all the Widget definitions which are expected by the Theme engine, inside each of the Dialogs of the GUI:
For a complete list of all the Widget definitions which are expected by the Theme engine, see <tt>scummmodern_layout.stx</tt> file in <tt>scummmodern</tt> theme.
 
* <tt>Dialog.Launcher</tt>:
** <tt>Dialog.Launcher.Version</tt>
** <tt>Dialog.Launcher.Logo</tt>
** <tt>Dialog.Launcher.GameList</tt>
** <tt>Dialog.Launcher.StartButton</tt>
** <tt>Dialog.Launcher.AddGameButton</tt>
** <tt>Dialog.Launcher.EditGameButton</tt>
** <tt>Dialog.Launcher.RemoveGameButton</tt>
** <tt>Dialog.Launcher.OptionsButton</tt>
** <tt>Dialog.Launcher.AboutButton</tt>
** <tt>Dialog.Launcher.QuitButton</tt>
* <tt>Dialog.Browser</tt>:
** <tt>Dialog.Browser.Choose</tt>
** <tt>Dialog.Browser.Cancel</tt>
** <tt>Dialog.Browser.Up</tt>
** <tt>Dialog.Browser.List</tt>
** <tt>Dialog.Browser.Path</tt>
** <tt>Dialog.Browser.Headline</tt>
* <tt>Dialog.GlobalOptions</tt>:
** <tt>Dialog.GlobalOptions.Ok</tt>
** <tt>Dialog.GlobalOptions.Cancel</tt>
** <tt>Dialog.GlobalOptions.TabWidget</tt>
* <tt>Dialog.GlobalOptions_Graphics</tt>:
** <tt>Dialog.GlobalOptions_Graphics.grModePopup</tt>
** <tt>Dialog.GlobalOptions_Graphics.grRenderPopup</tt>
** <tt>Dialog.GlobalOptions_Graphics.grAspectCheckbox</tt>
** <tt>Dialog.GlobalOptions_Graphics.grFullScreenCheckbox</tt>
* <tt>Dialog.GlobalOptions_Audio</tt>:<tt>-</tt>Dialog.GlobalOptions_Audio.auMidiPopup<tt>-</tt>Dialog.GlobalOptions_Audio.auSampleRatePopup<tt>-</tt>Dialog.GlobalOptions_Audio.subToggleDesc<tt>-</tt>Dialog.GlobalOptions_Audio.subToggleButton<tt>-</tt>Dialog.GlobalOptions_Audio.subSubtitleSpeedSlider<tt>-</tt>Dialog.GlobalOptions_Audio.subSubtitleSpeedDesc<tt>-</tt>Dialog.GlobalOptions_Audio.subSubtitleSpeedLabel`
* <tt>Dialog.GlobalOptions_Volume</tt>:
** <tt>Dialog.GlobalOptions_Volume.vcMusicText</tt>
** <tt>Dialog.GlobalOptions_Volume.vcMusicSlider</tt>
** <tt>Dialog.GlobalOptions_Volume.vcMusicLabel</tt>
** <tt>Dialog.GlobalOptions_Volume.vcSfxText</tt>
** <tt>Dialog.GlobalOptions_Volume.vcSfxSlider</tt>
** <tt>Dialog.GlobalOptions_Volume.vcSfxLabel</tt>
** <tt>Dialog.GlobalOptions_Volume.vcSpeechText</tt>
** <tt>Dialog.GlobalOptions_Volume.vcSpeechLabel</tt>
** <tt>Dialog.GlobalOptions_Volume.vcSpeechSlider</tt>
* <tt>Dialog.GlobalOptions_MIDI</tt>:
** <tt>Dialog.GlobalOptions_MIDI.mcFontButton</tt>
** <tt>Dialog.GlobalOptions_MIDI.mcFontClearButton</tt>
** <tt>Dialog.GlobalOptions_MIDI.mcFontPath</tt>
** <tt>Dialog.GlobalOptions_MIDI.mcMixedCheckbox</tt>
** <tt>Dialog.GlobalOptions_MIDI.mcMt32Checkbox</tt>
** <tt>Dialog.GlobalOptions_MIDI.mcGSCheckbox</tt>
** <tt>Dialog.GlobalOptions_MIDI.mcMidiGainText</tt>
** <tt>Dialog.GlobalOptions_MIDI.mcMidiGainSlider</tt>
** <tt>Dialog.GlobalOptions_MIDI.mcMidiGainLabel</tt>
* <tt>Dialog.GlobalOptions_Paths</tt>:
** <tt>Dialog.GlobalOptions_Paths.SaveButton</tt>
** <tt>Dialog.GlobalOptions_Paths.SavePath</tt>
** <tt>Dialog.GlobalOptions_Paths.ThemeButton</tt>
** <tt>Dialog.GlobalOptions_Paths.ThemePath</tt>
** <tt>Dialog.GlobalOptions_Paths.ExtraButton</tt>
** <tt>Dialog.GlobalOptions_Paths.ExtraPath</tt>
* <tt>Dialog.GlobalOptions_Misc</tt>:
** <tt>Dialog.GlobalOptions_Misc.ThemeButton</tt>
** <tt>Dialog.GlobalOptions_Misc.CurTheme</tt>
** <tt>Dialog.GlobalOptions_Misc.AutosavePeriod</tt>
* <tt>Dialog.GameOptions</tt>:
** <tt>Dialog.GameOptions.Ok</tt>
** <tt>Dialog.GameOptions.Cancel</tt>
** <tt>Dialog.GameOptions.TabWidget</tt>
* <tt>Dialog.GameOptions_Graphics</tt>:
** <tt>Dialog.GameOptions_Graphics.EnableTabCheckbox</tt>
** ''All widgets from'' <tt>Dialog.GlobalOptions_Graphics</tt>
* <tt>Dialog.GameOptions_Audio</tt>:
** <tt>Dialog.GameOptions_Graphics.EnableTabCheckbox</tt>
** ''All widgets from'' <tt>Dialog.GlobalOptions_Audio</tt>
* <tt>Dialog.GameOptions_Volume</tt>:
** <tt>Dialog.GameOptions_Graphics.EnableTabCheckbox</tt>
** ''All widgets from'' <tt>Dialog.GlobalOptions_Volume</tt>
* <tt>Dialog.GameOptions_MIDI</tt>:
** <tt>Dialog.GameOptions_Graphics.EnableTabCheckbox</tt>
** ''All widgets from'' <tt>Dialog.GlobalOptions_MIDI</tt>
* <tt>Dialog.GameOptions_Game</tt>:
** <tt>Dialog.GameOptions_Game.Id</tt>
** <tt>Dialog.GameOptions_Game.Domain</tt>
** <tt>Dialog.GameOptions_Game.Name</tt>
** <tt>Dialog.GameOptions_Game.Desc</tt>
** <tt>Dialog.GameOptions_Game.Lang</tt>
** <tt>Dialog.GameOptions_Game.Platform</tt>
* <tt>Dialog.GameOptions_Paths</tt>:
** <tt>Dialog.GameOptions_Paths.Savepath</tt>
** <tt>Dialog.GameOptions_Paths.SavepathText</tt>
** <tt>Dialog.GameOptions_Paths.Extrapath</tt>
** <tt>Dialog.GameOptions_Paths.ExtrapathText</tt>
** <tt>Dialog.GameOptions_Paths.Gamepath</tt>
** <tt>Dialog.GameOptions_Paths.GamepathText</tt>
* <tt>Dialog.ScummMain</tt>:
** <tt>Dialog.ScummMain.Resume</tt>
** <tt>Dialog.ScummMain.Save</tt>
** <tt>Dialog.ScummMain.Options</tt>
** <tt>Dialog.ScummMain.Help</tt>
** <tt>Dialog.ScummMain.About</tt>
** <tt>Dialog.ScummMain.Quit</tt>
* <tt>Dialog.ScummConfig</tt>:
** <tt>Dialog.ScummConfig.Cancel</tt>
** <tt>Dialog.ScummConfig.Ok</tt>
** <tt>Dialog.ScummConfig.subSubtitleSpeedDesc</tt>
** <tt>Dialog.ScummConfig.subSubtitleSpeedSlider</tt>
** <tt>Dialog.ScummConfig.subSubtitleSpeedLabel</tt>
** <tt>Dialog.ScummConfig.subToggleDesc</tt>
** <tt>Dialog.ScummConfig.subToggleButton</tt>
** <tt>Dialog.ScummConfig.vcSpeechText</tt>
** <tt>Dialog.ScummConfig.vcSpeechSlider</tt>
** <tt>Dialog.ScummConfig.vcSpeechLabel</tt>
** <tt>Dialog.ScummConfig.vcSfxText</tt>
** <tt>Dialog.ScummConfig.vcSfxSlider</tt>
** <tt>Dialog.ScummConfig.vcSfxLabel</tt>
** <tt>Dialog.ScummConfig.vcMusicText</tt>
** <tt>Dialog.ScummConfig.vcMusicSlider</tt>
** <tt>Dialog.ScummConfig.vcMusicLabel</tt>
* <tt>Dialog.ScummSaveLoad</tt>:
** <tt>Dialog.ScummSaveLoad.Choose</tt>
** <tt>Dialog.ScummSaveLoad.Cancel</tt>
** <tt>Dialog.ScummSaveLoad.Thumbnail</tt>
** <tt>Dialog.ScummSaveLoad.List</tt>
* <tt>Dialog.ScummHelp</tt>:
** <tt>Dialog.ScummHelp.Prev</tt>
** <tt>Dialog.ScummHelp.Next</tt>
** <tt>Dialog.ScummHelp.Close</tt>
** <tt>Dialog.ScummHelp.HelpText</tt>
** <tt>Dialog.ScummHelp.Title</tt>
Note that this list uses the full, internal names of each Widget, for reference reasons. When defining the widget called <tt>Dialog.ScummConfig.vcSfxLabel</tt>, the value of the <tt>name</tt> key must be <tt>vcSfxLabel</tt>, but such key must obviously be contained inside the <tt>ScummConfig</tt> dialog.


===== Properties =====
===== Properties =====