Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/dropdown.xml @ 11:2f09fe4be15c
Added an Options Panel.
| author | Tercio |
|---|---|
| date | Mon, 20 Apr 2015 16:34:18 -0300 |
| parents | |
| children | 680465749fc7 |
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="dropdown.lua"/> | |
| 3 | |
| 4 <Button name="DetailsFrameworkDropDownTemplate" virtual="true"> | |
| 5 <Size x="150" y="20"/> | |
| 6 | |
| 7 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> | |
| 8 <EdgeSize> | |
| 9 <AbsValue val="10"/> | |
| 10 </EdgeSize> | |
| 11 <TileSize> | |
| 12 <AbsValue val="16"/> | |
| 13 </TileSize> | |
| 14 <BackgroundInsets> | |
| 15 <AbsInset left="1" right="1" top="0" bottom="1"/> | |
| 16 </BackgroundInsets> | |
| 17 </Backdrop> | |
| 18 | |
| 19 <Layers> | |
| 20 | |
| 21 <Layer level="BACKGROUND"> | |
| 22 <!-- statusbar texture --> | |
| 23 <Texture name="$parent_StatusBarTexture" parentKey="statusbar"> | |
| 24 <Anchors> | |
| 25 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="3" y="-3"/> | |
| 26 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="-3" y="3"/> | |
| 27 </Anchors> | |
| 28 </Texture> | |
| 29 </Layer> | |
| 30 | |
| 31 <Layer level="ARTWORK"> | |
| 32 <!-- icon texture --> | |
| 33 <Texture name="$parent_IconTexture" parentKey="icon" file = "Interface\COMMON\UI-ModelControlPanel"> | |
| 34 <Color r="1" g="1" b="1" a="0.4"/> | |
| 35 <TexCoords left="0.625" right="0.78125" top="0.328125" bottom="0.390625"/> | |
| 36 <Size x="20" y="20" /> | |
| 37 <Anchors> | |
| 38 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/> | |
| 39 </Anchors> | |
| 40 </Texture> | |
| 41 <!-- text --> | |
| 42 <FontString name="$parent_Text" parentKey="text" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="true" text="no option selected"> | |
| 43 <Color r="1" g="1" b="1" a="0.4"/> | |
| 44 <FontHeight val="10.5"/> | |
| 45 <Anchors> | |
| 46 <Anchor point="LEFT" relativeTo="$parent_IconTexture" relativePoint="RIGHT" x="5" y="0"/> | |
| 47 </Anchors> | |
| 48 </FontString> | |
| 49 | |
| 50 <!-- <Texture name="$parent_ArrowTextureDisabled" parentKey="textureDisabled" file = "Interface\Buttons\UI-ScrollBar-UI-ScrollBar-ScrollDownButton-Disabled"> | |
| 51 <Size x="32" y="32" /> | |
| 52 </Texture> --> | |
| 53 </Layer> | |
| 54 | |
| 55 <Layer level="OVERLAY"> | |
| 56 <Texture name="$parent_ArrowTexture2" alphaMode="ADD" parentKey="arrowTexture2" file = "Interface\Buttons\UI-ScrollBar-ScrollDownButton-Highlight" hidden="true"> | |
| 57 <Size x="32" y="28"/> | |
| 58 <Anchors> | |
| 59 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="5" y="-1"/> | |
| 60 </Anchors> | |
| 61 </Texture> | |
| 62 <!-- button textures --> | |
| 63 <Texture name="$parent_ArrowTexture" parentKey="arrowTexture" file = "Interface\Buttons\UI-ScrollBar-ScrollDownButton-Up"> | |
| 64 <Size x="32" y="28"/> | |
| 65 <Anchors> | |
| 66 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="5" y="-1"/> | |
| 67 </Anchors> | |
| 68 </Texture> | |
| 69 </Layer> | |
| 70 | |
| 71 </Layers> | |
| 72 | |
| 73 <Frames> | |
| 74 | |
| 75 <Frame name="$Parent_Border" parentKey="dropdownborder" hidden="true" frameStrata="FULLSCREEN"> | |
| 76 <Size x="150" y="170"/> | |
| 77 | |
| 78 <Anchors> | |
| 79 <Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="BOTTOMLEFT"/> | |
| 80 </Anchors> | |
| 81 | |
| 82 <Backdrop bgFile="Interface\AddOns\Details\images\background" edgeFile="Interface\AddOns\Details\images\border_3" tile="true"> | |
| 83 <EdgeSize> | |
| 84 <AbsValue val="16"/> | |
| 85 </EdgeSize> | |
| 86 <TileSize> | |
| 87 <AbsValue val="256"/> | |
| 88 </TileSize> | |
| 89 <BackgroundInsets> | |
| 90 <AbsInset left="4" right="4" top="4" bottom="5"/> | |
| 91 </BackgroundInsets> | |
| 92 </Backdrop> | |
| 93 | |
| 94 <Scripts> | |
| 95 <OnHide> | |
| 96 DetailsDropDownOptionsFrameOnHide (self); | |
| 97 </OnHide> | |
| 98 <OnLoad> | |
| 99 self:SetBackdropColor (0, 0, 0, 0.95); | |
| 100 </OnLoad> | |
| 101 </Scripts> | |
| 102 | |
| 103 </Frame> | |
| 104 | |
| 105 <ScrollFrame name="$Parent_ScrollFrame" parentKey="dropdownframe" hidden="true" frameStrata="FULLSCREEN"> | |
| 106 <Size x="150" y="150"/> | |
| 107 <Anchors> | |
| 108 <Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="BOTTOMLEFT" x="0" y="-10" /> | |
| 109 </Anchors> | |
| 110 | |
| 111 <ScrollChild> | |
| 112 <Frame name="$Parent_ScrollChild" frameStrata="DIALOG" parentKey="scrollchild"> | |
| 113 | |
| 114 <Size x="150" y="150"/> | |
| 115 | |
| 116 <Anchors> | |
| 117 <Anchor point="TOPLEFT" relativeTo="$Parent" relativePoint="TOPLEFT" x="0" y="0" /> | |
| 118 </Anchors> | |
| 119 | |
| 120 <Layers> | |
| 121 <Layer level="BACKGROUND"> | |
| 122 <!-- selected texture --> | |
| 123 <Texture name="$parent_SelectedTexture" parentKey="selected" hidden="true" file="Interface\AddOns\Details\framework\cooltip_background"> | |
| 124 <Size x="150" y="16" /> | |
| 125 <!--<TexCoords left="0.31250000" right="0.78515625" top="0.00390625" bottom="0.36328125"/>--> | |
| 126 <Anchors> | |
| 127 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/> | |
| 128 </Anchors> | |
| 129 </Texture> | |
| 130 </Layer> | |
| 131 | |
| 132 <Layer level="ARTWORK"> | |
| 133 <!-- mouse over texture --> | |
| 134 <Texture name="$parent_MouseOverTexture" alphaMode="ADD" parentKey="mouseover" hidden="true" file="Interface\Buttons\UI-Listbox-Highlight"> | |
| 135 <Size x="150" y="15" /> | |
| 136 <Anchors> | |
| 137 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/> | |
| 138 </Anchors> | |
| 139 </Texture> | |
| 140 </Layer> | |
| 141 </Layers> | |
| 142 | |
| 143 </Frame> | |
| 144 | |
| 145 </ScrollChild> | |
| 146 | |
| 147 </ScrollFrame> | |
| 148 | |
| 149 </Frames> | |
| 150 | |
| 151 <Scripts> | |
| 152 | |
| 153 <OnLoad> | |
| 154 self:SetBackdropColor (1, 1, 1, .5); | |
| 155 self.arrowTexture:SetDrawLayer ("OVERLAY", 1); | |
| 156 self.arrowTexture2:SetDrawLayer ("OVERLAY", 2); | |
| 157 | |
| 158 tinsert (UISpecialFrames, self.dropdownborder:GetName()); | |
| 159 tinsert (UISpecialFrames, self.dropdownframe:GetName()); | |
| 160 </OnLoad> | |
| 161 | |
| 162 <OnShow> | |
| 163 DetailsFrameworkDropDownOnShow (self); | |
| 164 </OnShow> | |
| 165 | |
| 166 <OnHide> | |
| 167 DetailsFrameworkDropDownOnHide (self); | |
| 168 </OnHide> | |
| 169 | |
| 170 <OnEnter> | |
| 171 DetailsFrameworkDropDownOnEnter (self); | |
| 172 </OnEnter> | |
| 173 | |
| 174 <OnLeave> | |
| 175 DetailsFrameworkDropDownOnLeave (self); | |
| 176 </OnLeave> | |
| 177 | |
| 178 <OnSizeChanged> | |
| 179 DetailsFrameworkDropDownOnSizeChanged (self); | |
| 180 </OnSizeChanged> | |
| 181 | |
| 182 <OnMouseDown> | |
| 183 DetailsFrameworkDropDownOnMouseDown (self); | |
| 184 </OnMouseDown> | |
| 185 </Scripts> | |
| 186 | |
| 187 </Button> | |
| 188 | |
| 189 <Button name="DetailsFrameworkDropDownOptionTemplate" virtual="true" frameStrata="TOOLTIP"> | |
| 190 <Size x="150" y="20" /> | |
| 191 | |
| 192 <Layers> | |
| 193 | |
| 194 <Layer level="ARTWORK"> | |
| 195 <!-- statusbar texture --> | |
| 196 <Texture name="$parent_StatusBarTexture" parentKey="statusbar"> | |
| 197 <Size x="150" y="20" /> | |
| 198 <Anchors> | |
| 199 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="1" y="0"/> | |
| 200 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="-10" y="0"/> | |
| 201 </Anchors> | |
| 202 </Texture> | |
| 203 </Layer> | |
| 204 | |
| 205 <Layer level="OVERLAY"> | |
| 206 <!-- icon texture --> | |
| 207 <Texture name="$parent_IconTexture" parentKey="icon" file = "Interface\ICONS\Spell_ChargePositive"> | |
| 208 <Size x="20" y="20" /> | |
| 209 <Anchors> | |
| 210 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="2" y="0"/> | |
| 211 </Anchors> | |
| 212 </Texture> | |
| 213 <!-- text --> | |
| 214 <FontString name="$parent_Text" parentKey="label" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="false"> | |
| 215 <FontHeight val="10.5"/> | |
| 216 <Anchors> | |
| 217 <Anchor point="LEFT" relativeTo="$parent_IconTexture" relativePoint="RIGHT" x="5" y="0"/> | |
| 218 </Anchors> | |
| 219 </FontString> | |
| 220 </Layer> | |
| 221 </Layers> | |
| 222 | |
| 223 <Scripts> | |
| 224 <OnMouseDown> | |
| 225 DetailsFrameworkDropDownOptionClick (self); | |
| 226 </OnMouseDown> | |
| 227 | |
| 228 <OnEnter> | |
| 229 DetailsFrameworkDropDownOptionOnEnter (self); | |
| 230 </OnEnter> | |
| 231 | |
| 232 <OnLeave> | |
| 233 DetailsFrameworkDropDownOptionOnLeave (self); | |
| 234 </OnLeave> | |
| 235 | |
| 236 </Scripts> | |
| 237 | |
| 238 </Button> | |
| 239 | |
| 240 </Ui> | |
| 241 |
