Advertisement
Guest User

Krow

a guest
Feb 3rd, 2010
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 KB | None | 0 0
  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/
  2. ..\FrameXML\UI.xsd">
  3. <Frame name="DBTBarTemplate" enableMouse="true" virtual="true" frameStrata="MEDIUM" topLevel="true">
  4. <Size>
  5. <AbsDimension x="195" y="20"/>
  6. </Size>
  7. <Frames>
  8. <StatusBar name="$parentBar">
  9. <Size>
  10. <AbsDimension x="200" y="10"/>
  11. </Size>
  12. <Anchors>
  13. <Anchor point="BOTTOM" relativePoint="BOTTOM">
  14. <Offset>
  15. <AbsDimension x="1" y="0"/>
  16. </Offset>
  17. </Anchor>
  18. </Anchors>
  19. <Layers>
  20. <Layer level="BACKGROUND">
  21. <Texture name="$parentBackground">
  22. <Color r="0" g="0" b="0" a="0.3"/>
  23. </Texture>
  24. <Texture name="$parentIcon1">
  25. <Size>
  26. <AbsDimension x="25" y="25"/>
  27. </Size>
  28. <Anchors>
  29. <Anchor point="RIGHT" relativePoint="LEFT">
  30. <Offset>
  31. <AbsDimension x="-3" y="8"/>
  32. </Offset>
  33. </Anchor>
  34. </Anchors>
  35. </Texture>
  36. <Texture name="$parentIcon2">
  37. <Size>
  38. <AbsDimension x="20" y="20"/>
  39. </Size>
  40. <Anchors>
  41. <Anchor point="LEFT" relativePoint="RIGHT">
  42. <Offset>
  43. <AbsDimension x="0" y="0"/>
  44. </Offset>
  45. </Anchor>
  46. </Anchors>
  47. </Texture>
  48. </Layer>
  49. <Layer level="OVERLAY">
  50.  
  51. <Texture name="Border" file="Interface\AddOns\DBM-Core\textures\frameborder.tga" level="TOP">
  52. <Size>
  53. <AbsDimension x="26" y="26"/>
  54. </Size>
  55. <Color r="1" g="1" b="1" a="1"/>
  56. <Anchors>
  57. <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
  58. <Offset>
  59. <AbsDimension x="-3" y="0"/>
  60. </Offset>
  61. </Anchor>
  62. </Anchors>
  63. </Texture>
  64.  
  65. <Texture name="$parentSpark">
  66. <Size>
  67. <AbsDimension x="32" y="50"/>
  68. </Size>
  69. <Anchors>
  70. <Anchor point="CENTER">
  71. <Offset>
  72. <AbsDimension x="0" y="0"/>
  73. </Offset>
  74. </Anchor>
  75. </Anchors>
  76. </Texture>
  77. <FontString name="$parentName" inherits="GameFontHighlightSmall" text="">
  78. <Anchors>
  79. <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
  80. <Offset>
  81. <AbsDimension x="0" y="15"/>
  82. </Offset>
  83. </Anchor>
  84. </Anchors>
  85. </FontString>
  86. <FontString name="$parentTimer" inherits="GameFontHighlightSmall" text="">
  87. <Anchors>
  88. <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
  89. <Offset>
  90. <AbsDimension x="-1" y="15"/>
  91. </Offset>
  92. </Anchor>
  93. </Anchors>
  94. </FontString>
  95. </Layer>
  96. </Layers>
  97. <BarTexture name="$parentTexture" file="Interface\AddOns\DBM-Core\textures\default.tga"/>
  98. <BarColor r="1.0" g="0.7" b="0.0"/>
  99. <Scripts>
  100. <OnLoad>
  101. self:SetMinMaxValues(0, 1)
  102. self:SetValue(1)
  103. </OnLoad>
  104. </Scripts>
  105. </StatusBar>
  106. </Frames>
  107. <Scripts>
  108. <OnUpdate>
  109. self.obj:Update(arg1)
  110. </OnUpdate>
  111. <OnMouseDown>
  112. if self.obj.owner.movable and arg1 == "LeftButton" then
  113. if self.obj.enlarged then
  114. self.obj.owner.secAnchor:StartMoving()
  115. else
  116. self.obj.owner.mainAnchor:StartMoving()
  117. end
  118. end
  119. </OnMouseDown>
  120. <OnMouseUp>
  121. self.obj.owner.mainAnchor:StopMovingOrSizing()
  122. self.obj.owner.secAnchor:StopMovingOrSizing()
  123. self.obj.owner:SavePosition()
  124. if arg1 == "RightButton" then
  125. self.obj:Cancel()
  126. elseif arg1 == "LeftButton" and IsShiftKeyDown() then
  127. self.obj:Announce()
  128. end
  129. </OnMouseUp>
  130. <OnHide>
  131. if self.obj then
  132. self.obj.owner.mainAnchor:StopMovingOrSizing()
  133. self.obj.owner.secAnchor:StopMovingOrSizing()
  134. end
  135. </OnHide>
  136. </Scripts>
  137. </Frame>
  138. </Ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement