mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
Functional 3D User Interface
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
extends Node3D
|
||||
|
||||
func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
|
||||
self.scale = Vector3(1.5,1.5,1.5)
|
||||
if event is InputEventMouseButton:
|
||||
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
|
||||
print("Start Game")
|
||||
get_tree().change_scene_to_file("res://Nodes/game.tscn")
|
||||
|
||||
|
||||
|
||||
func _on_area_3d_mouse_exited():
|
||||
self.scale = Vector3(1,1,1)
|
||||
|
||||
@@ -2,9 +2,14 @@ extends Node3D
|
||||
|
||||
|
||||
func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
|
||||
self.scale = Vector3(1.5,1.5,1.5)
|
||||
if event is InputEventMouseButton:
|
||||
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
|
||||
print("Credits/Spielbeschreibung")
|
||||
#TODO: Richtige Szene Einfügen
|
||||
get_tree().change_scene_to_file("res://Nodes/game.tscn")
|
||||
|
||||
|
||||
|
||||
func _on_area_3d_mouse_exited():
|
||||
self.scale = Vector3(1,1,1)
|
||||
|
||||
@@ -2,9 +2,15 @@ extends Node3D
|
||||
|
||||
|
||||
func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
|
||||
print("scale")
|
||||
self.scale = Vector3(1.2,1.2,1.2)
|
||||
if event is InputEventMouseButton:
|
||||
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
|
||||
print("Settings")
|
||||
#TODO: Settings:
|
||||
get_tree().change_scene_to_file("res://Nodes/game.tscn")
|
||||
|
||||
|
||||
|
||||
func _on_area_3d_mouse_exited():
|
||||
self.scale = Vector3(1,1,1)
|
||||
Reference in New Issue
Block a user