comparison Libs/DF/button.xml @ 11:2f09fe4be15c

Added an Options Panel.
author Tercio
date Mon, 20 Apr 2015 16:34:18 -0300
parents
children 7944c081e5b4
comparison
equal deleted inserted replaced
10:f1e32be6773e 11:2f09fe4be15c
1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ .. \FrameXML\UI.xsd">
2 <Script file="button.lua"/>
3
4 <Button name="DetailsFrameworkButtonTemplate" virtual="true">
5 <Size x="100" y="20"/>
6
7 <Layers>
8
9 <Layer level="ARTWORK">
10
11 <!-- text -->
12 <FontString name="$parent_Text" parentKey="text" inherits="GameFontNormal" justifyH="CENTER" nonspacewrap="false">
13 <FontHeight val="10.5"/>
14 <Anchors>
15 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
16 </Anchors>
17 </FontString>
18
19 </Layer>
20
21 <Layer level="OVERLAY">
22 <Texture name="$parent_TextureDisabled" setAllPoints="true" hidden="true" parentKey="texture_disabled" file = "Interface\AddOns\Details\images\button_disable_overlay"/>
23 </Layer>
24
25 </Layers>
26
27 <Scripts>
28
29 <OnDisable>
30 self.texture_disabled:Show()
31 </OnDisable>
32
33 <OnEnable>
34 self.texture_disabled:Hide()
35 </OnEnable>
36
37 </Scripts>
38
39 </Button>
40 </Ui>