UIElement.SetTextureOffset (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, search

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


Function.png This method is declared by AlphaAnim, Context, Grid, Image, ScrollAnim and Stack.

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


Usage

void UIElement:SetTextureOffset(Vector2 questionOffset)


Parameters

questionOffset: No description available.


Source code samples

Redundant occurences have been removed.

CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
1805
image:SetTextureOffset( textureOffset );
2081
thisBuildingInstance.UnlockedBuildingImage:SetTextureOffset( nullOffset );
2939
thisBuildingInstance.RequiredBuildingImage:SetTextureOffset( nullOffset );
3546
thisBuildingInstance.UniqueBuildingImage:SetTextureOffset( nullOffset );
3577
thisImprovementInstance.UniqueImprovementImage:SetTextureOffset( nullOffset );


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0069
Controls.UnitIcon:SetTextureOffset( textureOffset );
0070
Controls.UnitIconShadow:SetTextureOffset( textureOffset );
0117
Controls.UnitPortrait:SetTextureOffset(textureOffset);


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0368
Controls.AgentRank:SetTextureOffset(rankOffsets[agent.Rank]);
0464
Controls.AgentActivityIcon:SetTextureOffset(progressBarState.IconOffset);
0544
agentEntry.AgentRank:SetTextureOffset(rankOffsets[v.Rank]);
0651
agentEntry.AgentActivityIcon:SetTextureOffset(progressBarState.IconOffset);


FoRScenarioLoadScreen.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/FoRScenarioLoadScreen.lua
0158
controlTable.Icon:SetTextureOffset( questionOffset );
0160
controlTable.IconShadow:SetTextureOffset( questionOffset );
0216
controlTable.Icon:SetTextureOffset( textureOffset );
0218
controlTable.IconShadow:SetTextureOffset( textureOffset );
0289
Controls.IconShadow:SetTextureOffset( questionOffset );


GameSetupScreen.lua

UI/FrontEnd/GameSetup/GameSetupScreen.lua
0512
Controls[buttonName]:SetTextureOffset( questionOffset );


HallOfFame.lua

UI/InGame/Popups/HallOfFame.lua
0096
controlTable.WinCivIcon:SetTextureOffset( textureOffset );
0098
controlTable.CivIconShadow:SetTextureOffset( textureOffset );


IconSupport.lua

UI/IconSupport.lua
0172
iconControl:SetTextureOffset( textureOffset );


LoadMenu.lua

UI/FrontEnd/LoadMenu.lua
0274
Controls.CivIcon:SetTextureOffset(questionOffset);
0286
Controls.CivIcon:SetTextureOffset( textureOffset );
0369
Controls.MapSize:SetTextureOffset( questionOffset );
0382
Controls.Handicap:SetTextureOffset( questionOffset );
0395
Controls.SpeedIcon:SetTextureOffset( questionOffset );
0478
Controls.CivIcon:SetTextureOffset( questionOffset );
0483
Controls.MapType:SetTextureOffset( questionOffset );


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
0916
controlTable.ProductionButtonImage:SetTextureOffset(textureOffset);


SelectCivilization.lua

UI/FrontEnd/GameSetup/SelectCivilization.lua
0096
controlTable.CivIcon:SetTextureOffset( questionOffset );
0128
controlTable.CivIcon:SetTextureOffset( textureOffset );


TechButtonInclude.lua

UI/InGame/TechTree/TechButtonInclude.lua
0353
thisButton:SetTextureOffset( textureOffset );


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0213
pipe.TechPipeIcon:SetTextureOffset(Vector2(72,72));
0227
pipe.TechPipeIcon:SetTextureOffset(Vector2(72,0));
0280
pipe.TechPipeIcon:SetTextureOffset(Vector2(0,72));
0294
pipe.TechPipeIcon:SetTextureOffset(Vector2(0,0));


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0444
Controls.UnitIcon:SetTextureOffset(textureOffset);
0445
Controls.UnitIconShadow:SetTextureOffset(textureOffset);


VoteResultsPopup.lua

UI/InGame/Popups/VoteResultsPopup.lua
0059
controlTable.Portrait:SetTextureOffset( questionOffset );



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.