<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=UIElement.SetTextureOffsetVal_%28Civ5_API%29</id>
	<title>UIElement.SetTextureOffsetVal (Civ5 API) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=UIElement.SetTextureOffsetVal_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=UIElement.SetTextureOffsetVal_(Civ5_API)&amp;action=history"/>
	<updated>2026-04-06T14:38:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=UIElement.SetTextureOffsetVal_(Civ5_API)&amp;diff=13578&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=UIElement.SetTextureOffsetVal_(Civ5_API)&amp;diff=13578&amp;oldid=prev"/>
		<updated>2012-09-20T14:38:31Z</updated>

		<summary type="html">&lt;p&gt;Bot update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Civ5 API Beta Banner}}&lt;br /&gt;
&amp;#039;&amp;#039;This page is a part of the [[Lua and UI Reference (Civ5)]].&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TypeInfos5|Function.png|This function is a member of ControlBase.&amp;lt;br/&amp;gt;&lt;br /&gt;
This is an instance method, invoke it with a colon.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;#039;&amp;#039;&amp;#039;void&amp;#039;&amp;#039;&amp;#039; UIElement:SetTextureOffsetVal&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt;&amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; arg0, &amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; offset&amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Parameters&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|arg0:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;No description available.&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|offset:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;No description available.&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source code samples=&lt;br /&gt;
&amp;#039;&amp;#039;Redundant occurences have been removed.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|CivilopediaScreen.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/UI/Civilopedia/CivilopediaScreen.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|1817}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Controls.Portrait:SetTextureOffsetVal(0,0);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|IconSupport.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/IconSupport.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0123}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;imageControl:SetTextureOffsetVal( (offset % numCols) * iconSize, math.floor(offset / numCols) * iconSize );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0196}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;teamColorControl:SetTextureOffsetVal( 141, 0 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0199}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;teamColorControl:SetTextureOffsetVal( 77, 0 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0202}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;teamColorControl:SetTextureOffsetVal( 32, 0 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0205}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;teamColorControl:SetTextureOffsetVal( 0, 0 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|MilitaryOverview.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Popups/MilitaryOverview.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0239}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;instance.MovementPip:SetTextureOffsetVal( 0, 0 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0241}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;instance.MovementPip:SetTextureOffsetVal( 0, 96 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0243}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;instance.MovementPip:SetTextureOffsetVal( 0, 32 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|MPList.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/WorldView/MPList.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0160}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;controlTable.Icon:SetTextureOffsetVal( 228, 68 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TaskList.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/TaskList.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0038}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;controlTable.TaskEntryImage:SetTextureOffsetVal(0, iOffset);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|YieldIconManager.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/YieldIconManager.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0127}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;imageInstance.Image:SetTextureOffsetVal( yieldType * 128, 512 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0129}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;imageInstance.Image:SetTextureOffsetVal( yieldType * 128, 128 * ( amount - 1 ) );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0142}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;textImageInstance.Image:SetTextureOffsetVal( GetNumberOffset( amount ) );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0150}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;imageInstance.Image:SetTextureOffsetVal( 0 * 128, 512 );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0152}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;imageInstance.Image:SetTextureOffsetVal( 0 * 128, 128 * ( amount - 1 ) );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Civ5 API Footer}}&lt;br /&gt;
[[Category:Civ5 Methods and Functions|SetTextureOffsetVal]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>