UIElement.LookUpControl (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This method is declared by Context. This is an instance method, invoke it with a colon. |
Usage
Container UIElement:LookUpControl(string arg0)
Returned Value
- No description available.
Parameters
arg0: No description available.
Source code samples
Redundant occurences have been removed.
ChoosePantheonPopup.lua (G&K)
DLC/Expansion/UI/InGame/Popups/ChoosePantheonPopup.lua
0169
|
local unitPanel = ContextPtr:LookUpControl( "/InGame/WorldView/UnitPanel/Base" ); |
0174
|
local infoCorner = ContextPtr:LookUpControl( "/InGame/WorldView/InfoCorner" ); |
DebugMenu.lua
UI/InGame/DebugMenu.lua
0153
|
ContextPtr:LookUpControl( "/InGame/WorldView/CityBannerManager" ):SetHide( not bCityBanners ); |
0164
|
ContextPtr:LookUpControl( "/InGame/WorldView/UnitFlagManager" ):SetHide( not bUnitFlags ); |
DiscussLeader.lua
UI/InGame/LeaderHead/DiscussLeader.lua
0010
|
ContextPtr:LookUpControl( "../DiscussionOptions" ):SetHide( false ); |
ExitConfirm.lua
UI/FrontEnd/ExitConfirm.lua
0038
|
local inGame = ContextPtr:LookUpControl("/InGame"); |
LoadMenu.lua
UI/FrontEnd/LoadMenu.lua
0715
|
local contextID = ContextPtr:LookUpControl(".."):GetID(); |
Lobby.lua
UI/FrontEnd/Multiplayer/Lobby.lua
0515
|
local bIsModding = (ContextPtr:LookUpControl(".."):GetID() == "ModMultiplayerSelectScreen"); |
MPGameSetupScreen.lua
UI/FrontEnd/Multiplayer/GameSetup/MPGameSetupScreen.lua
0112
|
bIsModding = (ContextPtr:LookUpControl("../.."):GetID() == "ModMultiplayerSelectScreen"); |
PlotHelpManager.lua
UI/InGame/PlotHelpManager.lua
0054
|
m_pPlotHelpText = ContextPtr:LookUpControl( "/InGame/WorldView/PlotHelpText" ); |
PreGameScreen.lua
UI/FrontEnd/PreGameScreen.lua
0009
|
ContextPtr:LookUpControl( "../MainMenuScreenUI" ):SetHide( false ); |
SelectDifficulty.lua
UI/FrontEnd/GameSetup/SelectDifficulty.lua
0009
|
ContextPtr:LookUpControl( "../MainSelection" ):SetHide( false ); |
0010
|
ContextPtr:LookUpControl( ".." ):SetHide( false ); |
SelectMapType.lua
UI/FrontEnd/GameSetup/SelectMapType.lua
0092
|
g_isModding = (ContextPtr:LookUpControl(".."):GetID() == "ModdingGameSetupScreen") or (ContextPtr:LookUpControl("../../.."):GetID() == "ModMultiplayerSelectScreen"); |
UnitFlagManager.lua
UI/InGame/UnitFlagManager.lua
0030
|
local g_SelectedContainer = ContextPtr:LookUpControl( "../SelectedUnitContainer" ); |
UnitPanel.lua
UI/InGame/WorldView/UnitPanel.lua
1359
|
local EnemyUnitPanel = ContextPtr:LookUpControl( "/InGame/WorldView/EnemyUnitPanel" ); |
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.