IconLookup (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a global function. Use: include("IconSupport.lua")
|
Usage
Vector2, string IconLookup(int offset, int iconSize, string atlas)
Returned Values
- No description available.
Parameters
offset: No description available. iconSize: No description available. atlas: No description available.
Source code samples
Redundant occurences have been removed.
CivilopediaScreen.lua
UI/Civilopedia/CivilopediaScreen.lua
0402
|
article.tooltipTextureOffset, article.tooltipTexture = IconLookup( tech.PortraitIndex, buttonSize, tech.IconAtlas ); |
0447
|
article.tooltipTextureOffset, article.tooltipTexture = IconLookup( unit.PortraitIndex, buttonSize, unit.IconAtlas ); |
0706
|
article.tooltipTextureOffset, article.tooltipTexture = IconLookup( building.PortraitIndex, buttonSize, building.IconAtlas ); |
0882
|
article.tooltipTextureOffset, article.tooltipTexture = IconLookup( policy.PortraitIndex, buttonSize, policy.IconAtlas ); |
0904
|
article.tooltipTextureOffset, article.tooltipTexture = IconLookup( freePolicy.PortraitIndex, buttonSize, freePolicy.IconAtlas ); |
0940
|
article.tooltipTextureOffset, article.tooltipTexture = IconLookup( person.PortraitIndex, buttonSize, person.IconAtlas ); |
1006
|
article.tooltipTextureOffset, article.tooltipTexture = IconLookup( row.PortraitIndex, buttonSize, row.IconAtlas ); |
1037
|
article.tooltipTextureOffset, article.tooltipTexture = IconLookup( leader.PortraitIndex, buttonSize, leader.IconAtlas ); |
1202
|
article.tooltipTextureOffset, article.tooltipTexture = IconLookup( resource.PortraitIndex, buttonSize, resource.IconAtlas ); |
2024
|
local textureOffset, textureSheet = IconLookup( prereq.PortraitIndex, buttonSize, prereq.IconAtlas ); |
2042
|
local textureOffset, textureSheet = IconLookup( leadsTo.PortraitIndex, buttonSize, leadsTo.IconAtlas ); |
2060
|
local textureOffset, textureSheet = IconLookup( thisUnitInfo.PortraitIndex, buttonSize, thisUnitInfo.IconAtlas ); |
2109
|
local textureOffset, textureSheet = IconLookup( thisProjectInfo.PortraitIndex, buttonSize, thisProjectInfo.IconAtlas ); |
2127
|
local textureOffset, textureSheet = IconLookup( revealedResource.PortraitIndex, buttonSize, revealedResource.IconAtlas ); |
2144
|
local textureOffset, textureSheet = IconLookup( thisBuildInfo.IconIndex, buttonSize, thisBuildInfo.IconAtlas ); |
2410
|
local textureOffset, textureSheet = IconLookup( promotion.PortraitIndex, buttonSize, promotion.IconAtlas ); |
2434
|
local textureOffset, textureSheet = IconLookup( requiredResource.PortraitIndex, buttonSize, requiredResource.IconAtlas ); |
2476
|
local textureOffset, textureSheet = IconLookup( obs.PortraitIndex, buttonSize, obs.IconAtlas ); |
2516
|
local textureOffset, textureSheet = IconLookup( upgradeUnit.PortraitIndex, buttonSize, upgradeUnit.IconAtlas ); |
2550
|
local textureOffset, textureSheet = IconLookup( defaultUnit.PortraitIndex, buttonSize, defaultUnit.IconAtlas ); |
2566
|
local textureOffset, textureSheet = IconLookup( thisCiv.PortraitIndex, buttonSize, thisCiv.IconAtlas ); |
2646
|
local textureOffset, textureSheet = IconLookup( thisReq.PortraitIndex, buttonSize, thisReq.IconAtlas ); |
2913
|
local textureOffset, textureSheet = IconLookup( thisSpec.PortraitIndex, buttonSize, thisSpec.IconAtlas ); |
3023
|
local textureOffset, textureSheet = IconLookup( defaultBuilding.PortraitIndex, buttonSize, defaultBuilding.IconAtlas ); |
3304
|
local textureOffset, textureSheet = IconLookup( requiredPolicy.PortraitIndex, buttonSize, requiredPolicy.IconAtlas ); |
3483
|
local textureOffset, textureSheet = IconLookup( leader.PortraitIndex, buttonSize, leader.IconAtlas ); |
3945
|
local textureOffset, textureSheet = IconLookup( thisFeature.PortraitIndex, buttonSize, thisFeature.IconAtlas ); |
3966
|
local textureOffset, textureSheet = IconLookup( thisResource.PortraitIndex, buttonSize, thisResource.IconAtlas ); |
4084
|
local textureOffset, textureSheet = IconLookup( thisTerrain.PortraitIndex, buttonSize, thisTerrain.IconAtlas ); |
4267
|
local textureOffset, textureSheet = IconLookup( thisImprovement.PortraitIndex, buttonSize, thisImprovement.IconAtlas ); |
EnemyUnitPanel.lua
UI/InGame/WorldView/EnemyUnitPanel.lua
0066
|
local textureOffset, textureAtlas = IconLookup( thisCiv.PortraitIndex, 32, thisCiv.AlphaIconAtlas ); |
0097
|
local textureOffset, textureSheet = IconLookup( thisUnitInfo.UnitFlagIconOffset, 32, thisUnitInfo.UnitFlagAtlas ); |
0111
|
textureOffset, textureSheet = IconLookup( thisUnitInfo.PortraitIndex, g_iPortraitSize, thisUnitInfo.IconAtlas ); |
FoRScenarioLoadScreen.lua (G&K)
DLC/Expansion/Scenarios/FallOfRomeScenario/FoRScenarioLoadScreen.lua
0213
|
local textureOffset, textureAtlas = IconLookup( civ.PortraitIndex, 64, civ.IconAtlas ); |
HallOfFame.lua
UI/InGame/Popups/HallOfFame.lua
0092
|
local textureOffset, textureAtlas = IconLookup( civ.PortraitIndex, 48, civ.AlphaIconAtlas ); |
IconSupport.lua
UI/IconSupport.lua
0168
|
local textureOffset, textureAtlas = IconLookup( thisCiv.PortraitIndex, iconSize, thisCiv.AlphaIconAtlas ); |
ProductionPopup.lua
UI/InGame/Popups/ProductionPopup.lua
0910
|
local textureOffset, textureSheet = IconLookup( thisUnitInfo.PortraitIndex, 45, thisUnitInfo.IconAtlas ); |
0964
|
local textureOffset, textureSheet = IconLookup( thisInfo.PortraitIndex, 45, thisInfo.IconAtlas ); |
TechButtonInclude.lua
UI/InGame/TechTree/TechButtonInclude.lua
0392
|
local textureOffset, textureSheet = IconLookup( thisProjectInfo.PortraitIndex, textureSize, thisProjectInfo.IconAtlas ); |
0410
|
local textureOffset, textureSheet = IconLookup( thisResourceInfo.PortraitIndex, textureSize, thisResourceInfo.IconAtlas ); |
0426
|
local textureOffset, textureSheet = IconLookup( thisBuildInfo.IconIndex, textureSize, thisBuildInfo.IconAtlas ); |
UniqueBonuses.lua
UI/FrontEnd/GameSetup/UniqueBonuses.lua
0011
|
questionOffset, questionTextureSheet = IconLookup( 23, 64, "CIV_COLOR_ATLAS" ); |
0029
|
local textureOffset, textureSheet = IconLookup( thisUnitInfo.PortraitIndex, textureSize, thisUnitInfo.IconAtlas ); |
0057
|
local textureOffset, textureSheet = IconLookup( thisBuildingInfo.PortraitIndex, textureSize, thisBuildingInfo.IconAtlas ); |
0085
|
local textureOffset, textureSheet = IconLookup( thisImprovmentInfo.PortraitIndex, textureSize, thisImprovmentInfo.IconAtlas ); |
UnitPanel.lua
UI/InGame/WorldView/UnitPanel.lua
0441
|
local textureOffset, textureAtlas = IconLookup( thisUnitInfo.UnitFlagIconOffset, 32, thisUnitInfo.UnitFlagAtlas ); |
0459
|
textureOffset, textureAtlas = IconLookup( thisUnitInfo.PortraitIndex, unitPortraitSize, thisUnitInfo.IconAtlas ); |
0500
|
local textureOffset, textureAtlas = IconLookup( 0, unitPortraitSize, "CITY_ATLAS" ); |
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.