WoWInterface SVN PortalBox

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 3 to Rev 4
    Reverse comparison

Rev 3 → Rev 4

trunk/portalbox.xml
2328,7 → 2328,8
PortalBox_MinimapButton_DraggingFrame:Hide()
</OnDragStop>
<OnClick>
PortalBox_MinimapButton_OnClick() -- do your thing in here, arg1 is mouse button clicked
PortalBox_MinimapButton_OnClick(arg1) -- do your thing in here, arg1 is mouse button clicked
 
</OnClick>
</Scripts>
</Button>
trunk/portalbox.lua
89,8 → 89,12
PortalBox_MinimapButtonUnbound_Reposition() -- move the button
end
 
function PortalBox_MinimapButton_OnClick()
portalbox_toggle(msg);
function PortalBox_MinimapButton_OnClick(arg1)
if (arg1 == "LeftButton") then
portalbox_toggle(msg);
else
InterfaceOptionsFrame_OpenToCategory("PortalBox")
end
end
 
function out(text)
98,7 → 102,12
end
 
function portalbox_SlashCommandHandler(msg)
portalbox_toggle(msg);
if msg == "" then
portalbox_toggle();
end
if msg == "config" then
InterfaceOptionsFrame_OpenToCategory("PortalBox");
end
end
 
function portalBox_toggleCollapseState()