Hardcoded UI Shortcuts

From GECK
Jump to: navigation, search

The table below describes hardcoded shortcuts used in XML files, values the shortcuts correspond to, and their application.
Many shortcuts share the same value as they are used in different context. For example, &true; is used for boolean expressions and &hudmain; is used for colors, but both internally evaluate to 1.
Shortcuts are case-insensitive.

Shortcut Value Usage
&nosound; -1 Used with <clicksound> and <mouseoversound> traits.
&scale; -1 Used with <zoom> trait.
&uselocalcolor; -1 Used with <brightness> trait.
&generic; -1 Used with <id> trait.
&false; 0 Used as a boolean operator.
&xbox; 0/1 Changes its value to 1 if controller is connected, 0 otherwise.
&xenon; 0/1 Changes its value to 1 if controller is connected, 0 otherwise.
&console; 0 Presumably set to 1 on consoles, always 0 on PC.
&nosystemcolor; 0 Used with <systemcolor> trait.
&left; 1 Used with <justify> trait in <text> tiles.
&hudmain; 1 Used with <systemcolor> trait. Matches the main HUD color.
&true; 1 Used as a boolean operator.
&highdef; 1 Used with <brightness> trait, serves unknown purpose.
&widescreen; 0/1 1 if a widescreen resolution is used in game, 0 otherwise.
&hudalt; 2 Used with <systemcolor> trait. Matches the alternative HUD color (red).
&center; 2 Used with <justify> trait in <text> tiles.
&terminal; 3 Used with <systemcolor> trait. Matches the terminal UI color.
&right; 4 Used with <justify> trait in <text> tiles.
&pipboy; 4 Used with <systemcolor> trait. Matches the Pipboy UI color.
&up; 5 Used with <justify> trait in <text> tiles.
&mainmenu; 5 Used with <systemcolor> trait. Matches the Main Menu color.
&down; 6 Used with <justify> trait in <text> tiles.
&system; 6 Used with <systemcolor> trait.
&default_accept; 9 Determines default controller button for "Accept" action.
&xbuttona; 9 "A" controller button.
&xbuttonb; 10 "B" controller button.
&xbuttonx; 11 "X" controller button.
&xbuttony; 12 "Y" controller button.
&xbuttonlt; 13 Left controller trigger.
&xbuttonrt; 14 Right controller trigger.
&xbuttonlb; 15 Left controller button.
&xbuttonrb; 16 Right controller button.
&xbuttonl; 17 Left controller stick.
&xbuttonls; 17 Left controller stick.
&xbuttonr; 18 Right controller stick.
&xbuttonrs; 18 Right controller stick.
&click_past; 101 Unused.
&no_click_past; 102 Used with <stackingtype> menu trait.
&mixed_menu; 103 Used with <stackingtype> menu trait.
&glow_branch; 110 ID for "GLOW_BRANCH" rect.
&noglow_branch; 111 ID for "NOGLOW_BRANCH" rect.
&pipboymenu; 112 Menu ID for Pip-Boy submenus and RaceSexMenu.
&MessageMenu; 1001 Menu class ID.
&InventoryMenu; 1002 Menu class ID.
&StatsMenu; 1003 Menu class ID.
&HUDMainMenu; 1004 Menu class ID.
&LoadingMenu; 1007 Menu class ID.
&ContainerMenu; 1008 Menu class ID.
&DialogMenu; 1009 Menu class ID.
&SleepWaitMenu; 1012 Menu class ID.
&StartMenu; 1013 Menu class ID.
&LockPickMenu; 1014 Menu class ID.
&QuantityMenu; 1016 Menu class ID.
&AudioMenu; 1017 Menu class ID.
&VideoMenu; 1018 Menu class ID.
&GameplayMenu; 1020 Menu class ID.
&MapMenu; 1023 Menu class ID.
&BookMenu; 1026 Menu class ID.
&LevelUpMenu; 1027 Menu class ID.
&RepairMenu; 1035 Menu class ID.
&RaceSexMenu; 1036 Menu class ID.
&CreditsMenu; 1047 Menu class ID.
&CharGenMenu; 1048 Menu class ID.
&TextEditMenu; 1051 Menu class ID.
&BarterMenu; 1053 Menu class ID.
&SurgeryMenu; 1054 Menu class ID.
&HackingMenu; 1055 Menu class ID.
&VATSMenu; 1056 Menu class ID.
&ComputersMenu; 1057 Menu class ID.
&RepairServicesMenu; 1058 Menu class ID.
&TutorialMenu; 1059 Menu class ID.
&SPECIALBookMenu; 1060 Menu class ID.
&ItemModMenu; 1061 Menu class ID.
&LoveTesterMenu; 1074 Menu class ID.
&CompanionWheelMenu; 1075 Menu class ID.
&TraitSelectMenu; 1076 Menu class ID.
&RecipeMenu; 1077 Menu class ID.
&SlotMachineMenu; 1080 Menu class ID.
&BlackJackMenu; 1081 Menu class ID.
&RouletteMenu; 1082 Menu class ID.
&CaravanMenu; 1083 Menu class ID.
&TraitMenu; 1084 Menu class ID.
&does_not_stack; 6008 Used with <stackingtype> menu trait.

See Also