PDA

View Full Version : Another way of hiding the mouse



VicVonDoom
December 6th, 2009, 08:41 AM
This seems to work for me...

It checks for the panel name and if it isn't "AnyFakePanelName" it hides the mouse...


local MouseCheck = NetRemote.GetVariable('NR.PanelName');
if (panel == 'AnyFakePanelName') then
NetRemote.GetScreen().ShowCursor(true); else
NetRemote.GetScreen().ShowCursor(false);
end;

You can change the line if (panel == 'AnyFakePanelName') then to a real panel name, i.e. 'Other' to only show the mouse on your panel called 'Other'