XML/ColorSelect

From Warcraft Wiki
< XML
Jump to navigation Jump to search

<ColorSelect> (inherits from <Frame>, creates a ColorSelect widget) selects a color by hue and shade.

<ColorSelect>
	<ColorWheelTexture />
	<ColorWheelThumbTexture />
	<ColorValueTexture />
	<ColorValueThumbTexture />
</ColorSelect>

Child elements

<ColorWheelTexture> produces a color wheel of hues; inherits <Texture>

<ColorValueTexture> produces a gradiant of shades; inherits <Texture>.

<ColorWheelThumbTexture> and <ColorValueThumbTexture> mark the current selection; inherit <Texture>.

Example

Included in Backdrop

<ColorSelect name="$parentColorSelect" enableMouse="true">
	<Size>
		<AbsDimension x="100" y="100"></AbsDimension>
	</Size>
	<Anchors>
		<Anchor point="LEFT">
				<Offset>
					<AbsDimension x="50" y="0"></AbsDimension>
				</Offset>
		</Anchor>
	</Anchors>
	<ColorWheelTexture></ColorWheelTexture>
</ColorSelect>

Colorselect.jpg