annotate Devian.xml @ 98:33bc8baba858

start of a lot of v3 groundwork based on better knowledge of the addon interface: - use of mixin as a lexical center for generated frames - removal of unfinished segments
author Nenue
date Wed, 26 Oct 2016 10:17:43 -0400
parents f6fae1a4c66c
children 7d94df3804a7
rev   line source
Nenue@93 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/
Nenue@93 2 ..\FrameXML\UI.xsd">
Nenue@32 3 <!--@no-lib-strip@-->
Nenue@35 4 <!--@end-no-lib-strip@-->
Nenue@35 5
Nenue@98 6 <Script file="Devian.lua" />
Nenue@14 7
Nenue@98 8 <Frame name="Devian" mixin="DevianCore" parent="UIParent">
Nenue@98 9 <Scripts>
Nenue@98 10 <OnLoad method="OnLoad" />
Nenue@98 11 <OnEvent method="OnEvent" />
Nenue@98 12 </Scripts>
Nenue@98 13 </Frame>
Nenue@98 14
Nenue@14 15
Nenue@33 16
Nenue@36 17 <Texture virtual="true" name="DevianHeader" alphaMode="BLEND">
Nenue@33 18 <Anchors>
Nenue@33 19 <Anchor point="TOPLEFT" />
Nenue@33 20 <Anchor point="TOPRIGHT" />
Nenue@33 21 </Anchors>
Nenue@33 22 <Size y="20" />
Nenue@33 23 <Color r="0.3" g="0.3" b="0.3" a="1" />
Nenue@33 24 <Gradient orientation="VERTICAL">
Nenue@33 25 <MinColor r="0" g="0" b="0" a="0.7"/>
Nenue@33 26 <MaxColor r="0.3" g="0.3" b="0.3" a="0.7"/>
Nenue@33 27 </Gradient>
Nenue@33 28 </Texture>
Nenue@33 29
Nenue@47 30
Nenue@47 31 <Button virtual="true" name="DevianButton" alphaMode="BLEND">
Nenue@36 32 <Size x="32" y="16" />
Nenue@35 33 <Layers>
Nenue@35 34 <Layer level="ARTWORK">
Nenue@47 35 <Texture name="$parentIcon" parentKey="icon" file="Interface\Addons\Devian\menu-button.blp" setAllPoints="true" alphaMode="ADD">
Nenue@35 36 <Color a="1" r="1" g="1" b="1" />
Nenue@36 37 <TexCoords top="0.47" left="0" bottom="0.9" right="1" />
Nenue@35 38 </Texture>
Nenue@93 39
Nenue@35 40 </Layer>
Nenue@35 41 </Layers>
Nenue@35 42 </Button>
Nenue@35 43
Nenue@47 44 <Button virtual="true" name="DevianDDButton" inherits="DevianButton" alphaMode="BLEND">
Nenue@47 45 <Scripts>
Nenue@47 46 <OnClick>
Nenue@47 47 ToggleDropDownMenu(1, nil, self:GetParent().menuFrame, self, 0, 0);
Nenue@47 48 </OnClick>
Nenue@47 49 </Scripts>
Nenue@47 50 </Button>
Nenue@35 51
Nenue@93 52
Nenue@98 53 <Font name="DevianText" font="Interface\Addons\Devian\font\SourceCodePro-Regular.ttf" height="13" justifyH="LEFT" outline="NORMAL" virtual="true">
Nenue@47 54 <Color r="1" g="1" b="1" a="1" />
Nenue@47 55 </Font>
Nenue@35 56
Nenue@35 57
Nenue@55 58 <Button name="DevianExecButton" parent="UIParent" hidden="true">
Nenue@55 59 <Size x="32" y="32" />
Nenue@55 60 <Anchors>
Nenue@55 61 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" relativeTo="DevianDock" x="-4"/>
Nenue@55 62 </Anchors>
Nenue@55 63
Nenue@55 64 <NormalTexture file="Interface/Addons/Devian/arrow.blp" setAllPoints="true" alphaMode="ADD">
Nenue@55 65 <Color r="1" g="1" b="1" a="1" />
Nenue@55 66 </NormalTexture>
Nenue@55 67 <PushedTexture file="Interface/Addons/Devian/arrow.blp" setAllPoints="true" alphaMode="ADD">
Nenue@55 68 <Anchors>
Nenue@55 69 <Anchor point="TOPRIGHT" x="-1" y="-1" />
Nenue@55 70 <Anchor point="BOTTOMLEFT" x="1" y="1" />
Nenue@55 71 </Anchors>
Nenue@55 72 <Color r="1" g="0" b="0.5" a="1" />
Nenue@55 73 </PushedTexture>
Nenue@55 74
Nenue@55 75
Nenue@55 76
Nenue@55 77 <Layers>
Nenue@55 78 <Layer level="ARTWORK">
Nenue@55 79
Nenue@55 80 </Layer>
Nenue@55 81 </Layers>
Nenue@55 82 </Button>
Nenue@47 83
Nenue@93 84 <Button name="DevianBeacon" hidden="true" virtual="true" enableMouse="true" alpha="1" frameStrata="MEDIUM" mixin="DevianDockButtonMixin">
Nenue@93 85 <Size x="64" y="24" />
Nenue@47 86
Nenue@47 87 <Scripts>
Nenue@93 88 <OnShow method="OnShow" />
Nenue@93 89 <OnEnter method="OnEnter" />
Nenue@93 90 <OnMouseDown method="OnMouseDown" />
Nenue@93 91 <OnClick method="Select" />
Nenue@47 92 </Scripts>
Nenue@47 93 <Layers>
Nenue@93 94 <Layer level="BACKGROUND">
Nenue@93 95 <Texture parentKey="Background" setAllPoints="true">
Nenue@93 96 <Color a="0.5" r="0" g="0" b="0" />
Nenue@93 97 </Texture>
Nenue@93 98 </Layer>
Nenue@47 99 <Layer level="OVERLAY">
Nenue@93 100 <Texture parentKey="Stripe">
Nenue@93 101 <Anchors>
Nenue@93 102 <Anchor point="TOPLEFT" />
Nenue@93 103 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="0" y="-3" />
Nenue@93 104 </Anchors>
Nenue@93 105 </Texture>
Nenue@47 106 </Layer>
Nenue@47 107 </Layers>
Nenue@47 108 <Frames>
Nenue@93 109 <Frame name="$parentText" parentKey="caption" alpha="1" blendMode="BLEND" enableMouse="false">
Nenue@93 110 <Size x="64" y="24" />
Nenue@47 111 <Anchors>
Nenue@47 112 <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="0" />
Nenue@47 113 </Anchors>
Nenue@47 114 <Layers>
Nenue@47 115 <Layer level="OVERLAY">
Nenue@93 116 <FontString text="Test String" inherits="DevianDockHeader" parentKey="name" wordwrap="false" setAllPoints="true">
Nenue@93 117 <Anchors>
Nenue@93 118 <Anchor point="BOTTOM" />
Nenue@93 119 </Anchors>
Nenue@47 120 <Color r="1" g="1" b="1" a="1" />
Nenue@47 121 <Shadow>
Nenue@47 122 <Color r="0" g="0" b="0" a="1" />
Nenue@47 123 <Offset x="0" y="-2" />
Nenue@47 124 </Shadow>
Nenue@47 125 </FontString>
Nenue@47 126 </Layer>
Nenue@47 127 </Layers>
Nenue@93 128 <Animations>
Nenue@93 129 <AnimationGroup parentKey="pulse" looping="BOUNCE" setToFinalAlpha="false">
Nenue@93 130 <Alpha fromAlpha=".5" toAlpha="1" duration="0.4" endDelay="0.6" order="1" childKey="name" />
Nenue@93 131
Nenue@93 132 </AnimationGroup>
Nenue@93 133 </Animations>
Nenue@47 134 </Frame>
Nenue@47 135 </Frames>
Nenue@47 136 </Button>
Nenue@47 137
Nenue@4 138 </Ui>