vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <Ui xmlns="http://www.blizzard.com/wow/ui/" |
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
3 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd"> |
||
4 | |||
5 | <!-- UI Templates, for creating menus --> |
||
6 | <Script file="menu.lua"/> |
||
7 | |||
8 | <!-- General Checkbutton --> |
||
9 | <CheckButton name="BongosCheckButtonTemplate" virtual="true"> |
||
10 | <Size x="32" y="32"/> |
||
11 | |||
12 | <ButtonText name="$parentText"> |
||
13 | <Anchors> |
||
14 | <Anchor point="LEFT" relativePoint="RIGHT"> |
||
15 | <Offset x="-2" y="0"/> |
||
16 | </Anchor> |
||
17 | </Anchors> |
||
18 | </ButtonText> |
||
19 | |||
20 | <NormalFont font="GameFontNormalSmall"/> |
||
21 | <DisabledFont font="GameFontDisableSmall"/> |
||
22 | <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/> |
||
23 | <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/> |
||
24 | <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/> |
||
25 | <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/> |
||
26 | <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/> |
||
27 | </CheckButton> |
||
28 | |||
29 | <!-- Hide Button --> |
||
30 | <CheckButton name="BongosHideButtonTemplate" inherits="BongosCheckButtonTemplate" text="Hide Bar" virtual="true"> |
||
31 | <Anchors> |
||
32 | <Anchor point="TOPLEFT"> |
||
33 | <Offset x="8" y="-28"/> |
||
34 | </Anchor> |
||
35 | </Anchors> |
||
36 | <Scripts> |
||
37 | <OnClick> |
||
38 | BBar.Hide(this:GetParent().frame, 1); |
||
39 | this:GetParent():Hide(); |
||
40 | </OnClick> |
||
41 | </Scripts> |
||
42 | </CheckButton> |
||
43 | |||
44 | |||
45 | <!-- General Slider --> |
||
46 | <Slider name="BongosSlider" inherits="OptionsSliderTemplate" virtual="true"> |
||
47 | <Size x="200" y="18"/> |
||
48 | |||
49 | <Layers> |
||
50 | <Layer level="ARTWORK"> |
||
51 | <FontString name="$parentValText" font="GameFontNormalSmall"> |
||
52 | <Anchors> |
||
53 | <Anchor point="BOTTOM"> |
||
54 | <Offset x="0" y="-6"/> |
||
55 | </Anchor> |
||
56 | </Anchors> |
||
57 | </FontString> |
||
58 | </Layer> |
||
59 | </Layers> |
||
60 | </Slider> |
||
61 | |||
62 | <!-- Scaler --> |
||
63 | <Slider name="BongosScaleSlider" inherits="BongosSlider" minValue="50" maxValue="150" valuestep="1" virtual="true"> |
||
64 | <Scripts> |
||
65 | <OnLoad> |
||
66 | getglobal(this:GetName() .. "Text"):SetText("Scale"); |
||
67 | getglobal(this:GetName() .. "Low"):SetText("50%"); |
||
68 | getglobal(this:GetName() .. "High"):SetText("150%"); |
||
69 | </OnLoad> |
||
70 | <OnValueChanged> |
||
71 | if(not this:GetParent().onShow) then |
||
72 | BBar.SetScale(this:GetParent().frame, this:GetValue() / 100, 1); |
||
73 | end |
||
74 | getglobal(this:GetName() .. "ValText"):SetText( this:GetValue() ); |
||
75 | </OnValueChanged> |
||
76 | </Scripts> |
||
77 | </Slider> |
||
78 | |||
79 | <!-- Scaler --> |
||
80 | <Slider name="BongosOpacitySlider" inherits="BongosSlider" minValue="0" maxValue="100" valuestep="1" virtual="true"> |
||
81 | <Scripts> |
||
82 | <OnLoad> |
||
83 | getglobal(this:GetName() .. "Text"):SetText("Opacity"); |
||
84 | getglobal(this:GetName() .. "Low"):SetText("0%"); |
||
85 | getglobal(this:GetName() .. "High"):SetText("100%"); |
||
86 | </OnLoad> |
||
87 | <OnValueChanged> |
||
88 | if(not this:GetParent().onShow) then |
||
89 | BBar.SetAlpha(this:GetParent().frame, this:GetValue() / 100, 1); |
||
90 | end |
||
91 | getglobal(this:GetName() .. "ValText"):SetText( this:GetValue() ); |
||
92 | </OnValueChanged> |
||
93 | </Scripts> |
||
94 | </Slider> |
||
95 | |||
96 | <!-- Spacing --> |
||
97 | <Slider name="BongosSpaceSlider" inherits="BongosSlider" minValue="0" maxValue="36" valuestep="2" virtual="true"> |
||
98 | <Scripts> |
||
99 | <OnLoad> |
||
100 | getglobal(this:GetName() .. "Text"):SetText("Spacing"); |
||
101 | getglobal(this:GetName() .. "Low"):SetText("0"); |
||
102 | getglobal(this:GetName() .. "High"):SetText("36"); |
||
103 | </OnLoad> |
||
104 | </Scripts> |
||
105 | </Slider> |
||
106 | |||
107 | <!-- Right Click Menu --> |
||
108 | <Button name="BongosRightClickMenu" parent="UIParent" frameStrata="DIALOG" clampedToScreen="true" enableMouse="true" toplevel="true" hidden="true" virtual="true"> |
||
109 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> |
||
110 | <EdgeSize> |
||
111 | <AbsValue val="16"/> |
||
112 | </EdgeSize> |
||
113 | <TileSize> |
||
114 | <AbsValue val="16"/> |
||
115 | </TileSize> |
||
116 | <BackgroundInsets> |
||
117 | <AbsInset left="4" right="4" top="4" bottom="4"/> |
||
118 | </BackgroundInsets> |
||
119 | </Backdrop> |
||
120 | |||
121 | <ButtonText name="$parentText"> |
||
122 | <Anchors> |
||
123 | <Anchor point="TOP"> |
||
124 | <Offset x="0" y="-6"/> |
||
125 | </Anchor> |
||
126 | </Anchors> |
||
127 | </ButtonText> |
||
128 | <NormalFont font="GameFontHighlightLarge"/> |
||
129 | |||
130 | <Frames> |
||
131 | <Button name="$parentClose" inherits="UIPanelCloseButton"> |
||
132 | <Anchors> |
||
133 | <Anchor point="TOPRIGHT"/> |
||
134 | </Anchors> |
||
135 | </Button> |
||
136 | </Frames> |
||
137 | |||
138 | <Scripts> |
||
139 | <OnLoad> |
||
140 | this:RegisterForClicks("LeftButtonUp", "RightButtonUp"); |
||
141 | </OnLoad> |
||
142 | <OnClick> |
||
143 | this:Hide(); |
||
144 | </OnClick> |
||
145 | </Scripts> |
||
146 | </Button> |
||
147 | </Ui> |