UIElement.SetTexture (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 function is a member of ControlBase.

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


Usage

void UIElement:SetTexture(string textureName)


Parameters

textureName: No description available.


Source code samples

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

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0565
controls.StatusIconBG:SetTexture( row.StatusIcon );


CityStateStatusHelper.lua (G&K)

DLC/Expansion/UI/CityStateStatusHelper.lua
0123
negBarCtrl:SetTexture(info.NegativeStatusMeter);


CityView.lua

UI/InGame/CityView/CityView.lua
0435
controlTable.BuildingFilledSpecialistSlot3:SetTexture(scientistTexture);
0445
controlTable.BuildingFilledSpecialistSlot1:SetTexture(engineerTexture);
0446
controlTable.BuildingFilledSpecialistSlot2:SetTexture(engineerTexture);
0447
controlTable.BuildingFilledSpecialistSlot3:SetTexture(engineerTexture);
0449
controlTable.BuildingFilledSpecialistSlot1:SetTexture(workerTexture);
0450
controlTable.BuildingFilledSpecialistSlot2:SetTexture(workerTexture);
1501
Controls.HealthMeter:SetTexture("CityNamePanelHealthBarRed.dds");


CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
2938
thisBuildingInstance.RequiredBuildingImage:SetTexture( defaultErrorTextureSheet );


CivilopediaScreen.lua (G&K)

DLC/Expansion/UI/Civilopedia/CivilopediaScreen.lua
1816
Controls.Portrait:SetTexture("Religion256.dds");


CustomMod.lua

UI/FrontEnd/Modding/CustomMod.lua
0084
Controls.DetailsBackgroundImage:SetTexture(filePath);


DiploList.lua

UI/InGame/DiploList.lua
0476
controlTable.StatusIconBG:SetTexture(info.row.StatusIcon);


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0482
pStack.StatusIconBG:SetTexture(info.row.StatusIcon);


EndGameMenu.lua

UI/InGame/Popups/EndGameMenu.lua
0171
Controls.BackgroundImage:SetTexture(GameInfo.Victories["VICTORY_TIME"].VictoryBackground);


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0067
Controls.UnitIcon:SetTexture( textureAtlas );
0068
Controls.UnitIconShadow:SetTexture( textureAtlas );


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0660
agentEntry.AgentActivityProgress:SetTexture(progressBarState.ProgressBarTexture);


FoRScenarioLoadScreen.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/FoRScenarioLoadScreen.lua
0215
controlTable.Icon:SetTexture( textureAtlas );
0217
controlTable.IconShadow:SetTexture( textureAtlas );
0288
Controls.IconShadow:SetTexture( questionTextureSheet );


FrontEnd.lua

UI/FrontEnd/FrontEnd.lua
0013
Controls.AtlasLogo:SetTexture( "CivilzationVAtlas.dds" );


GameSetupScreen.lua

UI/FrontEnd/GameSetup/GameSetupScreen.lua
0511
Controls[buttonName]:SetTexture( questionTextureSheet );


HallOfFame.lua

UI/InGame/Popups/HallOfFame.lua
0095
controlTable.WinCivIcon:SetTexture( textureAtlas );


IconSupport.lua

UI/IconSupport.lua
0122
imageControl:SetTexture(filename);
0171
iconControl:SetTexture( textureAtlas );


InfoCorner.lua

UI/InGame/InfoCorner.lua
0060
Controls.PDButton:SetTexture( m_InfoData[iInfoType].Image );
0111
controlTable.MOImage:SetTexture( "assets/UI/Art/Icons/MainClose.dds" );
0114
controlTable.Button:SetTexture( value.Image );


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0440
v.ImageControl:SetTexture("SelectedDown.dds");


LoadMenu.lua

UI/FrontEnd/LoadMenu.lua
0285
Controls.CivIcon:SetTexture( textureAtlas );
0394
Controls.SpeedIcon:SetTexture( questionTextureSheet );
0482
Controls.MapType:SetTexture( questionTextureSheet );


MainMenu.lua

UI/FrontEnd/MainMenu.lua
0019
Controls.Civ5Logo:SetTexture( "CivilzationV_Logo.dds" );


MiniMapPanel.lua

UI/InGame/WorldView/MiniMapPanel.lua
0037
Controls.StrategicViewButton:SetTexture( "assets/UI/Art/Icons/MainWorldButton.dds" );
0045
Controls.StrategicMO:SetTexture( "assets/UI/Art/Icons/MainStrategicButton.dds" );
0046
Controls.StrategicHL:SetTexture( "assets/UI/Art/Icons/MainStrategicButtonHL.dds" );


NewEraPopup.lua

UI/InGame/Popups/NewEraPopup.lua
0037
Controls.EraImage:SetTexture(lastBackgroundImage);


SelectCivilization.lua

UI/FrontEnd/GameSetup/SelectCivilization.lua
0127
controlTable.CivIcon:SetTexture( textureAtlas );


SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0761
pipe.ConnectorImage:SetTexture(bottomRightTexture);
0813
pipe.ConnectorImage:SetTexture(topRightTexture);


TechButtonInclude.lua

UI/InGame/TechTree/TechButtonInclude.lua
0352
thisButton:SetTexture( textureSheet );


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0203
startPipe.TechPipeIcon:SetTexture(right1Texture);
0209
pipe.TechPipeIcon:SetTexture(right1Texture);
0226
pipe.TechPipeIcon:SetTexture(topRightTexture);
0279
pipe.TechPipeIcon:SetTexture(bottomLeftTexture);


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
0546
self.m_Instance.FlagShadow:SetTexture( textureName );


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0443
Controls.UnitIconShadow:SetTexture(textureAtlas);


VoteResultsPopup.lua

UI/InGame/Popups/VoteResultsPopup.lua
0058
controlTable.Portrait:SetTexture( questionTextureSheet );


YieldIconManager.lua

UI/InGame/YieldIconManager.lua
0125
imageInstance.Image:SetTexture(defaultTexture);



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.