Jump to content

PlayGui.noCursor


Recommended Posts

I having trouble getting the following code to work. I have this code in a function of the game.cs script in server folder. I'm trying to set the noCursor property of the playGui to 1, and it doesn't work. It needs to be in the game.cs script rather than the playgui.gui script because I need the user to select controls on the playGui gui, so that when I hide the controls the user will be able to navigate the world with the mouse.

 

function DemoSignMin()
{
 //   Set the demosign into the loweer right hand corner
 DCSign.setVisible(false);
 DSign.setPosition(500,400);
 DSign.setExtent(200,100);
 DSign.setVisible(false);
 PlayGUI.noCursor = "1";
}

Link to post
Share on other sites

The location of the script does not matter, it can be anywhere, you only have to worry about the execution order so that the script is available where you want it.


For example I don't write any scripts in the .gui files or at least try to and instead create a playgui.cs file where I place the scripts.

Link to post
Share on other sites
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...