ajout d'une gui en 3d, d'un tuto et correction de bug à la pelletée
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
@tool
|
||||
extends HBoxContainer
|
||||
extends MarginContainer
|
||||
class_name EnergyInfo
|
||||
|
||||
@export var wanted_energy = 0
|
||||
@@ -13,7 +13,7 @@ var max_energy := 0
|
||||
func update(
|
||||
_energy : int,
|
||||
_max_energy : int,
|
||||
with_animation := true,
|
||||
_with_animation := true,
|
||||
):
|
||||
var changed = (energy != _energy or max_energy != _max_energy)
|
||||
if changed:
|
||||
@@ -24,4 +24,4 @@ func update(
|
||||
# if with_animation:
|
||||
# %EnergyAnimationPlayer.bounce()
|
||||
%EnergyCount.text = energy_count_text
|
||||
modulate = Color.WHITE if energy > 0 else Color.RED
|
||||
%EnergyCount.modulate = Color.WHITE if energy > 0 else Color.RED
|
||||
Reference in New Issue
Block a user