vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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/ ..\..\FrameXML\UI.xsd"> |
||
4 | <Button name="StatRingsButtonTemplate" frameStrata="HIGH" virtual="true" movable="true"> |
||
5 | <Size> |
||
6 | <AbsDimension x="16" y="16"/> |
||
7 | </Size> |
||
8 | <Anchors> |
||
9 | <Anchor point="CENTER" relativePoint="TOPLEFT"/> |
||
10 | </Anchors> |
||
11 | <NormalTexture file="Interface\Minimap\Minimap-TrackingBorder"/> |
||
12 | <HighlightTexture file="Interface\Minimap\Minimap-TrackingBorder"/> |
||
13 | <Layers> |
||
14 | <Layer level="OVERLAY"> |
||
15 | <FontString name="$parentText" inherits="NumberFontNormalSmall" virtual="true"> |
||
16 | <Anchors> |
||
17 | <Anchor point="TOPLEFT"> |
||
18 | <Offset><AbsDimension x="4" y="-1"/></Offset> |
||
19 | </Anchor> |
||
20 | </Anchors> |
||
21 | </FontString> |
||
22 | </Layer> |
||
23 | </Layers> |
||
24 | <Scripts> |
||
25 | <OnLoad> |
||
26 | this:GetParent():SetMovable(true); |
||
27 | </OnLoad> |
||
28 | <!-- |
||
29 | <OnMouseDown> |
||
30 | this:GetParent():StartMoving(); |
||
31 | </OnMouseDown> |
||
32 | <OnMouseUp> |
||
33 | this:GetParent():StopMovingOrSizing(); |
||
34 | </OnMouseUp> |
||
35 | --> |
||
36 | <OnEnter> |
||
37 | GameTooltip:SetOwner(this, "ANCHOR_TOP"); |
||
38 | GameTooltip:SetText(this:GetParent():GetName(), 1.0, 1.0, 1.0); |
||
39 | </OnEnter> |
||
40 | <OnLeave> |
||
41 | GameTooltip:Hide(); |
||
42 | </OnLeave> |
||
43 | </Scripts> |
||
44 | </Button> |
||
45 | |||
46 | <Frame name="StatRingsRingTemplate" virtual="true"> |
||
47 | <Size> |
||
48 | <AbsDimension x="256" y="256"/> |
||
49 | </Size> |
||
50 | <Layers> |
||
51 | <Layer level="ARTWORK"> |
||
52 | <!-- Four textures, one for each quadrant --> |
||
53 | <Texture name="$parentTQ1" |
||
54 | file="Interface\Addons\Moog_Hud\Icons\Ring.tga" |
||
55 | hidden="true" /> |
||
56 | <Texture name="$parentTQ2" |
||
57 | file="Interface\Addons\Moog_Hud\Icons\Ring.tga" |
||
58 | hidden="true"/> |
||
59 | <!-- The 'chip' texture is a piece of the ring --> |
||
60 | <Texture name="$parentTC" |
||
61 | file="Interface\Addons\Moog_Hud\Icons\Ring.tga" |
||
62 | hidden="true"/> |
||
63 | <!-- The 'slice' texture is the 45 degree slice --> |
||
64 | <Texture name="$parentTS" |
||
65 | file="Interface\Addons\Moog_Hud\Icons\Slice.tga" |
||
66 | hidden="true"/> |
||
67 | </Layer> |
||
68 | </Layers> |
||
69 | <Scripts> |
||
70 | <OnLoad> |
||
71 | StatRingsRingTemplate_OnLoad() |
||
72 | </OnLoad> |
||
73 | <OnUpdate> |
||
74 | StatRings_Update(arg1); |
||
75 | </OnUpdate> |
||
76 | </Scripts> |
||
77 | <!-- |
||
78 | <Frames> |
||
79 | <Button name="$parentMoveAnchor" inherits="StatRingsButtonTemplate" hidden="true" /> |
||
80 | <Slider name="$parentSizeSlider" inherits="OptionsSliderTemplate" hidden="true"> |
||
81 | <Anchors> |
||
82 | <Anchor point="CENTER" relativeTo="$parentMoveAnchor" relativePoint="CENTER"> |
||
83 | <Offset> |
||
84 | <AbsDimension x="0" y="20"/> |
||
85 | </Offset> |
||
86 | </Anchor> |
||
87 | </Anchors> |
||
88 | <Scripts> |
||
89 | <OnValueChanged> |
||
90 | local v = this:GetValue(); |
||
91 | local newValue = 200 * (v/100); |
||
92 | this:GetParent().radius = newValue; |
||
93 | this:GetParent():SetWidth(newValue); |
||
94 | this:GetParent():SetHeight(newValue); |
||
95 | this:GetParent().dirty = true; |
||
96 | StatRings_SaveValue("sliderValue", this:GetValue()); |
||
97 | if this:GetParent().SetAngle ~= nil then |
||
98 | this:GetParent():SetAngle(this:GetParent().angle); |
||
99 | end |
||
100 | </OnValueChanged> |
||
101 | <OnLoad> |
||
102 | this:SetMinMaxValues(1, 150); |
||
103 | this:SetValueStep(1); |
||
104 | this:RegisterEvent("VARIABLES_LOADED"); |
||
105 | </OnLoad> |
||
106 | <OnEvent> |
||
107 | local savedVal = StatRings_LoadValue("sliderValue"); |
||
108 | if savedVal == nil then |
||
109 | this:SetValue(75); |
||
110 | else |
||
111 | this:SetValue(savedVal); |
||
112 | end |
||
113 | </OnEvent> |
||
114 | </Scripts> |
||
115 | </Slider> |
||
116 | </Frames> |
||
117 | --> |
||
118 | </Frame> |
||
119 | </Ui> |