annotate Libs/DF/cooltip.xml @ 43:2681843ada1c r43-release

- 7.2 ToC Update.
author Tercio
date Tue, 28 Mar 2017 19:59:04 -0300
parents a960d5372b0c
children 2bbf129690b0
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
Tercio@11 3 <Frame name="DFCooltipMainFrameTemplate" virtual="true" frameStrata="TOOLTIP">
Tercio@11 4 <Size x="500" y="500"/>
Tercio@11 5 <Anchors>
Tercio@11 6 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
Tercio@11 7 </Anchors>
Tercio@11 8
Tercio@11 9 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background-Dark" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
Tercio@11 10 <EdgeSize>
Tercio@11 11 <AbsValue val="16"/>
Tercio@11 12 </EdgeSize>
Tercio@11 13 <TileSize>
Tercio@11 14 <AbsValue val="16"/>
Tercio@11 15 </TileSize>
Tercio@11 16 <BackgroundInsets>
Tercio@11 17 <AbsInset left="3" right="3" top="4" bottom="4"/>
Tercio@11 18 </BackgroundInsets>
Tercio@11 19 </Backdrop>
Tercio@11 20
Tercio@11 21 <Scripts>
Tercio@11 22 <OnLoad>
Tercio@11 23 self:SetBackdropColor (0.09019, 0.09019, 0.18823, 1)
Tercio@11 24 self:SetBackdropBorderColor (1, 1, 1, 1)
Tercio@11 25 self.framebackgroundLeft:SetWidth (32)
Tercio@11 26 self.framebackgroundRight:SetWidth (32)
Tercio@11 27 </OnLoad>
Tercio@11 28 </Scripts>
Tercio@11 29
Tercio@11 30 <Layers>
Tercio@11 31
Tercio@11 32 <Layer level="BACKGROUND" textureSubLevel="2">
Tercio@11 33 <Texture name="$parent_FrameBackgroundCenter" parentKey="framebackgroundCenter" file = "Interface\AddOns\Details\framework\cooltip_background">
Tercio@11 34 <Color a = "1" r = "0" g = "1" b = "0" />
Tercio@11 35 <Anchors>
Tercio@11 36 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="35" y="-3"/>
Tercio@11 37 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-35" y="-3"/>
Tercio@11 38 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="35" y="3"/>
Tercio@11 39 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="-35" y="3"/>
Tercio@11 40 </Anchors>
Tercio@11 41 <TexCoords left="0.10546875" right="0.89453125" top="0" bottom="1"/>
Tercio@11 42 </Texture>
Tercio@11 43 </Layer>
Tercio@11 44
Tercio@11 45 <Layer level="BACKGROUND" textureSubLevel="3">
Tercio@11 46 <Texture name="$parent_FrameBackgroundLeft" parentKey="framebackgroundLeft" file = "Interface\AddOns\Details\framework\cooltip_background">
Tercio@11 47 <Color a = "1" r = "0" g = "1" b = "0" />
Tercio@11 48
Tercio@11 49 <Anchors>
Tercio@11 50 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="3" y="-3"/>
Tercio@11 51 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="3" y="3"/>
Tercio@11 52 </Anchors>
Tercio@11 53
Tercio@11 54 <TexCoords left="0" right="0.103515625" top="0" bottom="1"/>
Tercio@11 55 </Texture>
Tercio@11 56
Tercio@11 57 <Texture name="$parent_FrameBackgroundRight" parentKey="framebackgroundRight" file = "Interface\AddOns\Details\framework\cooltip_background">
Tercio@11 58 <Color a = "1" r = "0" g = "1" b = "0" />
Tercio@11 59
Tercio@11 60 <Anchors>
Tercio@11 61 <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-3" y="-3"/>
Tercio@11 62 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="-3" y="3"/>
Tercio@11 63 </Anchors>
Tercio@11 64
Tercio@11 65 <TexCoords left="0.896484375" right="1" top="0" bottom="1"/>
Tercio@11 66 </Texture>
Tercio@11 67 </Layer>
Tercio@11 68
Tercio@11 69 <Layer level="BACKGROUND" textureSubLevel="4">
Tercio@11 70 <Texture name="$parent_FrameWallPaper" parentKey="frameWallpaper">
Tercio@11 71 <Anchors>
Tercio@40 72 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
Tercio@40 73 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
Tercio@11 74 </Anchors>
Tercio@11 75 </Texture>
Tercio@11 76 </Layer>
Tercio@11 77
Tercio@11 78 <Layer level="ARTWORK">
Tercio@11 79 <!-- selected bar -->
Tercio@11 80
Tercio@11 81 <!-- top -->
Tercio@11 82 <Texture name="$parent_SelectedTop" parentKey="selectedTop" file = "Interface\AddOns\Details\images\cooltip_selected">
Tercio@11 83 <Size y="3"/>
Tercio@11 84 <TexCoords left="0" right="1" top="0" bottom="0.09375"/>
Tercio@11 85 </Texture>
Tercio@11 86
Tercio@11 87 <!-- bottom -->
Tercio@11 88 <Texture name="$parent_SelectedBottom" parentKey="selectedBottom" file = "Interface\AddOns\Details\images\cooltip_selected">
Tercio@11 89 <Size y="3"/>
Tercio@11 90 <TexCoords left="0" right="1" top="0.90625" bottom="1"/>
Tercio@11 91 </Texture>
Tercio@11 92
Tercio@11 93 <!-- middle -->
Tercio@11 94 <Texture name="$parent_Selected" parentKey="selectedMiddle" file = "Interface\AddOns\Details\images\cooltip_selected">
Tercio@11 95 <Anchors>
Tercio@11 96 <Anchor point="TOPLEFT" relativeTo="$parent_SelectedTop" relativePoint="BOTTOMLEFT"/>
Tercio@11 97 <Anchor point="BOTTOMRIGHT" relativeTo="$parent_SelectedBottom" relativePoint="TOPRIGHT"/>
Tercio@11 98 </Anchors>
Tercio@11 99
Tercio@11 100 <TexCoords left="0" right="1" top="0.125" bottom="0.875"/>
Tercio@11 101 </Texture>
Tercio@11 102
Tercio@11 103 <!-- banner image -->
Tercio@11 104 <Texture name="$parent_UpperImage2" hidden="true" parentKey="upperImage2" file = "">
Tercio@11 105 <Anchors>
Tercio@11 106 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="-3"/>
Tercio@11 107 <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP" x="0" y="-3"/>
Tercio@11 108 </Anchors>
Tercio@11 109 </Texture>
Tercio@11 110 </Layer>
Tercio@11 111
Tercio@11 112 <Layer level="OVERLAY">
Tercio@11 113 <!-- upper image2 -->
Tercio@11 114 <Texture name="$parent_UpperImage" hidden="true" parentKey="upperImage" file = "">
Tercio@11 115 <Anchors>
Tercio@11 116 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="-3"/>
Tercio@11 117 <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP" x="0" y="-3"/>
Tercio@11 118 </Anchors>
Tercio@11 119 </Texture>
Tercio@11 120 <FontString name="$parent_UpperImageText" parentKey="upperImageText" inherits="GameTooltipHeaderText" justifyH="LEFT" nonspacewrap="true">
Tercio@11 121 <FontHeight val="13"/>
Tercio@11 122 <Anchors>
Tercio@11 123 <Anchor point="LEFT" relativeTo="$parent_UpperImage" relativePoint="RIGHT" x="5" y="0"/>
Tercio@11 124 </Anchors>
Tercio@11 125 </FontString>
Tercio@11 126 <FontString name="$parent_UpperImageText2" parentKey="upperImageText2" inherits="GameTooltipHeaderText" justifyH="LEFT" nonspacewrap="true">
Tercio@11 127 <FontHeight val="13"/>
Tercio@11 128 <Anchors>
Tercio@11 129 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="0" y="3"/>
Tercio@11 130 </Anchors>
Tercio@11 131 </FontString>
Tercio@11 132 <!-- title icon -->
Tercio@11 133 <Texture name="$parent_TitleIcon" hidden="true" parentKey="titleIcon" file = "Interface\Challenges\challenges-main">
Tercio@11 134 <Anchors>
Tercio@11 135 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
Tercio@11 136 <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP" x="0" y="-22"/>
Tercio@11 137 </Anchors>
Tercio@11 138 <TexCoords left="0.1521484375" right="0.563671875" top="0.160859375" bottom="0.234375"/>
Tercio@11 139 </Texture>
Tercio@11 140 <!-- title text -->
Tercio@11 141 <FontString name="$parent_TitleText" parentKey="titleText" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="true">
Tercio@11 142 <FontHeight val="10.5"/>
Tercio@11 143 <Anchors>
Tercio@11 144 <Anchor point="CENTER" relativeTo="$parent_TitleIcon" relativePoint="CENTER" x="0" y="6"/>
Tercio@11 145 </Anchors>
Tercio@11 146 </FontString>
Tercio@11 147 </Layer>
Tercio@11 148
Tercio@11 149 </Layers>
Tercio@11 150 </Frame>
Tercio@11 151
Tercio@11 152 <Button name="DFCooltipButtonTemplate" virtual="true">
Tercio@11 153 <Size x="1" y="20"/>
Tercio@11 154
Tercio@11 155 <Frames>
Tercio@11 156
Tercio@11 157 <StatusBar name="$Parent_StatusBar" parentKey="statusbar">
Tercio@11 158
Tercio@11 159 <Anchors>
Tercio@11 160 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="10" y="0"/>
Tercio@11 161 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="-10" y="0"/>
Tercio@11 162 <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="0" y="0"/>
Tercio@11 163 <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="0"/>
Tercio@11 164 </Anchors>
Tercio@11 165
Tercio@11 166 <Size y="20" />
Tercio@11 167
Tercio@11 168 <Layers>
Tercio@11 169 <Layer level="BACKGROUND">
Tercio@11 170 <!-- statusbar texture -->
Tercio@11 171 <Texture name="$parent_Texture" hidden="false" parentKey="texture" file = "Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" horizTile="false" vertTile="false">
Tercio@11 172 <Size x="300" y="14" />
Tercio@11 173 <Color a = "1" r = "1" g = "1" b = "1" />
Tercio@11 174 </Texture>
Tercio@11 175 <!-- spark -->
Tercio@11 176 <Texture name="$parent_Spark" hidden="true" parentKey="spark" file = "Interface\AddOns\Details\images\bar_detalhes2_end">
Tercio@11 177 <Size>
Tercio@11 178 <AbsDimension x="8" y="18"/>
Tercio@11 179 </Size>
Tercio@11 180 <Anchors>
Tercio@11 181 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-16" y="-1"/>
Tercio@11 182 </Anchors>
Tercio@11 183 </Texture>
Tercio@11 184 </Layer>
Tercio@11 185
Tercio@11 186 <Layer level="ARTWORK">
Tercio@11 187 <!-- background texture -->
Tercio@11 188 <Texture name="$parent_Background" hidden="true" parentKey="background" file = "Interface\FriendsFrame\UI-FriendsFrame-HighlightBar" horizTile="false" vertTile="false">
Tercio@11 189 <Anchors>
Tercio@11 190 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="-6" y="0"/>
Tercio@11 191 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="6" y="0"/>
Tercio@11 192 <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="0" y="0"/>
Tercio@11 193 <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="0"/>
Tercio@11 194 </Anchors>
Tercio@11 195 </Texture>
Tercio@11 196 </Layer>
Tercio@11 197
Tercio@11 198 <Layer level="OVERLAY">
Tercio@11 199 <!-- left icon texture -->
Tercio@11 200 <Texture name="$parent_LeftIcon" parentKey="leftIcon">
Tercio@11 201 <Size x="16" y="16" />
Tercio@11 202 <Anchors>
Tercio@11 203 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="0" y="0"/>
Tercio@11 204 </Anchors>
Tercio@11 205 </Texture>
Tercio@11 206 <!-- right icon texture -->
Tercio@11 207 <Texture name="$parent_RightIcon" parentKey="rightIcon">
Tercio@11 208 <Size x="16" y="16" />
Tercio@11 209 <Anchors>
Tercio@11 210 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="0" y="0"/>
Tercio@11 211 </Anchors>
Tercio@11 212 </Texture>
Tercio@11 213
Tercio@11 214 <!-- left text -->
Tercio@11 215 <FontString name="$parent_LeftText" parentKey="leftText" inherits="GameTooltipHeaderText" justifyH="LEFT" nonspacewrap="false">
Tercio@11 216 <FontHeight val="10"/>
Tercio@11 217 <Anchors>
Tercio@11 218 <Anchor point="CENTER" relativeTo="$parent_LeftIcon" relativePoint="CENTER" x="0" y="0"/>
Tercio@11 219 <Anchor point="LEFT" relativeTo="$parent_LeftIcon" relativePoint="RIGHT" x="3" y="0"/>
Tercio@11 220 </Anchors>
Tercio@11 221 </FontString>
Tercio@11 222
Tercio@11 223 <!-- right text -->
Tercio@11 224 <FontString name="$parent_TextRight" parentKey="rightText" inherits="GameTooltipHeaderText" justifyH="RIGHT" nonspacewrap="false">
Tercio@11 225 <FontHeight val="10"/>
Tercio@11 226 <Anchors>
Tercio@11 227 <Anchor point="CENTER" relativeTo="$parent_RightIcon" relativePoint="CENTER" x="0" y="0"/>
Tercio@11 228 <Anchor point="RIGHT" relativeTo="$parent_RightIcon" relativePoint="LEFT" x="-3" y="0"/>
Tercio@11 229 </Anchors>
Tercio@11 230 </FontString>
Tercio@11 231 <!-- spark 2 -->
Tercio@11 232 <Texture name="$parent_Spark2" hidden="true" parentKey="spark2" file = "Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
Tercio@11 233 <Size>
Tercio@11 234 <AbsDimension x="32" y="32"/>
Tercio@11 235 </Size>
Tercio@11 236 <Anchors>
Tercio@11 237 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-17" y="-1"/>
Tercio@11 238 </Anchors>
Tercio@11 239 </Texture>
Tercio@11 240 <!-- sub menu arrow -->
Tercio@11 241 <Texture name="$parent_SubMenuArrow" hidden="true" parentKey="subMenuArrow" file = "Interface\CHATFRAME\ChatFrameExpandArrow" alphaMode="BLEND">
Tercio@11 242 <Size>
Tercio@11 243 <AbsDimension x="12" y="12"/>
Tercio@11 244 </Size>
Tercio@11 245 <Anchors>
Tercio@11 246 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT" x="3" y="0"/>
Tercio@11 247 </Anchors>
Tercio@11 248 </Texture>
Tercio@11 249 </Layer>
Tercio@11 250
Tercio@11 251 </Layers>
Tercio@11 252
Tercio@11 253 <Scripts>
Tercio@11 254 <OnLoad>
Tercio@11 255 self:SetStatusBarTexture (self.texture);
Tercio@11 256 <!-- note to my self, never forget statusbar MinMaxValues -->
Tercio@11 257 self:SetMinMaxValues (0, 100);
Tercio@11 258 self:GetParent().background = self.background
Tercio@11 259 </OnLoad>
Tercio@11 260 </Scripts>
Tercio@11 261
Tercio@11 262 </StatusBar>
Tercio@11 263
Tercio@11 264 <StatusBar name="$Parent_StatusBarBackground" parentKey="statusbar2">
Tercio@11 265 <Anchors>
Tercio@11 266 <Anchor point="LEFT" relativeTo="$Parent_StatusBar" relativePoint="LEFT"/>
Tercio@11 267 <Anchor point="RIGHT" relativeTo="$Parent_StatusBar" relativePoint="RIGHT"/>
Tercio@11 268 <Anchor point="TOP" relativeTo="$Parent_StatusBar" relativePoint="TOP"/>
Tercio@11 269 <Anchor point="BOTTOM" relativeTo="$Parent_StatusBar" relativePoint="BOTTOM"/>
Tercio@11 270 </Anchors>
Tercio@11 271 <Layers>
Tercio@11 272 <Layer level="BACKGROUND">
Tercio@11 273 <!-- statusbar texture -->
Tercio@11 274 <Texture name="$parent_Texture" hidden="false" parentKey="texture" file = "Interface\AddOns\Details\images\bar4_reverse" horizTile="false" vertTile="false">
Tercio@11 275 <Size x="300" y="14" />
Tercio@11 276 <Color a = "1" r = "1" g = "1" b = "1" />
Tercio@11 277 </Texture>
Tercio@11 278 </Layer>
Tercio@11 279 </Layers>
Tercio@11 280 <Scripts>
Tercio@11 281 <OnLoad>
Tercio@11 282 self:SetStatusBarTexture (self.texture);
Tercio@11 283 self:SetMinMaxValues (0, 100);
Tercio@11 284 </OnLoad>
Tercio@11 285 </Scripts>
Tercio@11 286 </StatusBar>
Tercio@11 287
Tercio@11 288 </Frames>
Tercio@11 289
Tercio@11 290 <Scripts>
Tercio@11 291 <OnLoad>
Tercio@11 292 self:RegisterForClicks ("LeftButtonDown")
Tercio@11 293 self.leftIcon = self.statusbar.leftIcon
Tercio@11 294 self.rightIcon = self.statusbar.rightIcon
Tercio@11 295 self.texture = self.statusbar.texture
Tercio@11 296 self.spark = self.statusbar.spark
Tercio@11 297 self.spark2 = self.statusbar.spark2
Tercio@11 298 self.leftText = self.statusbar.leftText
Tercio@11 299 self.rightText = self.statusbar.rightText
Tercio@11 300 self.statusbar:SetFrameLevel (self:GetFrameLevel()+2)
Tercio@11 301 self.statusbar2:SetFrameLevel (self.statusbar:GetFrameLevel()-1)
Tercio@11 302 self.statusbar2:SetValue (0)
Tercio@11 303 </OnLoad>
Tercio@11 304
Tercio@11 305 <OnMouseDown>
Tercio@11 306 GameCooltipButtonMouseDown (self);
Tercio@11 307 </OnMouseDown>
Tercio@11 308
Tercio@11 309 <OnMouseUp>
Tercio@11 310 GameCooltipButtonMouseUp (self);
Tercio@11 311 </OnMouseUp>
Tercio@11 312
Tercio@11 313 </Scripts>
Tercio@11 314 </Button>
Tercio@11 315
Tercio@11 316 <Script file="cooltip.lua"/>
Tercio@11 317
Tercio@11 318 </Ui>