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 | |||
6 | <Frame name="LT_TitanSettingsTemplate" virtual="true" inherits="OptionFrameBoxTemplate"> |
||
7 | <Size x="210" y="185"/> |
||
8 | <Frames> |
||
9 | |||
10 | <!-- Threshold slider --> |
||
11 | <Slider name="LT_ThresholdSlider" inherits="OptionsSliderTemplate"> |
||
12 | <Size x="190" y="20"/> |
||
13 | <Anchors> |
||
14 | <Anchor point="TopLEFT" relativePoint="TopLEFT" relativeTo="LT_TooltipFrame"> |
||
15 | <Offset x="10" y="-20"/> |
||
16 | </Anchor> |
||
17 | </Anchors> |
||
18 | <Scripts> |
||
19 | <OnShow> |
||
20 | local settings = LT_GetSettings(); |
||
21 | local text = getglobal("LT_ThresholdSliderText"); |
||
22 | local low = getglobal("LT_ThresholdSliderLow"); |
||
23 | local high = getglobal("LT_ThresholdSliderHigh"); |
||
24 | this:SetMinMaxValues(LT_MinQuality, LT_MaxQuality); |
||
25 | this:SetValueStep(1); |
||
26 | this:SetValue(settings.QualityThreshold); |
||
27 | text:SetText(string.format(LT_LABEL_THRESHOLD, LT_GetColoredQualityName(settings.QualityThreshold))); |
||
28 | low:SetText(LT_GetColoredQualityName(LT_MinQuality)); |
||
29 | high:SetText(LT_GetColoredQualityName(LT_MaxQuality)); |
||
30 | </OnShow> |
||
31 | <OnValueChanged> |
||
32 | local settings = LT_GetSettings(); |
||
33 | if (settings.QualityThreshold ~= this:GetValue()) then |
||
34 | settings.QualityThreshold = this:GetValue(); |
||
35 | LT_DebugMessage(1, string.format(LT_SLASHCOMMAND_THRESHOLD_QUERY, settings.QualityThreshold)); |
||
36 | LT_FireChange(); |
||
37 | end |
||
38 | |||
39 | local text = getglobal("LT_ThresholdSliderText"); |
||
40 | text:SetText(string.format(LT_LABEL_THRESHOLD, LT_GetColoredQualityName(settings.QualityThreshold))); |
||
41 | </OnValueChanged> |
||
42 | </Scripts> |
||
43 | </Slider> |
||
44 | |||
45 | <!-- Tooltip slider --> |
||
46 | <Slider name="LT_TooltipSlider" inherits="OptionsSliderTemplate"> |
||
47 | <Size x="190" y="20"/> |
||
48 | <Anchors> |
||
49 | <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="LT_ThresholdSlider"> |
||
50 | <Offset x="0" y="-20"/> |
||
51 | </Anchor> |
||
52 | </Anchors> |
||
53 | <Scripts> |
||
54 | <OnShow> |
||
55 | local settings = LT_GetSettings(); |
||
56 | local text = getglobal("LT_TooltipSliderText"); |
||
57 | local low = getglobal("LT_TooltipSliderLow"); |
||
58 | local high = getglobal("LT_TooltipSliderHigh"); |
||
59 | this:SetMinMaxValues(LT_MinTooltipMode, LT_MaxTooltipMode); |
||
60 | this:SetValueStep(1); |
||
61 | this:SetValue(settings.TooltipMode); |
||
62 | text:SetText(string.format(LT_LABEL_TOOLTIP_MODE, LT_TOOLTIP_DESCRIPTION[settings.TooltipMode])); |
||
63 | low:SetText(LT_TOOLTIP_DESCRIPTION[LT_MinTooltipMode]); |
||
64 | high:SetText(LT_TOOLTIP_DESCRIPTION[LT_MaxTooltipMode]); |
||
65 | </OnShow> |
||
66 | <OnValueChanged> |
||
67 | local settings = LT_GetSettings(); |
||
68 | if (settings.TooltipMode ~= this:GetValue()) then |
||
69 | settings.TooltipMode = this:GetValue(); |
||
70 | LT_DebugMessage(1, string.format("Tooltip mode is %d", settings.TooltipMode)); |
||
71 | LT_FireChange(); |
||
72 | end |
||
73 | |||
74 | local text = getglobal("LT_TooltipSliderText"); |
||
75 | text:SetText(string.format(LT_LABEL_TOOLTIP_MODE, LT_TOOLTIP_DESCRIPTION[settings.TooltipMode])); |
||
76 | </OnValueChanged> |
||
77 | </Scripts> |
||
78 | </Slider> |
||
79 | |||
80 | <!-- Show items --> |
||
81 | <CheckButton name="LT_ShowItemsCheckBox" inherits="OptionsCheckButtonTemplate"> |
||
82 | <Anchors> |
||
83 | <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="LT_TooltipSlider"> |
||
84 | <Offset x="0" y="-10"/> |
||
85 | </Anchor> |
||
86 | </Anchors> |
||
87 | <Scripts> |
||
88 | <OnShow> |
||
89 | local settings = LT_GetSettings(); |
||
90 | this:SetChecked(settings.TooltipShowItems); |
||
91 | |||
92 | local text = getglobal("LT_ShowItemsCheckBoxText"); |
||
93 | text:SetText(LT_LABEL_SHOWITEMS); |
||
94 | </OnShow> |
||
95 | <OnClick> |
||
96 | local settings = LT_GetSettings(); |
||
97 | settings.TooltipShowItems = this:GetChecked(); |
||
98 | LT_DebugMessage(1, string.format("TooltipShowItems mode is %s", tostring(settings.TooltipShowItems))); |
||
99 | LT_FireChange(); |
||
100 | </OnClick> |
||
101 | </Scripts> |
||
102 | </CheckButton> |
||
103 | |||
104 | <!-- Show kills --> |
||
105 | <CheckButton name="LT_ShowKillsCheckBox" inherits="OptionsCheckButtonTemplate"> |
||
106 | <Anchors> |
||
107 | <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="LT_ShowItemsCheckBox"> |
||
108 | <Offset x="0" y="4"/> |
||
109 | </Anchor> |
||
110 | </Anchors> |
||
111 | <Scripts> |
||
112 | <OnShow> |
||
113 | local settings = LT_GetSettings(); |
||
114 | this:SetChecked(settings.TooltipShowKills); |
||
115 | |||
116 | local text = getglobal("LT_ShowKillsCheckBoxText"); |
||
117 | text:SetText(LT_LABEL_SHOWKILLS); |
||
118 | </OnShow> |
||
119 | <OnClick> |
||
120 | local settings = LT_GetSettings(); |
||
121 | settings.TooltipShowKills = this:GetChecked(); |
||
122 | LT_DebugMessage(1, string.format("TooltipShowKills mode is %s", tostring(settings.TooltipShowKills))); |
||
123 | LT_FireChange(); |
||
124 | </OnClick> |
||
125 | </Scripts> |
||
126 | </CheckButton> |
||
127 | |||
128 | <!-- Show players --> |
||
129 | <CheckButton name="LT_ShowPlayersCheckBox" inherits="OptionsCheckButtonTemplate"> |
||
130 | <Anchors> |
||
131 | <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="LT_ShowKillsCheckBox"> |
||
132 | <Offset x="0" y="4"/> |
||
133 | </Anchor> |
||
134 | </Anchors> |
||
135 | <Scripts> |
||
136 | <OnShow> |
||
137 | local settings = LT_GetSettings(); |
||
138 | this:SetChecked(settings.TooltipShowPlayers); |
||
139 | |||
140 | local text = getglobal("LT_ShowPlayersCheckBoxText"); |
||
141 | text:SetText(LT_LABEL_SHOWPLAYERS); |
||
142 | </OnShow> |
||
143 | <OnClick> |
||
144 | local settings = LT_GetSettings(); |
||
145 | settings.TooltipShowPlayers = this:GetChecked(); |
||
146 | LT_DebugMessage(1, string.format("TooltipShowPlayers mode is %s", tostring(settings.TooltipShowPlayers))); |
||
147 | LT_FireChange(); |
||
148 | </OnClick> |
||
149 | </Scripts> |
||
150 | </CheckButton> |
||
151 | |||
152 | </Frames> |
||
153 | <Scripts> |
||
154 | <OnShow> |
||
155 | --LT_AddListener(LT_UpdateUI); |
||
156 | --LT_UpdateUI(); |
||
157 | </OnShow> |
||
158 | <OnHide> |
||
159 | --LT_RemoveListener(LT_UpdateUI); |
||
160 | </OnHide> |
||
161 | </Scripts> |
||
162 | </Frame> |
||
163 | </Ui> |