InstanceManager.new (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:10, 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 function is a member of InstanceManager.

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


Usage

InstanceManager InstanceManager:new(string instanceName, string instanceRootName, ControlBase hostControl)


Returned Value

No description available.

Parameters

instanceName: No description available.
instanceRootName: No description available.
hostControl: No description available.


Source code samples

Too many occurences. Only 50 out of 335 are listed.

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0031
g_GameOptionsManager = InstanceManager:new("GameOptionInstance", "GameOptionRoot", Controls.GameOptionsStack);


ChoosePantheonPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChoosePantheonPopup.lua
0012
local g_ItemManager = InstanceManager:new( "ItemInstance", "Button", Controls.ItemStack );


ChooseReligionPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseReligionPopup.lua
0010
local g_BeliefItemManager = InstanceManager:new( "BeliefItemInstance", "Button", Controls.BeliefStack );


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0009
local g_SVStrikeIM = InstanceManager:new( "SVRangeStrikeButton", "Anchor", Controls.StrategicViewStrikeButtons );


CityView.lua

UI/InGame/CityView/CityView.lua
0008
local g_BuildingIM   = InstanceManager:new( "BuildingInstance", "BuildingButton", Controls.BuildingStack );
0009
local g_GPIM   = InstanceManager:new( "GPInstance", "GPBox", Controls.GPStack );


CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
0075
local g_ListItemManager = InstanceManager:new( "ListItemInstance", "ListItemButton", Controls.ListOfArticles );
0079
local g_UpgradeManager = InstanceManager:new( "UpgradeInstance", "UpgradeButton", Controls.UpgradeInnerFrame );
0082
local g_UnlockedBuildingsManager = InstanceManager:new( "UnlockedBuildingInstance", "UnlockedBuildingButton", Controls.UnlockedBuildingsInnerFrame );
0091
local g_RequiredPromotionsManager = InstanceManager:new( "RequiredPromotionInstance", "RequiredPromotionButton", Controls.RequiredPromotionsInnerFrame );
0093
local g_FreeFormTextManager = InstanceManager:new( "FreeFormTextInstance", "FFTextFrame", Controls.FFTextStack );
0097
local g_UniqueBuildingsManager = InstanceManager:new( "UniqueBuildingInstance", "UniqueBuildingButton", Controls.UniqueBuildingsInnerFrame );
0101
local g_FeaturesManager = InstanceManager:new( "FeatureInstance", "FeatureButton", Controls.FeaturesInnerFrame );
0102
local g_ResourcesFoundManager = InstanceManager:new( "ResourceFoundInstance", "ResourceFoundButton", Controls.ResourcesFoundInnerFrame );
0104
local g_ReplacesManager = InstanceManager:new( "ReplaceInstance", "ReplaceButton", Controls.ReplacesInnerFrame );
0106
local g_ImprovementsManager = InstanceManager:new( "ImprovementInstance", "ImprovementButton", Controls.ImprovementsInnerFrame );


Credits.lua

UI/FrontEnd/Credits.lua
0005
g_MajorTitleManager = InstanceManager:new("MajorTitleInstance", "Text", Controls.CreditsList);


DiploList.lua

UI/InGame/DiploList.lua
0014
local g_LeaderButtonIM = InstanceManager:new( "LeaderButtonInstance", "LeaderButton", Controls.MajorStack );


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0266
local g_MajorCivTradeRowIM = InstanceManager:new( "MajorCivTradeRowInstance", "Row", pStack.TradeStack );


EndGameReplay.lua

UI/InGame/Popups/EndGameReplay.lua
0008
g_ReplayMessageInstanceManager = InstanceManager:new("ReplayMessageInstance", "MessageText", Controls.ReplayMessageStack);


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0006
local g_MyCombatDataIM = InstanceManager:new( "UsCombatInfo", "Text", Controls.MyCombatResultsStack );
0007
local g_TheirCombatDataIM = InstanceManager:new( "ThemCombatInfo", "Text", Controls.TheirCombatResultsStack );


GameMenu.lua

UI/InGame/Menus/GameMenu.lua
0009
local g_VictoryConditionsIM = InstanceManager:new( "GameOption", "Text", Controls.VictoryConditions );
0015
local g_ActivatedModsIM = InstanceManager:new( "ModEntryInstance", "Text", Controls.ModsStack );


GPList.lua

UI/InGame/GPList.lua
0014
local m_ArtistIM = InstanceManager:new( "GPInstance", "Root", Controls.ArtistStack );
0015
local m_EngineerIM = InstanceManager:new( "GPInstance", "Root", Controls.EngineerStack );
0016
local m_MerchantIM = InstanceManager:new( "GPInstance", "Root", Controls.MerchantStack );


InGame.lua

UI/InGame/InGame.lua
0013
local g_InstanceManager = InstanceManager:new( "AlertMessageInstance", "AlertMessageLabel", Controls.AlertStack );
0014
local g_PopupIM = InstanceManager:new( "PopupText", "Anchor", Controls.PopupTextContainer );


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0069
g_DetailLabels = InstanceManager:new("DetailLabelInstance", "Label", Controls.DetailLabelsStack);


MiniMapPanel.lua

UI/InGame/WorldView/MiniMapPanel.lua
0004
local g_LegendIM = InstanceManager:new( "LegendKey", "Item", Controls.LegendStack );


ModsMenu.lua

UI/FrontEnd/Modding/ModsMenu.lua
0006
g_InstanceManager = InstanceManager:new( "ModInstance", "Label", Controls.ModsStack );


MPGameOptions.lua

UI/FrontEnd/Multiplayer/GameSetup/MPGameOptions.lua
0007
g_DLCAllowedManager = InstanceManager:new("GameOptionInstance", "GameOptionRoot", Controls.DLCAllowedStack);


PreGameScreen.lua

UI/FrontEnd/PreGameScreen.lua
0001
local g_InstanceManager = InstanceManager:new( "LeaderButtonInstance", "LeaderButton", Controls.ButtonStack );


PremiumContentMenu.lua

UI/FrontEnd/PremiumContentMenu.lua
0005
g_InstanceManager = InstanceManager:new( "ListingButtonInstance", "Base", Controls.ListingStack );


SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0014
local g_PatronagePipeManager = InstanceManager:new( "ConnectorPipe", "ConnectorImage", Controls.PatronagePanel );
0015
local g_CommercePipeManager = InstanceManager:new( "ConnectorPipe", "ConnectorImage", Controls.CommercePanel );
0018
local g_OrderPipeManager = InstanceManager:new( "ConnectorPipe", "ConnectorImage", Controls.OrderPanel );
0022
local g_TraditionInstanceManager = InstanceManager:new( "PolicyButton", "PolicyIcon", Controls.TraditionPanel );
0027
local g_RationalismInstanceManager = InstanceManager:new( "PolicyButton", "PolicyIcon", Controls.RationalismPanel );


SocialPolicyPopup.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/SocialPolicyPopup.lua
0016
local g_CulturePipeManager = InstanceManager:new( "ConnectorPipe", "ConnectorImage", Controls.CulturePanel );
0019
local g_MilitaryPipeManager = InstanceManager:new( "ConnectorPipe", "ConnectorImage", Controls.MilitaryPanel );


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0012
local g_PipeManager = InstanceManager:new( "TechPipeInstance", "TechPipeIcon", Controls.TechTreeScrollPanel );


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
0005
local g_CivilianManager = InstanceManager:new( "NewUnitFlag", "Anchor", Controls.CivilianFlags );


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0007
local g_SecondaryIM  = InstanceManager:new( "UnitAction",  "UnitActionButton", Controls.SecondaryStack );
0009
local g_PromotionIM  = InstanceManager:new( "UnitAction",  "UnitActionButton", Controls.WorkerActionPanel );


VictoryProgress.lua

UI/InGame/Popups/VictoryProgress.lua
0007
local g_DominationRowsIM = InstanceManager:new( "DominationRow", "RowStack", Controls.DominationStack );
0023
local g_TechIM = InstanceManager:new( "TechCiv", "Civ", Controls.TechStack );
0785
curItemIM = InstanceManager:new( "CultureItem", "Item", controlTable.CultureStack );


YieldIconManager.lua

UI/InGame/YieldIconManager.lua
0007
local g_AnchorIM = InstanceManager:new( "AnchorInstance", "Anchor", Controls.Scrap );



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.