-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathtemplates.xml
114 lines (110 loc) · 4.11 KB
/
templates.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
<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">
<Frame name="{addon}WorldMapPinTemplate" hidden="true" enableMouse="true" mixin="{addon}WorldMapPinMixin" virtual="true">
<Size x="30" y="30"/>
<Layers>
<Layer>
<Texture parentKey="texture" setAllPoints="true">
</Texture>
</Layer>
</Layers>
</Frame>
<Button name="{addon}MinimapPinTemplate" hidden="true" enableMouse="true" mixin="{addon}MinimapPinMixin" virtual="true">
<Size x="12" y="12"/>
<Layers>
<Layer level="OVERLAY">
<Texture parentKey="texture" setAllPoints="true" texelSnappingBias="0.0" snapToPixelGrid="false">
</Texture>
</Layer>
</Layers>
<Scripts>
<OnEnter method="OnMouseEnter"/>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
</Button>
<DropDownToggleButton name="{addon}WorldMapOptionsButtonTemplate" frameStrata="HIGH" mixin="{addon}WorldMapOptionsButtonMixin" virtual="true">
<Size x="32" y="32"/>
<Layers>
<Layer level="BACKGROUND">
<Texture parentKey="Background" file="Interface\Minimap\UI-Minimap-Background">
<Size x="25" y="25"/>
<Anchors>
<Anchor point="TOPLEFT" x="2" y="-4"/>
</Anchors>
<Color r="1" g="1" b="1" a="1"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture parentKey="Icon" file="Interface\Addons\{addon}\core\artwork\icons\chest_gray.blp">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="TOPLEFT" x="6" y="-6"/>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture parentKey="IconOverlay" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Icon"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon"/>
</Anchors>
<Color r="0.0" g="0.0" b="0.0" a="0.5"/>
</Texture>
</Layer>
<Layer level="OVERLAY" textureSubLevel="1">
<Texture parentKey="Border" file="Interface\Minimap\MiniMap-TrackingBorder">
<Size x="54" y="54"/>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
<Scripts>
<OnLoad method="OnLoad"/>
<OnMouseDown method="OnMouseDown"/>
<OnMouseUp method="OnMouseUp"/>
<OnEnter method="OnEnter"/>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
</DropDownToggleButton>
<Frame name="{addon}TextMenuOptionTemplate" inherits="UIDropDownCustomMenuEntryTemplate" virtual="true">
<Size x="240" y="20"/>
<Layers>
<Layer>
<FontString parentKey="Text" inherits="GameFontHighlightSmallLeft" wordwrap="true" maxLines="2">
<Anchors>
<Anchor point="TOP"/>
<Anchor point="BOTTOM"/>
<Anchor point="LEFT"/>
<Anchor point="RIGHT"/>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Frame name="{addon}SliderMenuOptionTemplate" inherits="UIDropDownCustomMenuEntryTemplate" virtual="true">
<Size x="240" y="20"/>
<Layers>
<Layer>
<FontString parentKey="Label" inherits="GameFontHighlightSmallLeft">
<Size x="65" y="20"/>
<Anchors><Anchor point="LEFT"/></Anchors>
</FontString>
<FontString parentKey="Value" inherits="GameFontNormalSmall">
<Size x="40" y="20"/>
<Anchors><Anchor point="RIGHT"/></Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Slider parentKey="Slider" defaultValue="1" obeyStepOnDrag="true" inherits="PropertySliderTemplate">
<Size x="0" y="20"/>
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.Label" relativePoint="RIGHT" x="5" y="0"/>
<Anchor point="RIGHT" relativeKey="$parent.Value" relativePoint="LEFT" x="-5" y="0"/>
</Anchors>
</Slider>
</Frames>
</Frame>
</Ui>