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