I'm adding some drag & drop functionality to the pointshop and it seems as soon as you release the mouse after dragging a drag-n-drop item the mouse cursor disappears.
I've tracked it to:
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/includes/extensions/client/panel/dragdrop.lua[/url]
Line 462
[CODE]-- Todo.. we should only do this if we enabled it!
if ( gui.EnableScreenClicker ) then
gui.EnableScreenClicker( false )
end[/CODE]
And the way the pointshop loads the menu is
[CODE]PS.ShopMenu:Show()
gui.EnableScreenClicker(true)[/CODE]
I can fix this by commenting out the code in dragdrop.lua but is there a better way to do this than to edit the core files?
Thank you Garry
[code]
--[[
-- hairy cocks
--]]
[/code]
Rule #1 of drag'n'drop in GMod: You don't use drag'n'drop library.
[url]http://wiki.garrysmod.com/page/Panel/Droppable[/url]
[url]http://wiki.garrysmod.com/page/Panel/Receiver[/url]
Use these
[QUOTE=Robotboy655;45851999]Rule #1 of drag'n'drop in GMod: You don't use drag'n'drop library.
[url]http://wiki.garrysmod.com/page/Panel/Droppable[/url]
[url]http://wiki.garrysmod.com/page/Panel/Receiver[/url]
Use these[/QUOTE]
That's exactly what I'm using. That piece of code is still being executed.
Sorry, you need to Log In to post a reply to this thread.