UIElement.SetPercents (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of ControlBase. This is an instance method, invoke it with a colon. |
Usage
void UIElement:SetPercents(float productionProgressPercent, float productionProgressPlusThisTurnPercent)
Parameters
productionProgressPercent: No description available. productionProgressPlusThisTurnPercent: No description available.
Source code samples
Redundant occurences have been removed.
ActionInfoPanel.lua
UI/InGame/WorldView/ActionInfoPanel.lua
0437
|
Controls.EndTurnTimeMeter:SetPercents( percentComplete, percentComplete ); |
EspionageOverview.lua (G&K)
DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0476
|
Controls.AgentActivityProgress:SetPercents( progresspct, nextprogresspct ); |
0663
|
agentEntry.AgentActivityProgress:SetPercents( progresspct, nextprogresspct ); |
1000
|
potentialMeter:SetPercents(pct,pct); |
ProductionPopup.lua
UI/InGame/Popups/ProductionPopup.lua
0620
|
Controls.ProductionMeter:SetPercents( fProductionProgressPercent, fProductionProgressPlusThisTurnPercent ); |
TechPanel.lua
UI/InGame/TechPanel.lua
0171
|
Controls.ResearchMeter:SetPercents( fResearchProgressPercent, fResearchProgressPlusThisTurnPercent ); |
0173
|
Controls.ResearchMeter:SetPercents( 1, 0 ); |
TechPopup.lua
UI/InGame/TechPopup.lua
0186
|
thisTechButtonInstance.ProgressMeterInternal:SetPercents( researchProgressPercent, researchProgressPlusThisTurnPercent ); |
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.