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/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/"> |
2 | <Script file="localisation.lua"/> |
||
3 | <Script file="SmartAssist.lua"/> |
||
4 | |||
5 | <Frame name="SAWarningFrame" hidden="true" frameStrata="HIGH" toplevel="true" enableMouse="true" movable="true" parent="UIParent"> |
||
6 | <Size> |
||
7 | <AbsDimension x="64" y="64"/> |
||
8 | </Size> |
||
9 | <Anchors> |
||
10 | <Anchor point="TOP"> |
||
11 | <Offset> |
||
12 | <AbsDimension x="0" y="-200"/> |
||
13 | </Offset> |
||
14 | </Anchor> |
||
15 | </Anchors> |
||
16 | <Frames> |
||
17 | |||
18 | <Frame setAllPoints="true"> |
||
19 | <Layers> |
||
20 | <Layer level="OVERLAY"> |
||
21 | <FontString name="$parentText" inherits="GameFontNormalSmall" justifyH="CENTER" text="|cFFFF0000PASSIVE|r"> |
||
22 | <Size><AbsDimension x="64" y="10"/></Size> |
||
23 | <Anchors> |
||
24 | <Anchor point="BOTTOM"> |
||
25 | <Offset><AbsDimension x="0" y="-12"/></Offset> |
||
26 | </Anchor> |
||
27 | </Anchors> |
||
28 | </FontString> |
||
29 | </Layer> |
||
30 | </Layers> |
||
31 | </Frame> |
||
32 | |||
33 | |||
34 | <Button name="SAWarningButton"> |
||
35 | <Size> |
||
36 | <AbsDimension x="64" y="64"/> |
||
37 | </Size> |
||
38 | <Anchors> |
||
39 | <Anchor point="TOPLEFT"> |
||
40 | <Offset> |
||
41 | <AbsDimension x="0" y="0"/> |
||
42 | </Offset> |
||
43 | </Anchor> |
||
44 | </Anchors> |
||
45 | <NormalTexture file="Interface\Icons\Spell_Nature_Polymorph"/> |
||
46 | <PushedTexture file="Interface\Icons\Spell_Nature_Polymorph"/> |
||
47 | <!--<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>--> |
||
48 | <Scripts> |
||
49 | <OnLoad> |
||
50 | this:RegisterForDrag("LeftButton"); |
||
51 | </OnLoad> |
||
52 | <OnUpdate> |
||
53 | SA_WarnOnUpdate(arg1); |
||
54 | </OnUpdate> |
||
55 | <OnDragStart> |
||
56 | SAWarningFrame:StartMoving(); |
||
57 | </OnDragStart> |
||
58 | <OnDragStop> |
||
59 | SAWarningFrame:StopMovingOrSizing(); |
||
60 | </OnDragStop> |
||
61 | <OnMouseUp> |
||
62 | SAWarningFrame:StopMovingOrSizing(); |
||
63 | </OnMouseUp> |
||
64 | </Scripts> |
||
65 | </Button> |
||
66 | </Frames> |
||
67 | </Frame> |
||
68 | |||
69 | <!-- Frame to handle all core events --> |
||
70 | <Frame name="SmartAssistFrame" frameStrata="HIGH" toplevel="true" enableMouse="true" movable="true" parent="UIParent" hidden="true"> |
||
71 | <Size> |
||
72 | <AbsDimension x="180" y="32"/> |
||
73 | </Size> |
||
74 | <Anchors> |
||
75 | <Anchor point="TOP"/> |
||
76 | </Anchors> |
||
77 | <Backdrop name="$parentBackdrop" bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
78 | <EdgeSize> |
||
79 | <AbsValue val="16"/> |
||
80 | </EdgeSize> |
||
81 | <TileSize> |
||
82 | <AbsValue val="32"/> |
||
83 | </TileSize> |
||
84 | <BackgroundInsets> |
||
85 | <AbsInset left="5" right="5" top="5" bottom="5"/> |
||
86 | </BackgroundInsets> |
||
87 | </Backdrop> |
||
88 | <Layers> |
||
89 | <Layer level="BACKGROUND"> |
||
90 | <FontString name="SmartAssistText" inherits="GameFontNormal" wraponspaces="true"> |
||
91 | <Size> |
||
92 | <AbsDimension x="180" y="12"/> |
||
93 | </Size> |
||
94 | <Anchors> |
||
95 | <Anchor point="TOP"> |
||
96 | <Offset> |
||
97 | <AbsDimension x="0" y="-10"/> |
||
98 | </Offset> |
||
99 | </Anchor> |
||
100 | </Anchors> |
||
101 | </FontString> |
||
102 | </Layer> |
||
103 | </Layers> |
||
104 | |||
105 | <Scripts> |
||
106 | <OnLoad> |
||
107 | SA_OnLoad(); |
||
108 | this:RegisterEvent("VARIABLES_LOADED"); |
||
109 | this:RegisterEvent("CHAT_MSG_TEXT_EMOTE"); |
||
110 | this:RegisterEvent("UNIT_HEALTH"); |
||
111 | this:RegisterEvent("PLAYER_TARGET_CHANGED"); |
||
112 | <!-- for party sync testing --> |
||
113 | this:RegisterEvent("CHAT_MSG_SYSTEM"); |
||
114 | this:RegisterEvent("PARTY_MEMBERS_CHANGED"); |
||
115 | <!-- spell stop events --> |
||
116 | this:RegisterEvent("SPELLCAST_STOP"); |
||
117 | this:RegisterEvent("SPELLCAST_INTERRUPTED"); |
||
118 | this:RegisterEvent("SPELLCAST_FAILED"); |
||
119 | </OnLoad> |
||
120 | <OnEvent> |
||
121 | if (event == "VARIABLES_LOADED") then |
||
122 | SA_VariablesLoaded(); |
||
123 | elseif (event == "CHAT_MSG_TEXT_EMOTE") then |
||
124 | SA_EmoteAssist(arg1); |
||
125 | elseif (event == "UNIT_HEALTH") then |
||
126 | SA_UnitHealth(arg1); |
||
127 | elseif (event == "PLAYER_TARGET_CHANGED") then |
||
128 | SA_PlayerTargetChanged(); |
||
129 | end |
||
130 | <!-- experimental testing below --> |
||
131 | --[[ |
||
132 | if (event == "CHAT_MSG_SYSTEM") then |
||
133 | SA_Debug("chat_msg_system arg1="..arg1); |
||
134 | if (string.find(arg1, "has left the") ~= nil or string.find(arg1, "joins the party.")) then |
||
135 | SA_Debug("PARTY/RAID CHANGED!"); |
||
136 | end |
||
137 | end |
||
138 | if (event == "PARTY_MEMBERS_CHANGED") then |
||
139 | -- note: this seems to get called once per every player when joinin to group |
||
140 | SA_Debug("got event PARTY_MEMBERS_CHANGED"); |
||
141 | end |
||
142 | --]] |
||
143 | </OnEvent> |
||
144 | </Scripts> |
||
145 | </Frame> |
||
146 | |||
147 | <MessageFrame name="SAMsgFrame" insertMode="TOP" parent="UIParent" frameStrata="LOW" toplevel="true"> |
||
148 | <Size> |
||
149 | <AbsDimension x="512" y="60"/> |
||
150 | </Size> |
||
151 | <Anchors> |
||
152 | <Anchor point="CENTER"> |
||
153 | <Offset> |
||
154 | <AbsDimension x="0" y="190"/> |
||
155 | </Offset> |
||
156 | </Anchor> |
||
157 | </Anchors> |
||
158 | <FontString inherits="SubZoneTextFont" justifyH="CENTER"/> |
||
159 | </MessageFrame> |
||
160 | |||
161 | </Ui> |