-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFilteredNamePlateMenu.xml
executable file
·127 lines (127 loc) · 3.81 KB
/
FilteredNamePlateMenu.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
<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="FilteredNamePlate_Menu" hidden="true" parent="UIParent" toplevel="true" movable="true" frameStrata="HIGH" enableMouse="true" enableKeyboard="true">
<Size>
<AbsDimension x="80" y="450" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FilteredNamePlate_Frame" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="-75" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<BackgroundInsets>
<AbsInset left="5" right="0" top="6" bottom="5" />
</BackgroundInsets>
<TileSize>
<AbsValue val="16" />
</TileSize>
<EdgeSize>
<AbsValue val="16" />
</EdgeSize>
</Backdrop>
<Frames>
<Button name="$parent1" inherits="OptionsButtonTemplate">
<Size>
<AbsDimension x="60" y="40" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
FilteredNamePlate:FNP_ChangeFrameVisibility("general")
</OnClick>
</Scripts>
<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
</Button>
<Button name="$parent2" inherits="OptionsButtonTemplate">
<Size>
<AbsDimension x="60" y="40" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-70" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
FilteredNamePlate:FNP_ChangeFrameVisibility("filter")
</OnClick>
</Scripts>
<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
</Button>
<Button name="$parent3" inherits="OptionsButtonTemplate">
<Size>
<AbsDimension x="60" y="40" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-110" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
FilteredNamePlate:FNP_ChangeFrameVisibility("percent")
</OnClick>
</Scripts>
<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
</Button>
<Button name="$parent4" inherits="OptionsButtonTemplate" Hidden="true">
<Size>
<AbsDimension x="60" y="40" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-150" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
FilteredNamePlate:FNP_ChangeFrameVisibility("killline")
</OnClick>
</Scripts>
<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
</Button>
<Button name="$parent5" inherits="OptionsButtonTemplate">
<Size>
<AbsDimension x="60" y="40" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="10" y="30" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
FilteredNamePlate:FNP_ChangeFrameVisibility("about")
</OnClick>
</Scripts>
<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
</Button>
</Frames>
<Scripts>
<OnLoad>
FilteredNamePlate_OnLoad();
FilteredNamePlate_Menu1:SetText(FNP_LOCALE_TEXT.FNP_MENU_GENERAL)
FilteredNamePlate_Menu2:SetText(FNP_LOCALE_TEXT.FNP_MENU_FILTER)
FilteredNamePlate_Menu3:SetText(FNP_LOCALE_TEXT.FNP_MENU_SIZE)
FilteredNamePlate_Menu4:SetText(FNP_LOCALE_TEXT.FNP_MENU_KILLLINE)
FilteredNamePlate_Menu5:SetText(FNP_LOCALE_TEXT.FNP_MENU_ABOUT)
</OnLoad>
</Scripts>
</Frame>
</Ui>