comparison LibKraken/LibKraken.xml @ 39:1aaec7cefc7a

even more logjam cleaning
author Nenue
date Tue, 16 Aug 2016 10:29:26 -0400
parents
children 0877063fd03b
comparison
equal deleted inserted replaced
38:93e2a51b3a52 39:1aaec7cefc7a
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 ..\FrameXML\UI.xsd">
3
4 <Script file="LibKraken-1.0.lua" />
5
6 <Font name="KTLogString" font="Fonts\ARIALN.TTF" height="14" justifyH="LEFT" justifyV="TOP" inherits="NumberFontNormal" virtual="true">
7 <Color a="1" r="1" g="1" b="1" />
8 </Font>
9
10 <Font name="KTHeaderFont" height="18" font="Fonts\skurri.ttf" outline="NORMAL" justifyH="LEFT" justifyV="TOP" virtual="true" />
11 <Font name="KTHeader2Font" height="14" font="Fonts\skurri.ttf" outline="NORMAL" justifyH="LEFT" justifyV="TOP" virtual="true" />
12 <Font name="KTUIPanelFont" justifyH="LEFT" virtual="true" inherits="NumberFontNormal" />
13 <Font name="KTMacroButtonFont" height="12" font="Fonts\ARIALN.TTF" justifyH="LEFT" virtual="true" >
14 <Color a="1" r="1" g="1" b="1" />
15 </Font>
16
17
18 <Button name="KTButton" parentArray="controls" virtual="true">
19 <Size x="72" y="28" />
20 <Scripts>
21 <OnEnter>
22 if self.tooltip then
23 GameTooltip:SetOwner(self)
24 GameTooltip:SetAnchorType('ANCHOR_TOPRIGHT')
25 GameTooltip:SetText(self.tooltip)
26 GameTooltip:Show()
27 end
28 </OnEnter>
29 <OnLeave>
30 GameTooltip:Hide()
31 </OnLeave>
32 </Scripts>
33 <NormalFont style="NumberFontNormal" />
34 <NormalTexture setAllPoints="true">
35 <Color a="1" r="0" g=".4" b="1" />
36 </NormalTexture>
37 <DisabledTexture>
38 <Color a="1" r="0.5" b="0.5" g="0.5" />
39 </DisabledTexture>
40 <DisabledColor a="0.5" r="1" g="1" b="1" />
41 <PushedTexture>
42 <Color a="1" r="1" g="0.25" b="0.25" />
43 </PushedTexture>
44 <HighlightTexture alphaMode="ADD">
45 <Color a="0.25" r="1" g="0" b=".5" />
46 </HighlightTexture>
47 </Button>
48
49 <!-- style for Blizzard UIPanel activators
50 // The template anchor gets overwritten for successive iterations -->
51 <Button name="KTUIPanelButton" virtual="true" parentArray="UIPanels">
52 <Size x="84" y="24" />
53 <Scripts>
54 <OnEnter>
55 if self.tooltip then
56 GameTooltip:SetOwner(self)
57 GameTooltip:SetAnchorType('ANCHOR_TOPRIGHT')
58 GameTooltip:SetText(self.tooltip)
59 GameTooltip:Show()
60 end
61 </OnEnter>
62 <OnLeave>
63 GameTooltip:Hide()
64 </OnLeave>
65 </Scripts>
66 <Layers>
67 <Layer level="OVERLAY">
68 <Texture parentKey="icon" />
69 </Layer>
70 </Layers>
71
72 <ButtonText>
73 <Anchors>
74 <Anchor point="LEFT" x="14" y="0" />
75 </Anchors>
76 </ButtonText>
77
78 <NormalFont style="KTUIPanelFont" />
79 <NormalTexture>
80 <Color a="1" r=".24" g=".24" b=".24" />
81 </NormalTexture>
82 <PushedTexture>
83 <Color a="1" r="0" g="0" b="0" />
84 </PushedTexture>
85 <HighlightTexture alphaMode="ADD">
86 <Size x="32" />
87 <Color a="1" r="1" g="1" b="1" />
88 <Gradient orientation="HORIZONTAL">
89 <MaxColor r=".25" g=".25" b=".25"/>
90 <MinColor r="0" g="0" b="0" />
91 </Gradient>
92 </HighlightTexture>
93
94 </Button>
95
96 <Button name="KTTabButton" virtual="true" parentArray="tabButtons">
97 <Scripts>
98 <OnEnter>
99
100 if not self.tooltip then
101 return
102 end
103 GameTooltip:SetOwner(self)
104 GameTooltip:SetAnchorType('LEFT')
105 GameTooltip:SetText(self.tooltip)
106 GameTooltip:Show()
107 </OnEnter>
108 <OnLeave>
109
110 if not self.tooltip then
111 return
112 end
113 GameTooltip:Hide()
114 </OnLeave>
115 </Scripts>
116 <Size x="40" y="40" />
117 <Layers>
118 <Layer level="BACKGROUND">
119 </Layer>
120 <Layer level="BORDER">
121 <Texture parentKey="icon">
122 <Color a="1" r="1" g="0" b="0" />
123 <Anchors>
124 <Anchor point="TOPLEFT" x="2" y="-2"/>
125 <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
126 </Anchors>
127 </Texture>
128 </Layer>
129 <Layer level="ARTWORK">
130 </Layer>
131 </Layers>
132
133 <NormalTexture name="$parentNormalTexture" file="Interface\Buttons\UI-Quickslot2">
134 <Anchors>
135 <Anchor point="TOPLEFT" x="-12" y="12"/>
136 <Anchor point="BOTTOMRIGHT" x="13" y="-13"/>
137 </Anchors>
138 </NormalTexture>
139 <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
140 <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
141 </Button>
142
143 <!-- inherited to generate event feedback -->
144 <Frame name="KTDebugTemplate" virtual="true">
145 <Layers>
146 <Layer level="OVERLAY">
147 <FontString inherits="GameFontNormal" parentKey="status" text="text thing here">
148 <Anchors>
149 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
150 </Anchors>
151 </FontString>
152 <FontString inherits="KTLogString" parentKey="logfirst" text="First">
153 <Anchors>
154 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="0" relativeKey="$parent.status" />
155 </Anchors>
156 </FontString>
157 <FontString inherits="KTLogString" parentKey="logdiff" text="Different">
158 <Anchors>
159 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeKey="$parent.logfirst" />
160 </Anchors>
161 </FontString>
162 <FontString inherits="KTLogString" parentKey="log" text="Last">
163 <Anchors>
164 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeKey="$parent.logdiff" />
165 </Anchors>
166 </FontString>
167 </Layer>
168 </Layers>
169 </Frame>
170
171
172
173 <Frame name="KTErrorFrame" parent="UIParent" toplevel="true" movable="true" enableMouse="true" hidden="true" clampedToScreen="true">
174 <Size x="450" y="280" />
175 <Anchors>
176 <Anchor point="CENTER" />
177 </Anchors>
178 <Scripts>
179 <OnLoad>
180 self:RegisterForDrag('LeftButton')
181 </OnLoad>
182 <OnDragStart>
183 self:StartMoving()
184 </OnDragStart>
185 <OnDragStop>
186 self:StopMovingOrSizing()
187 </OnDragStop>
188 </Scripts>
189 <Layers>
190 <Layer level="BACKGROUND">
191 <Texture setAllPoints="true">
192 <Color a="1" r="0" g="0" b="0" />
193 </Texture>
194 </Layer>
195 <Layer level="OVERLAY">
196 <FontString inherits="NumberFont_Outline_Huge" text="KrakTool Error">
197 <Anchors>
198 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
199 </Anchors>
200 </FontString>
201 <FontString inherits="NumberFont_Outline_Large" parentKey="errmsg" justifyH="LEFT" spacing="3">
202 <Anchors>
203 <Anchor point="TOP" />
204 <Anchor point="LEFT" />
205 <Anchor point="RIGHT" />
206 </Anchors>
207 </FontString>
208 <FontString inherits="NumberFont_Outline_Large" parentKey="debugstack" justifyH="LEFT" spacing="3">
209 <Anchors>
210 <Anchor point="LEFT" />
211 <Anchor point="RIGHT" />
212 <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.errmsg" x="0" y="-8" />
213 </Anchors>
214 </FontString>
215 </Layer>
216 </Layers>
217 </Frame>
218 </Ui>