vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | AUTODING_CONFIG_TITLE = "AutoDing Options"; |
2 | AUTODING_EDIT_TITLE = "AutoDing Message:"; |
||
3 | AUTODING_EDIT_HELP = "Type the message you want to export on dinging.\nUse \"$L\" where you want your level to appear."; |
||
4 | |||
5 | function AutoDingConfig_OnLoad() |
||
6 | UIPanelWindows["AutoDingConfigFrame"] = {area = "center", pushable = 0}; |
||
7 | end |
||
8 | |||
9 | function AutoDingConfig_SetValues() |
||
10 | cbxADEnable:SetChecked(UniAutoDingSaved[AutoDing_Player].AutoDing == 1); |
||
11 | cbxADPartyDing:SetChecked(UniAutoDingSaved[AutoDing_Player].PartyDing == 1); |
||
12 | cbxADScreenshot:SetChecked(UniAutoDingSaved[AutoDing_Player].Screenie == 1); |
||
13 | butADChannel:SetText(UniAutoDingSaved[AutoDing_Player].Channel); |
||
14 | AutoDing_EditBox:SetText(UniAutoDingSaved[AutoDing_Player].DingString); |
||
15 | txtADEditHeader:SetText(AUTODING_EDIT_TITLE); |
||
16 | txtADEditTips:SetText(AUTODING_EDIT_HELP); |
||
17 | end |
||
18 | |||
19 | function AutoDingConfig_OnShow() |
||
20 | txtADConfigTitle:SetText(AUTODING_CONFIG_TITLE); |
||
21 | txtADConfigTitle:SetTextColor(0.5, 0.5, 0.5); |
||
22 | txtADConfigTitle:Show(); |
||
23 | |||
24 | UniAutoDing_ChatPrint(txtADConfigTitle:GetText()); |
||
25 | |||
26 | AutoDingConfig_SetValues(); |
||
27 | end |
||
28 | |||
29 | function AutoDingConfig_OnHide() |
||
30 | if (MYADDONS_ACTIVE_OPTIONSFRAME == this) then |
||
31 | ShowUIPanel(myAddOnsFrame); |
||
32 | end |
||
33 | end |
||
34 | |||
35 | function AutoDingConfig_OnMouseDown(arg1) |
||
36 | if (arg1 == "LeftButton") then |
||
37 | AutoDingConfigFrame:StartMoving(); |
||
38 | end |
||
39 | end |
||
40 | |||
41 | function AutoDingConfig_OnMouseUp(arg1) |
||
42 | if (arg1 == "LeftButton") then |
||
43 | AutoDingConfigFrame:StopMovingOrSizing(); |
||
44 | end |
||
45 | end |
||
46 | |||
47 | function AutoDingConfig_btnUTDone_OnClick() |
||
48 | HideUIPanel(AutoDingConfigFrame); |
||
49 | end |
||
50 | |||
51 | function AutoDing_UpdateString() |
||
52 | UniAutoDingSaved[AutoDing_Player].DingString = this:GetText(); |
||
53 | end |