-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainFrame.xml
147 lines (138 loc) · 5.21 KB
/
MainFrame.xml
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
<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/ https://raw.githubusercontent.com/Gethe/wow-ui-source/live/Interface/FrameXML/UI_shared.xsd">
<FontFamily name="DLT_ButtonText" virtual="true">
<Member alphabet="roman">
<Font font="Fonts\FRIZQT__.TTF" height="6" />
</Member>
<Member alphabet="korean">
<Font font="Fonts\2002.ttf" height="9" />
</Member>
<Member alphabet="simplifiedchinese">
<Font font="Fonts\ARKai_T.ttf" height="8" />
</Member>
<Member alphabet="traditionalchinese">
<Font font="Fonts\blei00d.TTF" height="8" />
</Member>
<Member alphabet="russian">
<Font font="Fonts\FRIZQT___CYR.TTF" height="8" />
</Member>
</FontFamily>
<Frame name="DLT_Parent_" movable="true" resizable="false" enableMouse="true"
clampedToScreen="true" parent="UIParent" inherits="InsetFrameTemplate" scale="1.5">
<Size>
<AbsDimension x="115" y="40" />
</Size>
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<Layers>
<Layer level="BACKGROUND" textureSubLevel="-5">
<Texture parentKey="Bg" file="Interface\FrameGeneral\UI-Background-Marble"
horizTile="true" vertTile="true" setAllPoints="true" />
</Layer>
<Layer level="OVERLAY">
<FontString name="$parentAddonTitle" parentKey="Text" inherits="SystemFont_Tiny2"
text="Dungeon Loot Tracker" justifyH="LEFT" justifyV="TOP">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="DLT_Parent_" x="5" y="-5" />
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentCloseBtn" inherits="UIPanelCloseButtonNoScripts"
parent="DLT_Parent_">
<Size x="15" y="15" />
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="DLT_Parent_" x="0" y="0" />
</Anchors>
<DisabledTexture atlas="RedButton-Exit-Disabled" />
<NormalTexture atlas="RedButton-Exit" />
<PushedTexture atlas="RedButton-exit-pressed" />
<HighlightTexture atlas="RedButton-Highlight" alphaMode="ADD" />
<Scripts>
<OnClick>
self:GetParent():Hide()
</OnClick>
</Scripts>
</Button>
</Frames>
<Frames>
<!-- Start Recording Button -->
<Button name="$parentStartRecordingBtn" parent="DLT_Parent_">
<Size x="16" y="16" />
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="DLT_Parent_" x="5" y="5" />
</Anchors>
<NormalTexture file="Interface\Addons\DungeonLootTracker\Images\UI-Record-Up" />
<HighlightTexture
file="Interface\Addons\DungeonLootTracker\Images\UI-Common-MouseHilight"
alphaMode="ADD" />
<PushedTexture file="Interface\Addons\DungeonLootTracker\Images\UI-Record-Down" />
<Scripts>
<OnClick>
LibStub("AceEvent-3.0"):SendMessage("recording/startRecording")
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
</OnClick>
</Scripts>
</Button>
<!-- Stop Recording Button -->
<Button name="$parentStopRecordingBtn" parent="DLT_Parent_">
<Size x="16" y="16" />
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="DLT_Parent_" x="5" y="5" />
</Anchors>
<NormalTexture file="Interface\Addons\DungeonLootTracker\Images\UI-Stop-Up" />
<HighlightTexture
file="Interface\Addons\DungeonLootTracker\Images\UI-Common-MouseHilight"
alphaMode="ADD" />
<Scripts>
<OnClick>
LibStub("AceEvent-3.0"):SendMessage("recording/stopRecording")
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF)
</OnClick>
</Scripts>
</Button>
<!-- Report Window Buttopn -->
<Button name="$parentReportWindowBtn" text="R" parent="DLT_Parent_">
<Size x="16" y="16" />
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT"
relativeTo="DLT_Parent_StopRecordingBtn" x="0" y="0" />
</Anchors>
<NormalTexture file="Interface\Addons\DungeonLootTracker\Images\UI-Record-List" />
<HighlightTexture
file="Interface\Addons\DungeonLootTracker\Images\UI-Common-MouseHilight"
alphaMode="ADD" />
<Scripts>
<OnClick>
LibStub("AceEvent-3.0"):SendMessage("reports/Show")
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
</OnClick>
</Scripts>
</Button>
</Frames>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentGoldLooted" parentKey="Text" inherits="SystemFont_Tiny2"
text="" justifyH="CENTER" justifyV="MIDDLE">
<Anchors>
<Anchor point="LEFT" relativeTo="DLT_Parent_ReportWindowBtn" x="20" y="0" />
</Anchors>
</FontString>
</Layer>
</Layers>
<KeyValues>
<KeyValue key="recording" value="false" />
</KeyValues>
<Scripts>
<OnMouseDown>
self:StartMoving()
</OnMouseDown>
<OnMouseUp>
self:StopMovingOrSizing()
</OnMouseUp>
</Scripts>
</Frame>
</Ui>