UIElement.BuildInstanceForControl (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:22, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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


Function.png This method is declared by Context.

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


Usage

void UIElement:BuildInstanceForControl(string arg0, table arg1, Stack arg2)


Parameters

arg0: No description available.
arg1: No description available.
arg2: No description available.


Source code samples

Redundant occurences have been removed.

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
1332
ContextPtr:BuildInstanceForControl( "PlayerSlot", g_SlotInstances[i], Controls.SlotStack );


ChooseFaithGreatPerson.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseFaithGreatPerson.lua
0030
ContextPtr:BuildInstanceForControl( "ItemInstance", controlTable, stackControl );


CityList.lua

UI/InGame/CityList.lua
0103
ContextPtr:BuildInstanceForControl( "CityInstance", instance, Controls.MainStack );


Demographics.lua

UI/InGame/Popups/Demographics.lua
0126
ContextPtr:BuildInstanceForControl( "Entry", instance, Controls.MainStack );


DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0136
ContextPtr:BuildInstanceForControl( "ChatEntry", controlTable, Controls.ChatStack );


DiploCurrentDeals.lua

UI/InGame/Popups/DiploCurrentDeals.lua
0031
ContextPtr:BuildInstanceForControl( "DealButtonInstance", controlTable, Controls.CurrentDealsStack );
0055
ContextPtr:BuildInstanceForControl( "DealButtonInstance", controlTable, Controls.HistoricDealsStack );


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0046
ContextPtr:BuildInstanceForControl("MajorInstance", controlTable, Controls.ItemStack);
0096
ContextPtr:BuildInstanceForControl("LTextEntry", textControls, controlTable.PoliciesStack);
0110
ContextPtr:BuildInstanceForControl("LTextEntry", textControls, controlTable.WondersStack);
0168
ContextPtr:BuildInstanceForControl("TextEntry", textControls, controlTable.PactStack);


EconomicGeneralInfo.lua

UI/InGame/Popups/EconomicGeneralInfo.lua
0209
ContextPtr:BuildInstanceForControl( "TradeEntry", instance, Controls.CityStack );
0254
ContextPtr:BuildInstanceForControl( "TradeEntry", instance, Controls.TradeStack );
0329
ContextPtr:BuildInstanceForControl( "TradeEntry", instance, Controls.BuildingsStack );


FoRScenarioLoadScreen.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/FoRScenarioLoadScreen.lua
0098
ContextPtr:BuildInstanceForControl( "ItemInstance", controlTable, Controls.DifficultyStack );
0147
ContextPtr:BuildInstanceForControl( "SelectCivInstance", controlTable, Controls.SelectCivStack );


GenericWorldAnchor.lua

UI/InGame/GenericWorldAnchor.lua
0058
ContextPtr:BuildInstanceForControl( "NaturalWonder", instance, Controls.NaturalWonderStore );
0115
ContextPtr:BuildInstanceForControl( "SettlerReccomendation", instance, Controls.SettlerReccomendationStore );
0228
ContextPtr:BuildInstanceForControl( "WorkerReccomendation", instance, Controls.WorkerReccomendationStore );


HappinessInfo.lua

UI/InGame/Popups/HappinessInfo.lua
0219
ContextPtr:BuildInstanceForControl( "TradeEntry", instance, Controls.LuxuryHappinessStack );
0272
ContextPtr:BuildInstanceForControl( "TradeEntry", instance, Controls.CityBuildingStack );
0311
ContextPtr:BuildInstanceForControl( "TradeEntry", instance, Controls.TradeRouteStack );
0342
ContextPtr:BuildInstanceForControl( "TradeEntry", instance, Controls.GarrisonStack );
0566
ContextPtr:BuildInstanceForControl( "TradeEntry", instance, Controls.CityUnhappinessStack );
0623
ContextPtr:BuildInstanceForControl( "ResourceEntry", instance, Controls.ResourcesAvailableStack );
0666
ContextPtr:BuildInstanceForControl( "ResourceEntry", instance, Controls.ResourcesImportedStack );
0708
ContextPtr:BuildInstanceForControl( "ResourceEntry", instance, Controls.ResourcesExportedStack );
0749
ContextPtr:BuildInstanceForControl( "ResourceEntry", instance, Controls.ResourcesLocalStack );


HappinessInfo.lua (G&K)

DLC/Expansion/UI/InGame/Popups/HappinessInfo.lua
0336
ContextPtr:BuildInstanceForControl( "TradeEntry", instance, Controls.LocalCityStack );


InstanceManager.lua

UI/InstanceManager.lua
0089
ContextPtr:BuildInstanceForControl(self.m_InstanceName, controlTable, self.m_ParentControl);


MPList.lua

UI/InGame/WorldView/MPList.lua
0218
ContextPtr:BuildInstanceForControl( "PlayerEntry", controlTable, Controls.MPListStack );
0226
ContextPtr:BuildInstanceForControl( "TeamEntry", teamEntry, Controls.MPListStack );
0232
ContextPtr:BuildInstanceForControl( "PlayerEntry", controlTable, teamEntry.TeamStack );


NotificationPanel.lua

UI/InGame/WorldView/NotificationPanel.lua
0177
ContextPtr:BuildInstanceForControl( name .. "Item", instance, Controls.SmallStack );


SelectCivilization.lua

UI/FrontEnd/GameSetup/SelectCivilization.lua
0086
ContextPtr:BuildInstanceForControl( "ItemInstance", controlTable, Controls.Stack );


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
1269
ContextPtr:BuildInstanceForControl( "PlayerSlot", instance, Controls.SlotStack );


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
2252
ContextPtr:BuildInstanceForControl( "PocketResource", controlTable, stack );
2268
ContextPtr:BuildInstanceForControl( "TableStrategic", controlTable, stack );
2292
ContextPtr:BuildInstanceForControl( "TableLuxury", controlTable, stack );
2782
ContextPtr:BuildInstanceForControl( "OtherPlayerEntry", controlTable, Controls.UsPocketLeaderStack );
2792
ContextPtr:BuildInstanceForControl( "OtherPlayerEntry", controlTable, Controls.ThemPocketLeaderStack );
2802
ContextPtr:BuildInstanceForControl( "OtherPlayerEntry", controlTable, Controls.UsTableMakePeaceStack );
2812
ContextPtr:BuildInstanceForControl( "OtherPlayerEntry", controlTable, Controls.UsTableDeclareWarStack );
2822
ContextPtr:BuildInstanceForControl( "OtherPlayerEntry", controlTable, Controls.ThemTableMakePeaceStack );
2832
ContextPtr:BuildInstanceForControl( "OtherPlayerEntry", controlTable, Controls.ThemTableDeclareWarStack );


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
0100
ContextPtr:BuildInstanceForControl( "AirButton", o.m_CargoControls, o.m_Instance.AirAnchor );
1037
ContextPtr:BuildInstanceForControl( "CityFlag", cityFlagInstance, Controls.CityContainer );


VictoryStatus.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/VictoryStatus.lua
0245
ContextPtr:BuildInstanceForControl("TokenInstance", t, cStack);



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.