forked from TheSuperHackers/GeneralsGamePatch
- Notifications
You must be signed in to change notification settings - Fork 0
pushbutton
DevGeniusCode edited this page Mar 14, 2025
·
1 revision
The PushButton control is used for creating buttons that can be clicked by the user. You can define the position, size, and appearance of the button, as well as how it behaves in different states (enabled, disabled, highlighted).
The PushButton control does not include any unique tags beyond the default control tags. It uses the same general set of tags applicable to all controls.
The following section list the default values and available textures for each tag
Click to expand
- Buttons-Left
- Buttons-Middle
- Buttons-Right
- Buttons-Disabled-Left
- Buttons-Disabled-Middle
- Buttons-Disabled-Right
- Buttons-HiLite-Left
- Buttons-HiLite-Middle
- Buttons-HiLite-Right
- Buttons-Pushed-Left
- Buttons-Pushed-Middle
- Buttons-Pushed-Right
Here example from Accept button in OptionsMenu.wnd file:
Click to expand
WINDOW WINDOWTYPE = PUSHBUTTON; SCREENRECT = UPPERLEFT: 319497, BOTTOMRIGHT: 481529, CREATIONRESOLUTION: 800600; NAME = "OptionsMenu.wnd:ButtonAccept"; STATUS = ENABLED+IMAGE; STYLE = PUSHBUTTON+MOUSETRACK; SYSTEMCALLBACK = "[None]"; INPUTCALLBACK = "[None]"; TOOLTIPCALLBACK = "[None]"; DRAWCALLBACK = "[None]"; FONT = NAME: "Generals", SIZE: 15, BOLD: 0; HEADERTEMPLATE = "MainButton"; TOOLTIPTEXT = "TOOLTIP:OptionsAccept"; TOOLTIPDELAY = -1; TEXT = "GUI:Accept"; TEXTCOLOR = ENABLED: 255255255255, ENABLEDBORDER: 000255, DISABLED: 626492255, DISABLEDBORDER: 313247255, HILITE: 18625512255, HILITEBORDER: 020255; ENABLEDDRAWDATA = IMAGE: Buttons-Left, COLOR: 25500255, BORDERCOLOR: 255128128255, IMAGE: NoImage, COLOR: 4755168255, BORDERCOLOR: 254254254255, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: Buttons-Middle, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: Buttons-Right, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; DISABLEDDRAWDATA = IMAGE: Buttons-Disabled-Left, COLOR: 128128128255, BORDERCOLOR: 192192192255, IMAGE: NoImage, COLOR: 192192192255, BORDERCOLOR: 128128128255, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: Buttons-Disabled-Middle, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: Buttons-Disabled-Right, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; HILITEDRAWDATA = IMAGE: Buttons-HiLite-Left, COLOR: 2092534255, BORDERCOLOR: 596052255, IMAGE: Buttons-Pushed-Left, COLOR: 4755168255, BORDERCOLOR: 254254254255, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: Buttons-Pushed-Middle, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: Buttons-Pushed-Right, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: Buttons-HiLite-Middle, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: Buttons-HiLite-Right, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550;ENDArt
- Models
- Textures
Audio & Video
- WAV
- BIK
Game Design
Maps
Localization
GUI
- FinalBIG
- Generals Mode Builder