Advertisement
Guest User

MyBG Xml

a guest
Jul 1st, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. <Ui xmlns="http://www.blizzard.com/wow/ui/"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
  4. <Script file="MyBG.lua"/>
  5. <Frame name="MyBG_Frame" enableMouse="true" movable="true" parent="UIParent"
  6. clampedToScreen="true" toplevel="true" frameStrata="HIGH">
  7. <Size>
  8. <AbsDimension x="150" y="75"/>
  9. </Size>
  10.  
  11. <Anchors>
  12. <Anchor point="CENTER"/>
  13. </Anchors>
  14.  
  15. <Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" bgFile="Interface\ToolTips\UI-Tooltip-Background">
  16. <BackgroundInsets>
  17. <AbsInset left="4" right="4" top="4" bottom="4"/>
  18. </BackgroundInsets>
  19. <EdgeSize>
  20. <AbsValue val="16"/>
  21. </EdgeSize>
  22. <Color r="0" g="0" b="0" a="0.4"/>
  23. <BorderColor r="0" g="0" b="0" a="0.8"/>
  24. </Backdrop>
  25.  
  26. <Layers>
  27. <Layer level="OVERLAY">
  28. <FontString name="$parent_L1" inherits="GameFontNormal">
  29. <Anchors>
  30. <Anchor point="TOPLEFT">
  31. <Offset>
  32. <AbsDimension x="10" y="-10"/>
  33. </Offset>
  34. </Anchor>
  35. </Anchors>
  36. </FontString>
  37. <FontString name="$parent_L2" inherits="GameFontNormal">
  38. <Anchors>
  39. <Anchor point="TOPLEFT">
  40. <Offset>
  41. <AbsDimension x="10" y="-25"/>
  42. </Offset>
  43. </Anchor>
  44. </Anchors>
  45. </FontString>
  46. <FontString name="$parent_L3" inherits="GameFontNormal">
  47. <Anchors>
  48. <Anchor point="TOPLEFT">
  49. <Offset>
  50. <AbsDimension x="10" y="-40"/>
  51. </Offset>
  52. </Anchor>
  53. </Anchors>
  54. </FontString>
  55. <FontString name="$parent_L4" inherits="GameFontNormal">
  56. <Anchors>
  57. <Anchor point="TOPLEFT">
  58. <Offset>
  59. <AbsDimension x="10" y="-55"/>
  60. </Offset>
  61. </Anchor>
  62. </Anchors>
  63. </FontString>
  64.  
  65. </Layer>
  66. </Layers>
  67. <Scripts>
  68. <OnLoad>
  69. self:RegisterEvent("COMBAT_LOG_EVENT")
  70. self:RegisterEvent("UPDATE_BATTLEFIELD_SCORE")
  71. MyBG_OnLoad(self) ;
  72. </OnLoad>
  73. <OnUpdate>
  74. MyBG_OnUpdate(self);
  75. </OnUpdate>
  76. <OnMouseDown>
  77. if ( button == "LeftButton" ) then
  78. self:StartMoving() ;
  79. self.isMoving = true ;
  80. end
  81. </OnMouseDown>
  82. <OnMouseUp>
  83. if ( self.isMoving ) then
  84. self:StopMovingOrSizing () ;
  85. self.isMoving= false ;
  86. end
  87. </OnMouseUp>
  88. <OnHide>
  89. if (self.isMoving ) then
  90. self:StopMovingOrSizing () ;
  91. self.isMoving = false ;
  92. end
  93. </OnHide>
  94. <OnEnter>
  95. MyBG_OnEnter(self);
  96. </OnEnter>
  97. <OnLeave>
  98. GameTooltip:Hide();
  99. </OnLeave>
  100. <OnEvent>
  101. MyBG_OnEvent(self, event, ...) ;
  102. </OnEvent>
  103. </Scripts>
  104. </Frame>
  105.  
  106. </Ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement