forked from TheSuperHackers/GeneralsGamePatch
- Notifications
You must be signed in to change notification settings - Fork 0
statictext
DevGeniusCode edited this page Mar 14, 2025
·
1 revision
The StaticText control is used for displaying non-interactive text labels on the screen. You can define the position, size, and appearance of the text, but users cannot edit or interact with it directly.
In addition to the default control tags, the StaticText control has the following unique tag:
| Tag | Description |
|---|---|
STATICTEXTDATA | Defines specific properties of the static text label. |
The following section list the default values and available textures for each tag:
CENTERED: A boolean value that defines if the text should be centered inside the static text control.0is not centered,1is centered.
- Usually,
NoImageis used for all parts, but here are some textures that can be used:StaticTextEnabledStaticTextDisabledStaticTextHilite
The StaticText control is ideal for displaying:
- Titles and headers
- Labels for other UI elements
- Informational text
- Any text that doesn't require user interaction.
Here's an example from the OptionsMenu.wnd file with textures:
Click to expand
WINDOW WINDOWTYPE = STATICTEXT; SCREENRECT = UPPERLEFT: 413316, BOTTOMRIGHT: 517341, CREATIONRESOLUTION: 800600; NAME = "OptionsMenu.wnd:StaticTextOnlineIpAddresses"; STATUS = ENABLED; STYLE = STATICTEXT+MOUSETRACK; SYSTEMCALLBACK = "[None]"; INPUTCALLBACK = "[None]"; TOOLTIPCALLBACK = "[None]"; DRAWCALLBACK = "[None]"; FONT = NAME: "Arial", SIZE: 10, BOLD: 0; HEADERTEMPLATE = "LabelRegular"; TOOLTIPDELAY = -1; TEXT = "GUI:OnlineIPAddresses"; TEXTCOLOR = ENABLED: 255255255255, ENABLEDBORDER: 000255, DISABLED: 192192192255, DISABLEDBORDER: 646464255, HILITE: 128128255255, HILITEBORDER: 00128255; ENABLEDDRAWDATA = IMAGE: StaticTextEnabled, COLOR: 25500255, BORDERCOLOR: 255128128255, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; DISABLEDDRAWDATA = IMAGE: StaticTextDisabled, COLOR: 646464255, BORDERCOLOR: 192192192255, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; HILITEDRAWDATA = IMAGE: StaticTextHilite, COLOR: 01280255, BORDERCOLOR: 128255128255, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550, IMAGE: NoImage, COLOR: 2552552550, BORDERCOLOR: 2552552550; STATICTEXTDATA = CENTERED: 0;ENDArt
- Models
- Textures
Audio & Video
- WAV
- BIK
Game Design
Maps
Localization
GUI
- FinalBIG
- Generals Mode Builder