vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
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/ ..\FrameXML\UI.xsd">
2 <Script file="localization.lua"/>
3 <Script file="localization.de.lua"/>
4 <Script file="localization.fr.lua"/>
5 <Script file="ImprovedErrorFrame.lua"/>
6 <Frame name="ImprovedErrorFrameFrame" inherits="DialogBoxFrame">
7 <Size>
8 <AbsDimension x="360" y="270"/>
9 </Size>
10 <!-- Header -->
11 <Layers>
12 <Layer level="ARTWORK">
13 <Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
14 <Size>
15 <AbsDimension x="256" y="64" />
16 </Size>
17 <Anchors>
18 <Anchor point="TOP">
19 <Offset>
20 <AbsDimension x="0" y="12" />
21 </Offset>
22 </Anchor>
23 </Anchors>
24 </Texture>
25 <FontString name="$parentHeaderText" inherits="GameFontNormal" text="IEF_TITLE_TEXT">
26 <Anchors>
27 <Anchor point="CENTER" relativeTo="$parentHeader" relativePoint="CENTER">
28 <Offset>
29 <AbsDimension x="0" y="12" />
30 </Offset>
31 </Anchor>
32 </Anchors>
33 </FontString>
34 </Layer>
35 </Layers>
36 <Frames>
37 <Button name="ImprovedErrorFrameReportButton">
38 <Size>
39 <AbsDimension x="128" y="32"/>
40 </Size>
41 <Anchors>
42 <Anchor point="BOTTOM">
43 <Offset>
44 <AbsDimension x="80" y="16"/>
45 </Offset>
46 </Anchor>
47 </Anchors>
48 <Scripts>
49 <OnClick>
50 this:GetParent():Hide();
51 ImprovedErrorFrame_Report_OnClick(ImprovedErrorFrame.errorMessageList);
52 </OnClick>
53 </Scripts>
54 <NormalTexture inherits="DialogButtonNormalTexture"/>
55 <PushedTexture inherits="DialogButtonPushedTexture"/>
56 <HighlightTexture inherits="DialogButtonHighlightTexture"/>
57 <NormalText inherits="DialogButtonNormalText" text="IEF_REPORT"/>
58 <HighlightText inherits="DialogButtonHighlightText" text="IEF_REPORT"/>
59 </Button>
60 <Button name="ImprovedErrorFrameCloseButton">
61 <Size>
62 <AbsDimension x="128" y="32"/>
63 </Size>
64 <Anchors>
65 <Anchor point="BOTTOM">
66 <Offset>
67 <AbsDimension x="-80" y="16"/>
68 </Offset>
69 </Anchor>
70 </Anchors>
71 <Scripts>
72 <OnClick>
73 this:GetParent():Hide();
74 </OnClick>
75 </Scripts>
76 <NormalTexture inherits="DialogButtonNormalTexture"/>
77 <PushedTexture inherits="DialogButtonPushedTexture"/>
78 <HighlightTexture inherits="DialogButtonHighlightTexture"/>
79 <NormalText inherits="DialogButtonNormalText" text="IEF_CLOSE"/>
80 <HighlightText inherits="DialogButtonHighlightText" text="IEF_CLOSE"/>
81 </Button>
82 <ScrollFrame name="ScriptErrorsScrollFrameOne" hidden="true" inherits="ClassTrainerDetailScrollFrameTemplate" toplevel="true">
83 <Anchors>
84 <Anchor point="TOP">
85 <Offset>
86 <AbsDimension x="-10" y="-16"/>
87 </Offset>
88 </Anchor>
89 </Anchors>
90 <Size>
91 <AbsDimension x="305" y="200"/>
92 </Size>
93 <ScrollChild>
94 <EditBox name="ScriptErrorsScrollFrameOneText" multiLine="true" autoFocus="false">
95 <Size>
96 <AbsDimension x="300" y="304"/>
97 </Size>
98 <FontString inherits="ChatFontNormal"/>
99 <Scripts>
100 <OnTextChanged>
101 if (ScriptErrorsScrollFrameOneText:GetText() ~= ImprovedErrorFrame.messagePrint) then
102 ScriptErrorsScrollFrameOneText:SetText(ImprovedErrorFrame.messagePrint);
103 ScriptErrorsScrollFrameOneText:ClearFocus();
104 end
105  
106 local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar")
107 this:GetParent():UpdateScrollChildRect();
108 local min, max = scrollBar:GetMinMaxValues();
109 if ( max > 0 and (this.max ~= max) ) then
110 this.max = max;
111 scrollBar:SetValue(max);
112 end
113 </OnTextChanged>
114 <OnEscapePressed>
115 ImprovedErrorFrameFrame:Hide();
116 </OnEscapePressed>
117 </Scripts>
118 </EditBox>
119 </ScrollChild>
120 </ScrollFrame>
121 </Frames>
122 <Scripts>
123 <OnLoad>
124 ImprovedErrorFrame.onLoad();
125 </OnLoad>
126 <OnEvent>
127 ImprovedErrorFrame.onEvent(event);
128 </OnEvent>
129 <OnHide>
130 local errorMessageList = ImprovedErrorFrame.errorMessageList;
131 for i = 1, table.getn(errorMessageList), 1 do
132 local curMes = errorMessageList[i];
133 if (curMes.status == IEF_MSG_SHOWN) then
134 curMes.status = IEF_MSG_VIEWED;
135 end
136 end
137 ImprovedErrorFrame.updateStatus();
138 </OnHide>
139 </Scripts>
140 </Frame>
141 <Button name="IEFMinimapButton" movable="true" parent="MinimapBackdrop" hidden="true">
142 <Size>
143 <AbsDimension x="33" y="33"/>
144 </Size>
145 <Anchors>
146 <Anchor point="CENTER" relativeTo="Minimap" relativePoint="CENTER">
147 <Offset>
148 <AbsDimension x="12" y="-80"/>
149 </Offset>
150 </Anchor>
151 </Anchors>
152 <Scripts>
153 <OnLoad>
154 ImprovedErrorFrame.Button.onLoad();
155 </OnLoad>
156 <OnEvent>
157 ImprovedErrorFrame.Button.onEvent(event);
158 </OnEvent>
159 <OnMouseDown>
160 IEFMinimapButton_OnMouseDown();
161 </OnMouseDown>
162 <OnMouseUp>
163 IEFMinimapButton_OnMouseUp();
164 </OnMouseUp>
165 <OnHide>
166 IEFMinimapButton_OnHide();
167 </OnHide>
168 <OnUpdate>
169 ImprovedErrorFrame.Button.onUpdate();
170 </OnUpdate>
171 <OnEnter>
172 if ( GetCVar("UberTooltips") == "1" ) then
173 GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
174 GameTooltip:SetText(IEF_TOOLTIP);
175 end
176 </OnEnter>
177 <OnLeave>
178 GameTooltip:Hide();
179 </OnLeave>
180 </Scripts>
181 <NormalTexture file="Interface\AddOns\ImprovedErrorFrame\Skin\ErrorButton-Up"/>
182 <PushedTexture file="Interface\AddOns\ImprovedErrorFrame\Skin\ErrorButton-Down"/>
183 <DisabledTexture file="Interface\AddOns\ImprovedErrorFrame\Skin\ErrorButton-Disabled"/>
184 <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
185 <NormalText inherits="GameFontRed" text=""/>
186 <HighlightText inherits="GameFontRed" text=""/>
187 </Button>
188 </Ui>