UIElement.GetTextControl (Civ5 API)

From Civilization Modding Wiki
Jump to navigationJump to search

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


Function.png This method is declared by Button and GridButton.

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


Usage

Label UIElement:GetTextControl()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0321
local textControl = controlTable.Button:GetTextControl();
0355
textControl = controlTable.Button:GetTextControl();


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
1008
Controls.UsPocketGold:GetTextControl():SetColorByName("Gray_Black");
1011
Controls.UsPocketGold:GetTextControl():SetColorByName("Beige_Black");
1023
Controls.ThemPocketGold:GetTextControl():SetColorByName("Gray_Black");
1026
Controls.ThemPocketGold:GetTextControl():SetColorByName("Beige_Black");
1042
Controls.UsPocketGoldPerTurn:GetTextControl():SetColorByName("Gray_Black");
1045
Controls.UsPocketGoldPerTurn:GetTextControl():SetColorByName("Beige_Black");
1057
Controls.ThemPocketGoldPerTurn:GetTextControl():SetColorByName("Gray_Black");
1060
Controls.ThemPocketGoldPerTurn:GetTextControl():SetColorByName("Beige_Black");
1083
Controls.UsPocketOpenBorders:GetTextControl():SetColorByName("Gray_Black");
1091
Controls.UsPocketOpenBorders:GetTextControl():SetColorByName("Beige_Black");
1101
Controls.ThemPocketOpenBorders:GetTextControl():SetColorByName("Gray_Black");
1108
Controls.ThemPocketOpenBorders:GetTextControl():SetColorByName("Beige_Black");
1143
Controls.UsPocketDefensivePact:GetTextControl():SetColorByName("Gray_Black");
1146
Controls.UsPocketDefensivePact:GetTextControl():SetColorByName("Beige_Black");
1154
Controls.ThemPocketDefensivePact:GetTextControl():SetColorByName("Gray_Black");
1157
Controls.ThemPocketDefensivePact:GetTextControl():SetColorByName("Beige_Black");
1198
Controls.UsPocketResearchAgreement:GetTextControl():SetColorByName("Gray_Black");
1201
Controls.UsPocketResearchAgreement:GetTextControl():SetColorByName("Beige_Black");
1209
Controls.ThemPocketResearchAgreement:GetTextControl():SetColorByName("Gray_Black");
1212
Controls.ThemPocketResearchAgreement:GetTextControl():SetColorByName("Beige_Black");
1245
Controls.UsPocketTradeAgreement:GetTextControl():SetColorByName("Gray_Black");
1248
Controls.UsPocketTradeAgreement:GetTextControl():SetColorByName("Beige_Black");
1256
Controls.ThemPocketTradeAgreement:GetTextControl():SetColorByName("Gray_Black");
1259
Controls.ThemPocketTradeAgreement:GetTextControl():SetColorByName("Beige_Black");
1276
Controls.UsPocketCities:GetTextControl():SetColorByName("Beige_Black");
1280
Controls.UsPocketCities:GetTextControl():SetColorByName("Gray_Black");
1294
Controls.ThemPocketCities:GetTextControl():SetColorByName("Beige_Black");
1298
Controls.ThemPocketCities:GetTextControl():SetColorByName("Gray_Black");
1308
Controls.UsPocketOtherPlayer:GetTextControl():SetColorByName( "Gray_Black" );
1313
Controls.ThemPocketOtherPlayer:GetTextControl():SetColorByName( "Gray_Black" );
1319
Controls.UsPocketOtherPlayer:GetTextControl():SetColorByName( "Beige_Black" );
1324
Controls.ThemPocketOtherPlayer:GetTextControl():SetColorByName( "Beige_Black" );
1378
Controls.UsPocketLuxury:GetTextControl():SetColorByName("Beige_Black");
1386
Controls.UsPocketLuxury:GetTextControl():SetColorByName("Gray_Black");
1393
Controls.UsPocketStrategic:GetTextControl():SetColorByName("Beige_Black");
1401
Controls.UsPocketStrategic:GetTextControl():SetColorByName("Gray_Black");
1445
Controls.ThemPocketLuxury:GetTextControl():SetColorByName("Beige_Black");
1453
Controls.ThemPocketLuxury:GetTextControl():SetColorByName("Gray_Black");
1460
Controls.ThemPocketStrategic:GetTextControl():SetColorByName("Beige_Black");
1468
Controls.ThemPocketStrategic:GetTextControl():SetColorByName("Gray_Black");


TradeLogic.lua (G&K)

DLC/Expansion/UI/InGame/WorldView/TradeLogic.lua
1101
Controls.UsPocketAllowEmbassy:GetTextControl():SetColorByName("Gray_Black");
1108
Controls.UsPocketAllowEmbassy:GetTextControl():SetColorByName("Beige_Black");
1124
Controls.ThemPocketAllowEmbassy:GetTextControl(): SetColorByName("Gray_Black");
1131
Controls.ThemPocketAllowEmbassy:GetTextControl():SetColorByName("Beige_Black");
1370
Controls.UsPocketDoF:GetTextControl():SetColorByName("Gray_Black");
1381
Controls.UsPocketDoF:GetTextControl():SetColorByName("Beige_Black");


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
1061
local tw, th = controlTable.Button:GetTextControl():GetSizeVal();



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.