New items + base typing + price generation + new menu template
This commit is contained in:
parent
ff19560f0b
commit
50be4a0bb2
20 changed files with 408 additions and 37 deletions
|
|
@ -13,7 +13,7 @@ var color_enemy
|
|||
@export var map_width = 8192
|
||||
@export var map_height = 8192
|
||||
@onready var ship = $MainShip
|
||||
@onready var base = $StarterBase
|
||||
@onready var bases = $Bases
|
||||
@onready var enemy_faction = $EnemyFaction
|
||||
|
||||
func _ready():
|
||||
|
|
@ -63,22 +63,29 @@ func _process(_delta):
|
|||
pause()
|
||||
|
||||
func pause():
|
||||
var menu = get_node_or_null("MainShip/GUI/BaseMenu")
|
||||
if menu != null:
|
||||
menu.visible = false
|
||||
get_tree().paused = true
|
||||
ship.pause_controller.visible = true
|
||||
|
||||
func unpause():
|
||||
get_tree().paused = false
|
||||
ship.pause_controller.visible = false
|
||||
var menu = get_node_or_null("MainShip/GUI/BaseMenu")
|
||||
if menu != null:
|
||||
menu.visible = true
|
||||
|
||||
func recolor():
|
||||
color_player = Color.from_hsv(randf(), randf_range(0.8, 1), randf_range(0.8, 1))
|
||||
color_base = Color.from_hsv(randf(), randf_range(0.8, 1), randf_range(0.8, 1))
|
||||
color_enemy = Color.from_hsv(randf(), randf_range(0.8, 1), randf_range(0.8, 1))
|
||||
ship.modulate = color_player
|
||||
base.modulate = color_base
|
||||
bases.modulate = color_base
|
||||
enemy_faction.modulate = color_enemy
|
||||
enemy_faction.changeitemscolor()
|
||||
bases.changeitemscolor()
|
||||
ship.changeinterfacecolor()
|
||||
var menu = get_node_or_null("MainShip/GUI/StarterBaseMenu")
|
||||
if menu != null:
|
||||
menu.modulate = base.modulate
|
||||
menu.modulate = bases.modulate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue