Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
(Created page with "{{#data:Itemtip |name=Vicious Gladiator's Barrier |quality=epic |icon=inv_shield_pvp400_c_01 |bind=bop |slot=Off Hand |type=Shield |armor=11896 |stamina=286 |intellect=190 |durab...")
 
(→‎Images: Changing the BLP link from wikipedia to the local BLP article.)
 
Line 1: Line 1:
  +
A '''Texture''' is a [[XML/LayoutFrame|LayoutFrame]] XML element that describes a graphic. The graphic may be an image loaded by Blizzard or an addon, or it may be a solid color or gradient. Textures support partially transparent images and different strategies for blending these into other images. They may be changed to show only a portion of a loaded image using ''texture coordinates''.
−
{{#data:Itemtip
 
−
|name=Vicious Gladiator's Barrier
 
−
|quality=epic
 
−
|icon=inv_shield_pvp400_c_01
 
−
|bind=bop
 
−
|slot=Off Hand
 
−
|type=Shield
 
−
|armor=11896
 
−
|stamina=286
 
−
|intellect=190
 
−
|durability=120
 
−
|crit=127
 
−
|level=85
 
−
|ilvl=359
 
−
|sellprice=215529
 
−
|itemid=61360
 
−
|resilience=127
 
−
}}
 
−
==Source==
 
−
{{Season 9 Arena reward|shield}}
 
   
  +
==Images==
−
==Patches and hotfixes==
 
  +
Textures are the means to display images in the game. The image must be either a [http://en.wikipedia.org/wiki/Truevision_TGA TGA] or [[BLP]] image file. Textures may only load images whose dimensions are powers of two, such as 2x2, 4x8, and so on. Images that have non-power of two dimensions will show up as solid green textures. The image does not need to be square, however, so rectangular dimensions like 32x128 are also valid.
−
{{Patch 4.0.3a|note=Added.}}
 
   
−
==External links==
+
==Virtual Textures==
−
<!-- Read http://www.wowpedia.org/Wowpedia:External_links before posting your links here.
 
−
Links that do not conform to the rules will be DELETED.
 
−
Repeat violations may result in a BAN.
 
−
Have a nice day. :) -->
 
−
{{Elinks-item|61360}}
 
   
  +
Virtual textures are textures that are allowed to be used as a template for other textures. This is useful in situations where textures vary by a small amount. In this case, the similarity can be put in a virtual texture, and the children need to only describe their differences.
−
[[Category:World of Warcraft epic items]]
 
  +
−
[[Category:World of Warcraft shield items]]
 
  +
==Elements==
  +
<[[XML/TexCoords|TexCoords]]>, [[XML/Color elements|Color]], Gradient
  +
  +
==Attributes==
  +
;file
  +
:{{attrtype|string}} File name
  +
;[[UITYPE AlphaMode|alphaMode]]
  +
:{{attrtype|string}} Blending mode
  +
  +
==Notes==
  +
Note: The Texture must be within a ''[[XML_User_Interface#Layers_and_Textures|<Layer>]]''
  +
  +
==Examples==
  +
  +
<pre>
  +
<Texture name="SparkleTextureNormal" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
  +
<Size>
  +
<AbsDimension x="13" y="13"/>
  +
</Size>
  +
<Anchors>
  +
<Anchor point="CENTER">
  +
<Offset>
  +
<AbsDimension x="0" y="0"/>
  +
</Offset>
  +
</Anchor>
  +
</Anchors>
  +
<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
  +
</Texture>
  +
</pre>
  +
[[Category:XML elements]]

Revision as of 16:19, 12 March 2011

A Texture is a LayoutFrame XML element that describes a graphic. The graphic may be an image loaded by Blizzard or an addon, or it may be a solid color or gradient. Textures support partially transparent images and different strategies for blending these into other images. They may be changed to show only a portion of a loaded image using texture coordinates.

Images

Textures are the means to display images in the game. The image must be either a TGA or BLP image file. Textures may only load images whose dimensions are powers of two, such as 2x2, 4x8, and so on. Images that have non-power of two dimensions will show up as solid green textures. The image does not need to be square, however, so rectangular dimensions like 32x128 are also valid.

Virtual Textures

Virtual textures are textures that are allowed to be used as a template for other textures. This is useful in situations where textures vary by a small amount. In this case, the similarity can be put in a virtual texture, and the children need to only describe their differences.

Elements

<TexCoords>, Color, Gradient

Attributes

file
(string) File name
alphaMode
(string) Blending mode

Notes

Note: The Texture must be within a <Layer>

Examples

<Texture name="SparkleTextureNormal" file="Interface\ItemSocketingFrame\UI-ItemSockets" alphaMode="ADD" hidden="true">
	<Size>
		<AbsDimension x="13" y="13"/>
	</Size>
	<Anchors>
		<Anchor point="CENTER">
			<Offset>
				<AbsDimension x="0" y="0"/>
			</Offset>
 		</Anchor>
	</Anchors>
	<TexCoords left="0.3984375" right="0.4453125" top="0.40234375" bottom="0.44921875"/>
</Texture>