vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
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 <Script file="LootTrackerGeneralSettingsUI.lua"/>
6  
7 <Frame name="LT_GeneralSettingsTemplate" virtual="true" inherits="OptionFrameBoxTemplate">
8 <Size x="210" y="70"/>
9 <Frames>
10  
11 <!-- Color Picker Button -->
12 <Button name="ColorPickerButton" inherits="OptionsButtonTemplate">
13 <Size x="190" y="20"/>
14 <Anchors>
15 <Anchor point="TopLEFT" relativePoint="TopLEFT" relativeTo="$parent">
16 <Offset x="10" y="-10"/>
17 </Anchor>
18 </Anchors>
19 <Scripts>
20 <OnClick>
21 LT_ShowChatColorPicker();
22 </OnClick>
23 <OnShow>
24 this:SetText(LT_BUTTON_CHATCOLOR);
25 </OnShow>
26 </Scripts>
27 </Button>
28  
29 <!-- Just my loot CheckBox -->
30 <CheckButton name="JustMyLootCheckBox" inherits="OptionsCheckButtonTemplate">
31 <Anchors>
32 <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="ColorPickerButton">
33 <Offset x="0" y="-5"/>
34 </Anchor>
35 </Anchors>
36 <Scripts>
37 <OnShow>
38 local settings = LT_GetSettings();
39 this:SetChecked(settings.JustMyLoot);
40  
41 local text = getglobal(this:GetName() .. "Text");
42 text:SetText(LT_LABEL_JUSTMYLOOT);
43 </OnShow>
44 <OnClick>
45 local settings = LT_GetSettings();
46 settings.JustMyLoot = this:GetChecked();
47 LT_DebugMessage(1, string.format(LT_SLASHCOMMAND_JUSTMYLOOT_QUERY, tostring(settings.JustMyLoot)));
48 LT_FireChange();
49 </OnClick>
50 </Scripts>
51 </CheckButton>
52  
53 </Frames>
54 </Frame>
55  
56 </Ui>