feat: HUD 重构与主题资源——灵米显示、新布局、标签描边阴影、按钮/菜单主题

This commit is contained in:
2026-08-08 23:22:28 +08:00
parent 543af0a4ff
commit c9af0f608e
12 changed files with 460 additions and 127 deletions
+10
View File
@@ -3,9 +3,11 @@ extends Node
signal spirit_stones_changed(new_value: int, delta: int)
signal reputation_changed(new_value: int, delta: int)
signal food_changed(new_value: int, delta: int)
var spirit_stones := 0 # 灵石
var reputation := 0 # 声望
var food := 0 # 灵米(食物资源,HUD 显示"灵米"
func add_spirit_stones(amount: int) -> void:
@@ -23,3 +25,11 @@ func add_reputation(amount: int) -> void:
func remove_reputation(amount: int) -> void:
reputation -= amount
emit_signal("reputation_changed", reputation, -amount)
func add_food(amount: int) -> void:
food += amount
emit_signal("food_changed", food, amount)
func remove_food(amount: int) -> void:
food -= amount
emit_signal("food_changed", food, -amount)