Meter (Civ5 Type)
This page is a part of the Lua and UI Reference (Civ5).
New Properties
HasShadow
- Format: Unknown.
- Usage: Unknown.
ShadowColor
- Format: Unknown.
- Usage: Unknown.
Texture
- Format: Unknown.
- Usage: Unknown.
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
Redundant occurences have been removed.
ActionInfoPanel.xml
UI/InGame/WorldView/ActionInfoPanel.xml
0057
|
<Meter Size="100,100" Texture="assets\UI\Art\WorldView\TimerMeter.dds" HasShadow="1" Color="White.255" ShadowColor="0,0,0,100" ID="EndTurnTimeMeter" /> |
CityView.xml
UI/InGame/CityView/CityView.xml
0115
|
<Meter Anchor="L,B" Size="256,256" Texture="assets\UI\Art\WorldView\ProductionPanelMeter.dds" HasShadow="1" ID="ProductionMeter"/> |
CityView_small.xml
UI/InGame/CityView/CityView_small.xml
0125
|
<Meter Anchor="L,B" Size="128,128" Texture="ProductionPanelMeter128.dds" HasShadow="1" ID="ProductionMeter"/> |
0402
|
<Meter Anchor="C,C" Size="128,128" Texture="TechGold1024Frame.dds" HasShadow="1" ID="GrowthMeter"/> |
TechPanel.xml
UI/InGame/TechPanel.xml
0049
|
<Meter Anchor="C,C" Size="220,220" Texture="assets\UI\Art\WorldView\TechPanelMeter.dds" HasShadow="1" Color="255,255,255,255" ShadowColor="255,255,255,100" ID="ResearchMeter" /> |
TechPanel_small.xml
UI/InGame/TechPanel_small.xml
0071
|
<Meter Anchor="C,C" Size="128.128" Texture="TechTreeMeter.dds" HasShadow="1" Color="255,255,255,255" ShadowColor="255,255,255,100" ID="ResearchMeter"/> |
TechPopup.xml
UI/InGame/TechPopup.xml
0099
|
<Meter Anchor="C,C" Size="0.0" Texture="TechTreeMeter.dds" HasShadow="0" Color="255,255,255,0" ShadowColor="255,255,255,0" ID="ProgressMeterInternal"/> |
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.