Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > CopperCube > Help with CopperCube
mouse/hidden/show
Author Text

harun_cakann
Registered User
Quote
2022-09-06 23:12:28

make mouse visible when button is pressed


Guest
Guest
Quote
2022-09-07 03:23:32

You can set a variable called "mouseVIs" to false in a Before First Drawing Do Something behavior and then on the key you want to use to make the mouse visible run an Execute Java Script action with this code:

var s = ccbGetCopperCubeVariable("mouseVis");

if (s == "true") {
ccbSetCursorVisible("false");

ccbSetCopperCubeVariable("mouseVis", "false");
} else {
ccbSetCursorVisible("true");

ccbSetCopperCubeVariable("mouseVis", "true");
}

This will toggle the mouse visible or invisible.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact