Thread Tools Display Modes
12-12-05, 11:58 PM   #1
Konstant
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 33
Setting default toolbox textures?

I'm trying to figure out how to set the default textures of buttons at render time.

<Property name="NormalTexture" displayName="Normal Texture" type="wowuides.Texture" value="@skin@" visible="true" category="Appearance" defaultCopy="true" />

It has something to do with this.

Or... Do I need to build my own xml frames and inherit from them?
  Reply With Quote
12-13-05, 04:28 AM   #2
Nulkris
A Cobalt Mageweaver
 
Nulkris's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 214
Just put it inside your Frame definition like:

Code:
<Button name=.... >
<!--
	<FrameSkin>
	  ...
	</FrameSkin>
-->
<NormalTexture file="Interface/Texture/DefaultTex" ...>
</Button>
You don't have to inherit anything, the xml definition in the skin can define it all if you want. The Property definition value="@skin@" will bring the XML definition into the property viewer.
__________________
Nulkris - A80 Rogue - Proudmoore
(Also Drukris, Hamkris on Proudmoore; Hulkris on Jubei'Thos & Khaz Modan)
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Setting default toolbox textures?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off