Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
15
scripts/BookShelfHover.gd
Normal file
15
scripts/BookShelfHover.gd
Normal file
|
@ -0,0 +1,15 @@
|
|||
extends TextureRect
|
||||
|
||||
func _ready():
|
||||
self.connect("mouse_entered", self, "_hoverON");
|
||||
self.connect("mouse_exited", self, "_hoverOFF");
|
||||
|
||||
func _hoverON():
|
||||
get_parent().get_parent().get_node("MovingLens").visible = true
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
||||
|
||||
|
||||
func _hoverOFF():
|
||||
get_parent().get_parent().get_node("MovingLens").visible = false
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue