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.
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
- remove | + add
26 Feb 2022