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.
1.8K
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.
 --[[
  Script made by Lee (Discord: l33_) - www.trainorcreations.com
  If you want to support my work, feel free to donate at https://trainorcreations.com/donate
  PS. Stop ripping off my work and selling it as your own.
 ]]--
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
Ads