GridButton (Civ5 Type)
This page is a part of the Lua and UI Reference (Civ5).
New Properties
StateOffsetIncrement
- Format: Unknown.
- Usage: Unknown.
TextOffset
- Format: Unknown.
- Usage: Unknown.
New Instance Methods
Methods are functions that belong to an object. Instance methods are invoked through a colon, as in caller:SomeMethod(<args>)
, where caller is an instance of GridButton.
A colon implictly passes the caller object as the first argument. That is, the former call is equivalent to this one: caller.SomeMethod(caller, <args>)
Label
|
GetTextControl()
| ||||
|
SetVoid2(ProcessType process)
| ||||
|
SetVoids(ResourceType building, ResourceType addToList)
| ||||
|
LocalizeAndSetText(string name, int searchString = nil, string minFaithForProphet = nil, unknown arg3, unknown arg4, unknown arg5, unknown arg6, unknown arg7, unknown arg8, string arg9, unknown arg10, unknown arg11)
| ||||
|
RegisterCallback(MouseType OnSearchTextEnter, (void func(PolicyBranchType policyBranchIndex, UnitType y, Button button)) OnClose = nil)
| ||||
|
SetText(string localizedString)
| ||||
|
SetVoid1(OrderType MAINTAIN_GOLD)
|
Inherited from ButtonBase
|
ClearCallback(MouseType arg0)
| ||||
|
IsTrackingMiddleMouseButton
| ||||
|
IsTrackingRightMouseButton
| ||||
|
SetVoid2(ProcessType process)
| ||||
|
SetVoids(ResourceType building, ResourceType addToList)
| ||||
ActionType
|
GetVoid1()
| ||||
ResourceType
|
GetVoid2()
| ||||
bool
|
IsTrackingLeftMouseButton()
| ||||
|
RegisterCallback(MouseType OnSearchTextEnter, (void func(PolicyBranchType policyBranchIndex, UnitType y, Button button)) OnClose = nil)
| ||||
|
SetVoid1(OrderType MAINTAIN_GOLD)
|
Inherited from TextBase
XML Properties: StringFontFontStyleWrapWidthTruncateWidthReduceOnTruncateLeadingOffsetColorSetColor0Color1Color2Color3ForceIMEForceNonIME
string
|
GetText()
| ||||
|
SetFontByName(string arg0)
| ||||
|
SetForceIME
| ||||
|
SetForceNonIME
| ||||
|
SetString(unknown arg0)
| ||||
|
SetTruncateWidth(int width)
| ||||
|
SetWrapWidth(PlayerID arg0)
| ||||
|
LocalizeAndSetText(string name, int searchString = nil, string minFaithForProphet = nil, unknown arg3, unknown arg4, unknown arg5, unknown arg6, unknown arg7, unknown arg8, string arg9, unknown arg10, unknown arg11)
| ||||
|
SetText(string localizedString)
|
Inherited from ControlBase
XML Properties: none.
|
BuildEntry(string arg0, table arg1)
| ||||
|
CalculateInternals()
| ||||
|
CalculateInternalSize()
| ||||
|
CalculateSize()
| ||||
|
ClearEntries()
| ||||
Button
|
GetButton()
| ||||
|
RegisterCheckHandler((void func(bool bIsChecked)) OnPolicyInfo)
| ||||
|
RegisterSelectionCallback((void func(FaithPurchaseType v1, int v2)) OnChatTarget)
| ||||
|
SetCheck(bool cityBanners)
| ||||
|
SetPercent(int percentDone)
| ||||
|
SetPercents(float productionProgressPercent, float productionProgressPlusThisTurnPercent)
| ||||
|
SetScrollValue(int arg0)
| ||||
|
SetTexture(string textureName)
| ||||
|
SetTextureOffsetVal(int arg0, int offset)
| ||||
|
UnloadTexture()
| ||||
|
SetVoid2(ProcessType process)
| ||||
|
SetVoids(ResourceType building, ResourceType addToList)
| ||||
string
|
GetText()
| ||||
|
LocalizeAndSetText(string name, int searchString = nil, string minFaithForProphet = nil, unknown arg3, unknown arg4, unknown arg5, unknown arg6, unknown arg7, unknown arg8, string arg9, unknown arg10, unknown arg11)
| ||||
|
RegisterCallback(MouseType OnSearchTextEnter, (void func(PolicyBranchType policyBranchIndex, UnitType y, Button button)) OnClose = nil)
| ||||
|
SetText(string localizedString)
| ||||
|
SetVoid1(OrderType MAINTAIN_GOLD)
|
Common
|
ChangeParent(Image parent)
| ||||
|
DestroyAllChildren()
| ||||
string
|
GetID()
| ||||
|
GetNumChildren
| ||||
|
IsDisabled
| ||||
|
ReleaseChild(WorldAnchor arg0)
| ||||
|
SetDisabled(bool disableBanners)
| ||||
|
SortChildren((void func(unknown a, unknown b)) SortFunction)
|
Layout
XML Properties: SizeOffsetAnchorAnchorSide
unknown, int
|
GetOffsetVal()
| ||||
int
|
GetOffsetX()
| ||||
int
|
GetOffsetY()
| ||||
Vector2
|
GetSize()
| ||||
int, int
|
GetSizeVal()
| ||||
int
|
GetSizeX()
| ||||
int
|
GetSizeY()
| ||||
|
ReprocessAnchoring()
| ||||
|
SetAnchor(string arg0)
| ||||
|
SetOffset(Vector2 offset)
| ||||
|
SetOffsetVal(int xOffset, int yOffset)
| ||||
|
SetOffsetX(int xOffset)
| ||||
|
SetOffsetY(int TOP_COMPENSATION)
| ||||
|
SetSize(table blockSize)
| ||||
|
SetSizeVal(int baseWidth, int newHeight)
| ||||
|
SetSizeX(int width)
| ||||
|
SetSizeY(int newSizeY)
|
Appearance
XML Properties: HiddenStyleNoClipColorBranchAlpha
|
BranchResetAnimation()
| ||||
|
CalculateVisibilityBox
| ||||
int
|
IsHidden()
| ||||
|
SetAlpha(float DimAlpha)
| ||||
|
SetColor(table fadeColor, int arg1)
| ||||
|
SetColorByName(string colorSet)
| ||||
|
SetColorChannel(int arg0, float arg1)
| ||||
|
SetColorVal(int arg0, int arg1 = nil, int arg2 = nil, int arg3 = nil)
| ||||
|
SetHide(int disablePolicies)
| ||||
|
SetNoClip
|
Interaction
XML Properties: NeedsMouseOverConsumeMouseConsumeMouseOverConsumeMouseWheelConsumeMouseButton
|
GetConsumeMouseButton
| ||||
|
GetConsumeMouseOver
| ||||
|
GetConsumeMouseWheel
| ||||
bool
|
HasMouseOver()
| ||||
|
SetConsumeMouseButton
| ||||
|
SetConsumeMouseOver(bool arg0)
| ||||
|
SetConsumeMouseWheel
|
Tool Tip
XML Properties: ToolTipToolTipType
|
EnableToolTip(bool arg0)
| ||||
|
GetToolTipString
| ||||
|
IsToolTipEnabled
| ||||
|
LocalizeAndSetToolTip(string description, string minFaithForProphet = nil, string threshold, string moodText, string spyRank, string spyName, string spyRank, string spyName, unknown arg8, unknown arg9, string arg10, unknown arg11, unknown arg12)
| ||||
|
SetToolTipCallback((void func(Slider control)) TipHandler)
| ||||
|
SetToolTipString(string foodToolTip)
| ||||
|
SetToolTipType(string arg0)
|
Source code samples
Too many occurences. Only 10 out of 751 are listed.
CivilopediaScreen.xml
UI/Civilopedia/CivilopediaScreen.xml
1261
|
<GridButton Style="BaseButton" ID="OK" Size="400,42" Anchor="C,T" Offset="0,0" Hidden="0"> |
DiploCurrentDeals.xml
UI/InGame/Popups/DiploCurrentDeals.xml
0109
|
<GridButton ID="ThemPocketCities" Hidden="1" /> |
InstalledPanel.xml
UI/FrontEnd/Modding/InstalledPanel.xml
0061
|
<GridButton Anchor="R,T" Style="SmallButton" Size="110,32" Offset="10,5" StateOffsetIncrement="0,0" ID="OptionsButton" > |
LeaderViewer.xml
UI/LeaderViewer/LeaderViewer.xml
0093
|
<GridButton Anchor="L,T" Size="64,30" ID="ShadowRes2048" Style="BaseButton" > |
0261
|
<GridButton Anchor="R,Top" Size="110,30" ID="REQUEST" Style="BaseButton" > |
Lobby.xml
UI/FrontEnd/Multiplayer/Lobby.xml
0109
|
<GridButton Anchor="L,T" Size="100,28" Offset="0,-1" Style="ZoomButton" ID="SortbyDLCHosted"> |
MultiplayerSelect.xml
UI/FrontEnd/Multiplayer/MultiplayerSelect.xml
0071
|
<GridButton Anchor="C,T" ID="ReconnectButton" Size="320,45" Style="ZoomButton" String="TXT_KEY_MULTIPLAYER_RECONNECT" Hidden="1" Disabled="true" > |
OptionsMenu.xml
UI/Options/OptionsMenu.xml
0179
|
<GridButton Anchor="C,B" Size="200,32" Offset="0,20" ID="ApplyResButton" Style="SmallButton" ToolTip="TXT_KEY_OPSCREEN_APPLY_RESOLUTION_TT"> |
SocialPolicyPopup.xml
UI/InGame/Popups/SocialPolicyPopup.xml
0054
|
<GridButton Anchor="L,B" Style="SmallButton" Size="150,32" Offset="14,0" StateOffsetIncrement="0,0" ID="CloseButton"> |
0448
|
<GridButton Size="170,36" Anchor="C,T" Offset="0,46" Font="TwCenMT18" Color="255,255,255,200" String="" FontStyle="Shadow" Color0="Beige.255" Color1="Black.128" Style="BaseButton" ToolTip="TXT_KEY_POLICY_BRANCH_COMMERCE_HELP" Hidden="0" ID="BranchButton5"> |
The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.