TextWindowGUI functions and properties
This struct extends the GUI struct, so it has all functions and properties from GUI, in addition to the properties below.
Compatibility: TextWindowGUI is supported by AGS 3.5.0 and later versions.
TextWindowGUI.LeftGraphic
import readonly attribute int TextWindowGUI.LeftGraphicGets the sprite number used for this TextWindow's left border.
Compatibility: supported by AGS 3.6.3 and later versions.
TextWindowGUI.TopLeftGraphic
import readonly attribute int TextWindowGUI.TopLeftGraphicGets the sprite number used for this TextWindow's top-left corner.
Compatibility: supported by AGS 3.6.3 and later versions.
TextWindowGUI.TopGraphic
import readonly attribute int TextWindowGUI.TopGraphicGets the sprite number used for this TextWindow's top border.
Compatibility: supported by AGS 3.6.3 and later versions.
TextWindowGUI.TopRightGraphic
import readonly attribute int TextWindowGUI.TopRightGraphicGets the sprite number used for this TextWindow's top-right corner.
Compatibility: supported by AGS 3.6.3 and later versions.
TextWindowGUI.RightGraphic
import readonly attribute int TextWindowGUI.RightGraphicGets the sprite number used for this TextWindow's right border.
Compatibility: supported by AGS 3.6.3 and later versions.
TextWindowGUI.BottomRightGraphic
import readonly attribute int TextWindowGUI.BottomRightGraphicGets the sprite number used for this TextWindow's bottom-right corner.
Compatibility: supported by AGS 3.6.3 and later versions.
TextWindowGUI.BottomGraphic
import readonly attribute int TextWindowGUI.BottomGraphicGets the sprite number used for this TextWindow's bottom border.
Compatibility: supported by AGS 3.6.3 and later versions.
TextWindowGUI.BottomLeftGraphic
import readonly attribute int TextWindowGUI.BottomLeftGraphicGets the sprite number used for this TextWindow's bottom-left corner.
Compatibility: supported by AGS 3.6.3 and later versions.
TextWindowGUI.TextColor
int TextWindowGUI.TextColorGets/sets the text color to be used when rendering text on this TextWindowGUI.
Example:
// a custom MySay function with character-specific text color;
// (assuming that gTextGui is assigned as a speech GUI)
function MySay(this Character*, const string message) {
gTextGui.AsTextWindow.TextColor = this.SpeechColor;
this.Say(message);
}above function adjusts gTextGui's text color before calling a standard Character.Say function. It assumes that gTextGui was assigned as a default textwindow for the character speech. Such custom function may then be used as:
cEgo.MySay("My text has my colors!");TextWindowGUI.TextPadding
int TextWindowGUI.TextPaddingGets/sets the amount of padding, in pixels, surrounding the text in the TextWindow.