vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | function BagnonOptions_OnShow() |
2 | local frameName = this:GetName(); |
||
3 | |||
4 | getglobal(frameName .. "Tooltips"):SetChecked(BagnonSets.showTooltips); |
||
5 | getglobal(frameName .. "Quality"):SetChecked(BagnonSets.qualityBorders); |
||
6 | |||
7 | getglobal(frameName .. "ShowBagnon1"):SetChecked(BagnonSets.showBagsAtBank); |
||
8 | --getglobal(frameName .. "ShowBagnon2"):SetChecked(BagnonSets.showBagsAtVendor); |
||
9 | getglobal(frameName .. "ShowBagnon3"):SetChecked(BagnonSets.showBagsAtAH); |
||
10 | --getglobal(frameName .. "ShowBagnon4"):SetChecked(BagnonSets.showBagsAtMail); |
||
11 | getglobal(frameName .. "ShowBagnon5"):SetChecked(BagnonSets.showBagsAtTrade); |
||
12 | getglobal(frameName .. "ShowBagnon6"):SetChecked(BagnonSets.showBagsAtCraft); |
||
13 | |||
14 | getglobal(frameName .. "ShowBanknon1"):SetChecked(BagnonSets.showBankAtBank); |
||
15 | getglobal(frameName .. "ShowBanknon2"):SetChecked(BagnonSets.showBankAtVendor); |
||
16 | getglobal(frameName .. "ShowBanknon3"):SetChecked(BagnonSets.showBankAtAH); |
||
17 | getglobal(frameName .. "ShowBanknon4"):SetChecked(BagnonSets.showBankAtMail); |
||
18 | getglobal(frameName .. "ShowBanknon5"):SetChecked(BagnonSets.showBankAtTrade); |
||
19 | getglobal(frameName .. "ShowBanknon6"):SetChecked(BagnonSets.showBankAtCraft); |
||
20 | end |
||
21 | |||
22 | function BagnonOptions_ShowAtBank(enable, bank) |
||
23 | if(bank) then |
||
24 | if(enable) then |
||
25 | BagnonSets.showBankAtBank= 1; |
||
26 | else |
||
27 | BagnonSets.showBankAtBank = nil; |
||
28 | end |
||
29 | else |
||
30 | if(enable) then |
||
31 | BagnonSets.showBagsAtBank= 1; |
||
32 | else |
||
33 | BagnonSets.showBagsAtBank = nil; |
||
34 | end |
||
35 | end |
||
36 | end |
||
37 | |||
38 | function BagnonOptions_ShowAtVendor(enable, bank) |
||
39 | if(bank) then |
||
40 | if(enable) then |
||
41 | BagnonSets.showBankAtVendor= 1; |
||
42 | else |
||
43 | BagnonSets.showBankAtVendor = nil; |
||
44 | end |
||
45 | else |
||
46 | if(enable) then |
||
47 | BagnonSets.showBagsAtVendor= 1; |
||
48 | else |
||
49 | BagnonSets.showBagsAtVendor = nil; |
||
50 | end |
||
51 | end |
||
52 | end |
||
53 | |||
54 | function BagnonOptions_ShowAtAH(enable, bank) |
||
55 | if(bank) then |
||
56 | if(enable) then |
||
57 | BagnonSets.showBankAtAH= 1; |
||
58 | else |
||
59 | BagnonSets.showBankAtAH = nil; |
||
60 | end |
||
61 | else |
||
62 | if(enable) then |
||
63 | BagnonSets.showBagsAtAH= 1; |
||
64 | else |
||
65 | BagnonSets.showBagsAtAH = nil; |
||
66 | end |
||
67 | end |
||
68 | end |
||
69 | |||
70 | function BagnonOptions_ShowAtMail(enable, bank) |
||
71 | if(bank) then |
||
72 | if(enable) then |
||
73 | BagnonSets.showBankAtMail = 1; |
||
74 | else |
||
75 | BagnonSets.showBankAtMail = nil; |
||
76 | end |
||
77 | else |
||
78 | if(enable) then |
||
79 | BagnonSets.showBagsAtMail = 1; |
||
80 | else |
||
81 | BagnonSets.showBagsAtMail = nil; |
||
82 | end |
||
83 | end |
||
84 | end |
||
85 | |||
86 | function BagnonOptions_ShowAtTrade(enable, bank) |
||
87 | if(bank) then |
||
88 | if(enable) then |
||
89 | BagnonSets.showBankAtTrade= 1; |
||
90 | else |
||
91 | BagnonSets.showBankAtTrade = nil; |
||
92 | end |
||
93 | else |
||
94 | if(enable) then |
||
95 | BagnonSets.showBagsAtTrade= 1; |
||
96 | else |
||
97 | BagnonSets.showBagsAtTrade = nil; |
||
98 | end |
||
99 | end |
||
100 | end |
||
101 | |||
102 | function BagnonOptions_ShowAtCrafting(enable, bank) |
||
103 | if(bank) then |
||
104 | if(enable) then |
||
105 | BagnonSets.showBankAtCraft = 1; |
||
106 | else |
||
107 | BagnonSets.showBankAtCraft = nil; |
||
108 | end |
||
109 | else |
||
110 | if(enable) then |
||
111 | BagnonSets.showBagsAtCraft= 1; |
||
112 | else |
||
113 | BagnonSets.showBagsAtCraft = nil; |
||
114 | end |
||
115 | end |
||
116 | end |
||
117 | |||
118 | function BagnonOptions_ShowTooltips(enable) |
||
119 | if(enable) then |
||
120 | BagnonSets.showTooltips = 1; |
||
121 | else |
||
122 | BagnonSets.showTooltips = nil; |
||
123 | end |
||
124 | end |
||
125 | |||
126 | function BagnonOptions_ShowQualityBorders(enable) |
||
127 | if(enable) then |
||
128 | BagnonSets.qualityBorders = 1; |
||
129 | else |
||
130 | BagnonSets.qualityBorders = nil; |
||
131 | end |
||
132 | |||
133 | if(Bagnon and Bagnon:IsShown() ) then |
||
134 | BagnonFrame_Generate(Bagnon); |
||
135 | end |
||
136 | |||
137 | if(Banknon and Banknon:IsShown() ) then |
||
138 | BagnonFrame_Generate(Banknon); |
||
139 | end |
||
140 | end |