WoW:XML/Color elements: Difference between revisions

From AddOn Studio
< XML
Jump to navigation Jump to search
(remove delete and add Category:Interface Customization)
(Complete revamp.)
Line 1: Line 1:
"Color" elements are in use in many object types. They can indeed by named "Color", but there are several possibilities:
* Color
* MinColor
* MaxColor
* BarColor
* HighlightColor
* FogColor
The primary use however is in "Texture", which in turn gets used in ''many'' places.
== Attributes ==
Attributes: r="#" g="#" b="#" a="#"
Attributes: r="#" g="#" b="#" a="#"


  1. is a value from 0 to 1, r is red, g is green, b is blue and a is alpha  
* "#" is a value from 0.00 to 1.00
* r is red
* g is green
* b is blue
* a is alpha (transparency - 0.00 is completely see-through and 1.00 is opaque)
 
== Details ==


The Color element when used in a Texture element is there only to an area with a solid block of color (with thansparency). With other elements it can be used to change the color of the objects the element contains (such as the text in a fontstring). If you define file="" in the texture tag however Color will have no effect. You will have to use texturename:SetVertexColor()
The Color element when used in a Texture element is there only to an area with a solid block of color (with thansparency). With other elements it can be used to change the color of the objects the element contains (such as the text in a fontstring). If you define file="" in the texture tag however Color will have no effect. You will have to use texturename:SetVertexColor()


[[Category:Interface Customization]]
[[Category:Interface Customization]]

Revision as of 22:43, 27 May 2006

"Color" elements are in use in many object types. They can indeed by named "Color", but there are several possibilities:

  • Color
  • MinColor
  • MaxColor
  • BarColor
  • HighlightColor
  • FogColor

The primary use however is in "Texture", which in turn gets used in many places.

Attributes

Attributes: r="#" g="#" b="#" a="#"

  • "#" is a value from 0.00 to 1.00
  • r is red
  • g is green
  • b is blue
  • a is alpha (transparency - 0.00 is completely see-through and 1.00 is opaque)

Details

The Color element when used in a Texture element is there only to an area with a solid block of color (with thansparency). With other elements it can be used to change the color of the objects the element contains (such as the text in a fontstring). If you define file="" in the texture tag however Color will have no effect. You will have to use texturename:SetVertexColor()