style!
This commit is contained in:
parent
356b0a92e6
commit
902024fc3f
19 changed files with 272 additions and 10 deletions
|
|
@ -8,6 +8,7 @@ var block_moving = false
|
|||
@export var room_button : Button
|
||||
var current_location : Location
|
||||
@export var move_blocker_panel : PanelContainer
|
||||
@export var selection_indicator : Panel
|
||||
|
||||
enum Location{
|
||||
ewaste,
|
||||
|
|
@ -42,18 +43,24 @@ func _process(delta: float) -> void:
|
|||
room_button.self_modulate = normal_color
|
||||
|
||||
func goto_ewaste():
|
||||
selection_indicator.reparent(ewaste_button)
|
||||
selection_indicator.position = Vector2(0,0)
|
||||
if current_location == Location.ewaste:
|
||||
return
|
||||
current_location = Location.ewaste
|
||||
get_tree().change_scene_to_file("res://scenes/ewaste.tscn")
|
||||
|
||||
func goto_workshop():
|
||||
if current_location == Location.workshop:
|
||||
return
|
||||
selection_indicator.reparent(workshop_button)
|
||||
selection_indicator.position = Vector2(0,0)
|
||||
#if current_location == Location.workshop:
|
||||
#return
|
||||
current_location = Location.workshop
|
||||
get_tree().change_scene_to_file("res://scenes/workshop.tscn")
|
||||
|
||||
func goto_room():
|
||||
selection_indicator.reparent(room_button)
|
||||
selection_indicator.position = Vector2(0,0)
|
||||
if current_location == Location.room:
|
||||
return
|
||||
current_location = Location.room
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue