UIElement.GetValue (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This method is declared by Slider.

This is an instance method, invoke it with a colon.


Usage

int UIElement:GetValue(string name = nil)


Returned Value

No description available.

Parameters

name: No description available.


Source code samples

Redundant occurences have been removed.

LoadTutorial.lua

UI/FrontEnd/LoadTutorial.lua
0232
local completed = modUserData.GetValue("Tutorial".. i .. "Completed");


ReligionOverview.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/ReligionOverview.lua
0159
if (savedData.GetValue("FranceCatholic") == 0) then
0163
if (savedData.GetValue("CeltsCatholic") == 0) then
0167
if (savedData.GetValue("EnglandCatholic") == 0) then
0171
if (savedData.GetValue("SpainCatholic") == 0) then
0175
if (savedData.GetValue("NetherlandsCatholic") == 0) then
0179
if (savedData.GetValue("AustriaCatholic") == 0) then
0183
if (savedData.GetValue("SwedenCatholic") == 0) then


TurnsRemaining.lua - DLC_04 DLC

DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0231
local iValue = savedData.GetValue("TurnsBetweenBonuses");


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/TurnsRemaining.lua
0244
iCitiesCaptured = savedData.GetValue("WesternRomeCitiesCaptured");
0247
iCitiesCaptured = savedData.GetValue("EasternRomeCitiesCaptured")
0248
savedData.SetValue("EasternRomeCitiesCaptured", 0);
0359
local iHunCitiesConquered = savedData.GetValue("HunCapturedFirstCity");
0387
savedData.SetValue("WesternRomeCitiesCaptured", savedData.GetValue("WesternRomeCitiesCaptured") + 1);
0390
savedData.SetValue("EasternRomeCitiesCaptured", savedData.GetValue("EasternRomeCitiesCaptured") + 1);
2338
local iValue = savedData.GetValue("InitializationComplete");


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0021
g_Properties[name] = g_SaveData.GetValue(name);


UITestMenu.lua

UI/FrontEnd/UITestMenu.lua
0088
Controls.BigSliderValue:SetText( "Big Slider: " .. Controls.BigSlider:GetValue() );
0092
Controls.SmallSliderValue:SetText( "Small Slider: " .. Controls.SmallSlider:GetValue() );


VictoryProgress.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/VictoryProgress.lua
0675
local iVaticanExtraVoteTeam = g_savedData.GetValue("VaticanExtraVoteTeam");



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.