mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
Added Labels
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
extends Node3D
|
||||
|
||||
func _ready():
|
||||
self.get_node("tutorial").hide()
|
||||
|
||||
func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
|
||||
self.scale = Vector3(1.5,1.5,1.5)
|
||||
self.get_node("tutorial").show()
|
||||
if event is InputEventMouseButton:
|
||||
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
|
||||
print("Credits/Spielbeschreibung")
|
||||
@@ -13,3 +16,4 @@ func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
|
||||
|
||||
func _on_area_3d_mouse_exited():
|
||||
self.scale = Vector3(1,1,1)
|
||||
self.get_node("tutorial").hide()
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
extends Node3D
|
||||
|
||||
func _ready():
|
||||
self.get_node("settings").hide()
|
||||
|
||||
func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
|
||||
print("scale")
|
||||
self.get_node("settings").show()
|
||||
self.scale = Vector3(1.2,1.2,1.2)
|
||||
if event is InputEventMouseButton:
|
||||
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
|
||||
@@ -14,3 +17,4 @@ func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
|
||||
|
||||
func _on_area_3d_mouse_exited():
|
||||
self.scale = Vector3(1,1,1)
|
||||
self.get_node("settings").hide()
|
||||
|
||||
Reference in New Issue
Block a user