-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDcr_DIAG.xml
More file actions
148 lines (129 loc) · 5.72 KB
/
Dcr_DIAG.xml
File metadata and controls
148 lines (129 loc) · 5.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<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/
http://wowprogramming.com/FrameXML/UI.xsd">
<!--
This file is part of Decursive.
Decursive (v @project-version@) add-on for World of Warcraft UI
Copyright (C) 2006-2025 John Wellesz (Decursive AT 2072productions.com) ( http://www.2072productions.com/to/decursive.php )
Decursive is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Decursive is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Decursive. If not, see <https://www.gnu.org/licenses/>.
Decursive is inspired from the original "Decursive v1.9.4" by Patrick Bohnet (Quu).
The original "Decursive 1.9.4" is in public domain ( www.quutar.com )
Decursive is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
-->
<Script>
local T = DecursiveRootTable or {};
-- big ugly scary fatal error message display function {{{
if not T._FatalError then
-- the beautiful error popup : {{{ -
StaticPopupDialogs["DECURSIVE_ERROR_FRAME"] = {
text = "|cFFFF0000Decursive Error:|r\n%s",
button1 = "OK",
OnAccept = function()
return false;
end,
timeout = 0,
whileDead = 1,
hideOnEscape = 1,
showAlert = 1,
}; -- }}}
T._FatalError = function (TheError) StaticPopup_Show ("DECURSIVE_ERROR_FRAME", TheError); end
end
-- }}}
if not T._LoadedFiles or not T._LoadedFiles["Dcr_DIAG.lua"] then
if not DecursiveInstallCorrupted then T._FatalError("Decursive installation is corrupted! (Dcr_DIAG.lua not loaded)"); end;
DecursiveInstallCorrupted = true;
return;
end
</Script>
<Frame name="DecursiveBackDropTemplate" mixin="DecursiveTemplateMixin" virtual="true">
<Scripts>
<OnLoad method="OnBackdropLoaded"/>
<OnSizeChanged method="OnBackdropSizeChanged"/>
</Scripts>
</Frame>
<!-- =================The DEBUGGING FRAME======================= {{{ -->
<!-- Inspired from BugSack error report frame-->
<Frame name="DecursiveDebuggingFrame" parent="UIParent" inherits="DialogBoxFrame" hidden="true">
<Scripts>
<OnLoad>
self:SetBackdrop(DecursiveRootTable._C.UI_BACKDROP)
</OnLoad>
</Scripts>
<Size>
<AbsDimension x="500" y="400"/>
</Size>
<Layers>
<Layer level="ARTWORK">
<FontString name="DecursiveDEBUGtext" inherits="GameFontHighlight">
<Anchors>
<Anchor point="TOP">
<Offset> <AbsDimension x="5" y="-5" /> </Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<ScrollFrame name="DecursiveDebuggingFrameScroll" inherits="UIPanelScrollFrameTemplate" toplevel="true">
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="DecursiveDEBUGtext">
<Offset>
<AbsDimension x="0" y="-10"/>
</Offset>
</Anchor>
<Anchor point="BOTTOM" relativePoint="TOP" relativeTo="DecursiveDebuggingFrameButton">
<Offset>
<AbsDimension x="0" y="10"/>
</Offset>
</Anchor>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="-30" y="0"/>
</Offset>
</Anchor>
</Anchors>
<ScrollChild>
<EditBox name="DecursiveDebuggingFrameText" letters="99999" multiLine="true" autoFocus="true" enableMouse="true" >
<Size>
<AbsDimension x="450" y="314"/>
</Size>
<FontString inherits="ChatFontNormal"/>
<Scripts>
<OnLoad>
self:SetAutoFocus(false)
</OnLoad>
<OnShow>
self:SetFocus()
</OnShow>
<OnTextChanged>
DecursiveRootTable._DebugFrameOnTextChanged(self)
</OnTextChanged>
<OnEscapePressed>
self:ClearFocus()
</OnEscapePressed>
</Scripts>
</EditBox>
</ScrollChild>
</ScrollFrame>
</Frames>
</Frame>
<!-- ================================================================== }}} -->
<Script>
local T = DecursiveRootTable or {};
T._LoadedFiles["Dcr_DIAG.xml"] = "@project-version@";
</Script>
</Ui>