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

Added an Options Panel.
author Tercio
date Mon, 20 Apr 2015 16:34:18 -0300
parents
children 7944c081e5b4
rev   line source
Tercio@11 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">
Tercio@11 2 <Script file="button.lua"/>
Tercio@11 3
Tercio@11 4 <Button name="DetailsFrameworkButtonTemplate" virtual="true">
Tercio@11 5 <Size x="100" y="20"/>
Tercio@11 6
Tercio@11 7 <Layers>
Tercio@11 8
Tercio@11 9 <Layer level="ARTWORK">
Tercio@11 10
Tercio@11 11 <!-- text -->
Tercio@11 12 <FontString name="$parent_Text" parentKey="text" inherits="GameFontNormal" justifyH="CENTER" nonspacewrap="false">
Tercio@11 13 <FontHeight val="10.5"/>
Tercio@11 14 <Anchors>
Tercio@11 15 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
Tercio@11 16 </Anchors>
Tercio@11 17 </FontString>
Tercio@11 18
Tercio@11 19 </Layer>
Tercio@11 20
Tercio@11 21 <Layer level="OVERLAY">
Tercio@11 22 <Texture name="$parent_TextureDisabled" setAllPoints="true" hidden="true" parentKey="texture_disabled" file = "Interface\AddOns\Details\images\button_disable_overlay"/>
Tercio@11 23 </Layer>
Tercio@11 24
Tercio@11 25 </Layers>
Tercio@11 26
Tercio@11 27 <Scripts>
Tercio@11 28
Tercio@11 29 <OnDisable>
Tercio@11 30 self.texture_disabled:Show()
Tercio@11 31 </OnDisable>
Tercio@11 32
Tercio@11 33 <OnEnable>
Tercio@11 34 self.texture_disabled:Hide()
Tercio@11 35 </OnEnable>
Tercio@11 36
Tercio@11 37 </Scripts>
Tercio@11 38
Tercio@11 39 </Button>
Tercio@11 40 </Ui>