UIElement.SetTextureOffsetVal (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:38, 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 ControlBase.

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


Usage

void UIElement:SetTextureOffsetVal(int arg0, int offset)


Parameters

arg0: No description available.
offset: No description available.


Source code samples

Redundant occurences have been removed.

CivilopediaScreen.lua (G&K)

DLC/Expansion/UI/Civilopedia/CivilopediaScreen.lua
1817
Controls.Portrait:SetTextureOffsetVal(0,0);


IconSupport.lua

UI/IconSupport.lua
0123
imageControl:SetTextureOffsetVal( (offset % numCols) * iconSize, math.floor(offset / numCols) * iconSize );
0196
teamColorControl:SetTextureOffsetVal( 141, 0 );
0199
teamColorControl:SetTextureOffsetVal( 77, 0 );
0202
teamColorControl:SetTextureOffsetVal( 32, 0 );
0205
teamColorControl:SetTextureOffsetVal( 0, 0 );


MilitaryOverview.lua

UI/InGame/Popups/MilitaryOverview.lua
0239
instance.MovementPip:SetTextureOffsetVal( 0, 0 );
0241
instance.MovementPip:SetTextureOffsetVal( 0, 96 );
0243
instance.MovementPip:SetTextureOffsetVal( 0, 32 );


MPList.lua

UI/InGame/WorldView/MPList.lua
0160
controlTable.Icon:SetTextureOffsetVal( 228, 68 );


TaskList.lua

UI/InGame/TaskList.lua
0038
controlTable.TaskEntryImage:SetTextureOffsetVal(0, iOffset);


YieldIconManager.lua

UI/InGame/YieldIconManager.lua
0127
imageInstance.Image:SetTextureOffsetVal( yieldType * 128, 512 );
0129
imageInstance.Image:SetTextureOffsetVal( yieldType * 128, 128 * ( amount - 1 ) );
0142
textImageInstance.Image:SetTextureOffsetVal( GetNumberOffset( amount ) );
0150
imageInstance.Image:SetTextureOffsetVal( 0 * 128, 512 );
0152
imageInstance.Image:SetTextureOffsetVal( 0 * 128, 128 * ( amount - 1 ) );



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.