vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 --[[
2 LS Chat Options Window
3  
4 open up with /lschat
5 ]]
6  
7 function LSChat_ToggleOptions()
8 if(LSChat_Options:IsVisible()) then
9 LSChat_Options:Hide();
10 else
11 LSChat_Options:Show();
12 end;
13 end;
14  
15  
16 function LSChat_UpdateOptions()
17 if(LSChatConfig.HideButtons) then
18 LSChat_checkbox_Hide:SetChecked(1);
19 else
20 LSChat_checkbox_Hide:SetChecked(0);
21 end;
22  
23 if(LSChatConfig.DisableButtons) then
24 LSChat_checkbox_DisableButtons:SetChecked(1);
25 else
26 LSChat_checkbox_DisableButtons:SetChecked(0);
27 end;
28  
29 if(LSChatConfig.HideEmote) then
30 LSChat_checkbox_HideEmote:SetChecked(1);
31 else
32 LSChat_checkbox_HideEmote:SetChecked(0);
33 end;
34  
35 if(LSChatConfig.Mousewheel) then
36 LSChat_checkbox_Mousewheel:SetChecked(1);
37 else
38 LSChat_checkbox_Mousewheel:SetChecked(0);
39 end;
40  
41 if(LSChatConfig.StampEnabled) then
42 LSChat_checkbox_Enabled:SetChecked(1);
43 else
44 LSChat_checkbox_Enabled:SetChecked(0);
45 end;
46  
47 if(LSChatConfig.StampSeconds) then
48 LSChat_checkbox_Seconds:SetChecked(1);
49 else
50 LSChat_checkbox_Seconds:SetChecked(0);
51 end;
52  
53 if(LSChatConfig.StampStyle) then
54 LSChat_checkbox_Style:SetChecked(1);
55 else
56 LSChat_checkbox_Style:SetChecked(0);
57 end;
58  
59 end