vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | local IMBA_Active=true; |
2 | function IMBA_OptionButton_OnClick(button) |
||
3 | if ( button == "RightButton" ) then |
||
4 | if ( IMBA_SavedVariables.LockedWindows ) then |
||
5 | IMBA_UnlockWindows(); |
||
6 | GameTooltip:SetText("IMBA Mod Options\nRight-click to lock frames"); |
||
7 | else |
||
8 | IMBA_LockWindows() |
||
9 | GameTooltip:SetText("IMBA Mod Options\nRight-click to unlock frames"); |
||
10 | end |
||
11 | else |
||
12 | if IsControlKeyDown() then |
||
13 | if IMBA_Active then |
||
14 | IMBA_CloseAllWindows(); |
||
15 | IMBA_Main:Hide(); |
||
16 | IMBA_OptionButtonTexture:SetTexture("Interface\\AddOns\\IMBA\\textures\\icon_no"); |
||
17 | IMBA_Active=false; |
||
18 | DEFAULT_CHAT_FRAME:AddMessage("IMBA is Deactivated", 1.0, 1.0, 0.0); |
||
19 | else |
||
20 | IMBA_Main:Show(); |
||
21 | IMBA_OptionButtonTexture:SetTexture("Interface\\AddOns\\IMBA\\textures\\icon"); |
||
22 | IMBA_Active=true; |
||
23 | DEFAULT_CHAT_FRAME:AddMessage("IMBA is Activated", 1.0, 1.0, 0.0); |
||
24 | end |
||
25 | else |
||
26 | if ( IMBA_Options:IsVisible() ) then |
||
27 | IMBA_Options:Hide(); |
||
28 | else |
||
29 | IMBA_Options:Show(); |
||
30 | end |
||
31 | end |
||
32 | end |
||
33 | end |
||
34 | |||
35 | IMBA_SavedVariables.ButtonPos = 300; |
||
36 | |||
37 | function IMBA_OptionButton_MoveButton() |
||
38 | IMBA_OptionButton:SetPoint("TOPLEFT", "Minimap", "TOPLEFT", 52 - (80 * cos(IMBA_SavedVariables.ButtonPos)), (80 * sin(IMBA_SavedVariables.ButtonPos)) - 52); |
||
39 | end |