Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
569
XenoBot Menu #80
This will create a right click menu similar to Xenobot. If you use vBot, this feature is already built in and will break this if its enabled.
933b | 21 lines.
modules.game_interface.gameRootPanel.onMouseRelease = function(widget, mousePos, mouseButton)
    if mouseButton == MouseRightButton then
        local child = rootWidget:recursiveGetChildByPos(mousePos)
        if child == widget then
            local menu = g_ui.createWidget('PopupMenu')
            menu:setId("blzMenu")
            menu:setGameMenu(true)
            menu:addOption('Support', function() end, "")
            menu:addOption('Tools', function() end, "")
            menu:addOption('Visuals', function() end, "")
            menu:addSeparator()
            menu:addOption('Frag Helper', function() end, "")
            menu:addOption('HUD', function() end, "")
            menu:addOption('Support', function() end, "")
            menu:addSeparator()
            menu:addOption('Enjoy!', function() end, "Lee")
            menu:display(mousePos)
            return true
        end
    end
end

26 Feb 2022