-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPetJournal_Teams.xml
executable file
·214 lines (211 loc) · 9.21 KB
/
PetJournal_Teams.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<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">
<Script file="PetJournal_Teams.lua"/>
<Button name="PetBattleTeamTemplate" virtual="true">
<Size x="295" y="30"/>
<Layers>
<Layer level="BORDER">
<Texture name="$parentIcon" parentKey="icon">
<Size x="28" y="28"/>
<Anchors>
<Anchor point="TOPLEFT" x="1" y="-2"/>
</Anchors>
</Texture>
</Layer>
<Layer level="ARTWORK" textureSubLevel="1">
<FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT" parentKey="text">
<Size x="275" y="1"/>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentIcon" x="5" y="-12"/>
</Anchors>
</FontString>
<FontString name="$parentSubText" inherits="GameFontNormalSmall" justifyH="LEFT" parentKey="subText">
<Size x="275" y="1"/>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentText" x="0" y="-10"/>
</Anchors>
<Color r="0.510" g="0.773" b="1.0"/>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick function="PetBattleTeam_OnClick"/>
<OnEnter function="PetBattleTeam_OnEnter"/>
<OnLoad>
self:RegisterForClicks("LeftButtonUp", "RightButtonUp")
</OnLoad>
<OnMouseDown>
self.icon:SetPoint("TOPLEFT", 2, -3)
--self.name:SetPoint("TOPLEFT", self.icon, "TOPRIGHT", 7, -10)
--self.subName:SetPoint("TOPLEFT", self.name, "BOTTOMLEFT", 0, -10)
</OnMouseDown>
<OnMouseUp>
self.icon:SetPoint("TOPLEFT", 1, -2)
--self.name:SetPoint("TOPLEFT", self.icon, "TOPRIGHT", 5, -8)
--self.subName:SetPoint("TOPLEFT", self.name, "BOTTOMLEFT", 0, -10)
</OnMouseUp>
</Scripts>
<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
<Anchors>
<Anchor point="TOPLEFT" x="-10" y="-2"/>
<Anchor point="BOTTOMRIGHT" x="10" y="-2"/>
</Anchors>
</HighlightTexture>
</Button>
<Button name="$parentExpandButton" parent="PetJournal" inherits="UIPanelButtonTemplate" parentKey="ExpandButton" text="BATTLE_PET_TEAM_INFO">
<Size x="90" y="22"/>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="PetJournalPetCardInset" relativePoint="BOTTOMRIGHT"/>
</Anchors>
<Scripts>
<OnClick>
if PetBattleTeams:IsShown() then
PlaySound("igCharacterInfoClose")
PetBattleTeams:Hide()
else
PlaySound("igCharacterInfoOpen")
PetBattleTeams:Show()
end
if (GameTooltip:GetOwner() == self) then
self:GetScript("OnEnter")(self)
end
</OnClick>
</Scripts>
</Button>
<Frame name="PetBattleTeams" parent="PetJournal" enableMouse="true" hidden="true">
<Size x="300" y="450"/>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-16"/>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background-Dark" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentDetailHeader" file="Interface\RaidFrame\UI-RaidInfo-Header">
<Anchors>
<Anchor point="TOPLEFT" x="10" y="-9"/>
<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-10" y="-36"/>
</Anchors>
<TexCoords left="0.18164" right="0.81640" top="0.578125" bottom="0.94531"/>
</Texture>
<Texture name="$parentDetailFooter" file="Interface\RaidFrame\UI-RaidInfo-Header">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="9" y="38"/>
<Anchor point="BOTTOMRIGHT" x="-9" y="9"/>
</Anchors>
<TexCoords left="0.18164" right="0.81640" top="0.08593" bottom="0.3125"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="$parentDetailCorner" file="Interface\DialogFrame\UI-DialogBox-Corner">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="TOPRIGHT" x="-6" y="-7"/>
</Anchors>
</Texture>
<Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
<Size x="256" y="64"/>
<Anchors>
<Anchor point="TOP" x="0" y="12"/>
</Anchors>
</Texture>
<FontString name="$parentHeaderText" inherits="GameFontNormal" text="BATTLE_PET_TEAM">
<Size x="185" y="12"/>
<Anchors>
<Anchor point="TOP" relativeTo="$parentHeader" x="0" y="-14"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
<Anchors>
<Anchor point="TOPRIGHT" x="-2" y="-3"/>
</Anchors>
</Button>
<ScrollFrame name="$parentScrollFrame" inherits="HybridScrollFrameTemplate">
<Anchors>
<Anchor point="TOPLEFT" x="14" y="-34"/>
<Anchor point="BOTTOM" y="36"/>
</Anchors>
<Frames>
<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate" parentKey="scrollBar">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-18"/>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="12"/>
</Anchors>
<Scripts>
<OnShow>
local parent = self:GetParent()
parent:SetWidth(parent:GetWidth() - 18)
</OnShow>
<OnHide>
local parent = self:GetParent()
parent:SetWidth(parent:GetWidth() + 18)
</OnHide>
</Scripts>
</Slider>
</Frames>
<Scripts>
<OnLoad function="PetBattleTeamsScrollFrame_OnLoad"/>
<OnShow function="PetBattleTeams_Update"/>
</Scripts>
</ScrollFrame>
<CheckButton name="$parentUseMacros">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="BOTTOMLEFT" x="16" y="12"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString inherits="GameFontHighlightSmall" text="BATTLE_PET_TEAM_USE_MACRO">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" x="2" y="0"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
if self:GetChecked() then
PlaySound("igMainMenuOptionCheckBoxOff")
else
PlaySound("igMainMenuOptionCheckBoxOn")
end
PetBattleTeamsDB.useMacros = self:GetChecked()
if PetBattleTeamsDB.useMacros then
-- PetBattleTeams_SaveMacro()
end
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
GameTooltip:SetText(BATTLE_PET_TEAM_USE_MACRO_DESCRIPTION, nil, nil, nil, nil, true)
GameTooltip:Show()
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
</CheckButton>
<Frame name="$parentOptionsMenu" inherits="UIDropDownMenuTemplate" enableMouse="true" parentKey="optionsMenu"/>
<Frame name="$parentNewTeamMenu" inherits="UIDropDownMenuTemplate" enableMouse="true" parentKey="newTeamMenu"/>
</Frames>
<Scripts>
<OnEvent function="PetBattleTeams_OnEvent"/>
<OnHide>
PlaySound("UChatScrollButton")
</OnHide>
<OnLoad function="PetBattleTeams_OnLoad"/>
<OnShow>
PlaySound("UChatScrollButton")
</OnShow>
<OnUpdate function="PetBattleTeams_OnUpdate"/>
</Scripts>
</Frame>
</Ui>