Label (Civ5 Type)
This page is a part of the Lua and UI Reference (Civ5).
New Properties
ColorLayer0
- Format: Unknown.
- Usage: Unknown.
ColorLayer1
- Format: Unknown.
- Usage: Unknown.
TextAnchor
- Format: Unknown.
- Usage: Unknown.
TextAnchorSide
- 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 Label.
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>)
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)
| ||||
|
SetText(string localizedString)
|
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 3790 are listed.
AdvancedSetup.xml
UI/FrontEnd/GameSetup/AdvancedSetup.xml
0110
|
<Label Anchor="L,C" ColorSet="Beige_Black" Font="TwCenMT20" FontStyle="Shadow" String="TXT_KEY_AD_SETUP_HANDICAP" /> |
BarbarianCampPopup.xml
UI/InGame/Popups/BarbarianCampPopup.xml
0024
|
<Label Anchor="C,C" Offset="0,-2" String="TXT_KEY_CLOSE" Color0="255.255.200.255" Color1="0.0.0.128" Color2="255.255.200.255" Font="TwCenMT22" FontStyle="Shadow" /> |
ChooseReligionPopup.xml (G&K)
DLC/Expansion/UI/InGame/Popups/ChooseReligionPopup.xml
0021
|
<Label Anchor="L,T" Offset="45,10" Font="TwCenMT20" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" ID="Name"/> |
CityBannerManager.xml
UI/InGame/CityBannerManager.xml
0113
|
<Label ID="ResistanceIcon" Anchor="C,C" Offset="0,0" String="[ICON_RESISTANCE]" Hidden="1"/> |
CityView.xml
UI/InGame/CityView/CityView.xml
0072
|
<Label Anchor="C,T" Offset="0,18" String="TXT_KEY_CITYVIEW_CITYINFO_TEXT" ColorSet="Beige_Black_Alpha" Font="TwCenMT20" FontStyle="Shadow"/> |
DebugMode.xml
UI/InGame/DebugMode.xml
0173
|
<Label Anchor="L,C" String="Unit Variable:"/> |
DiploRelationships.xml
UI/InGame/Popups/DiploRelationships.xml
0110
|
<Label ID="AllyLabel" Anchor="L,T" Offset="32,0" Font="TwCenMT14" FontStyle="Shadow" ColorSet="Beige_Black_Alpha" String="TXT_KEY_POP_CSTATE_ALLIED_WITH"> |
Lobby.xml
UI/FrontEnd/Multiplayer/Lobby.xml
0025
|
<Label Anchor="C,C" Offset="0,0" Font="TwCenMT18" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" ID="MembersLabel"/> |
MilitaryOverview.xml
UI/InGame/Popups/MilitaryOverview.xml
0138
|
<Label Offset="10,0" Font="TwCenMT18" Anchor="L,C" String="TXT_KEY_SUPPLY_REMAINING" /> |
UITestMenu.xml
UI/FrontEnd/UITestMenu.xml
0126
|
<Label Anchor="R,T" Offset="30,10" ColorSet="Beige_Black" Font="TwCenMT18" FontStyle="Shadow" String="(M)" /> |
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.