2026-07-28 16:29:02 -04:00
|
|
|
class_name BubbleStatusBubble
|
|
|
|
|
extends PanelContainer
|
|
|
|
|
|
|
|
|
|
@export var profile: BubbleMenuProfile
|
|
|
|
|
|
|
|
|
|
@onready var _heading: Label = %Heading
|
|
|
|
|
@onready var _value: Label = %Value
|
2026-08-13 14:53:39 -04:00
|
|
|
@onready var _currency_icon: TextureRect = %CurrencyIcon
|
2026-07-28 16:29:02 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
|
mouse_filter = Control.MOUSE_FILTER_IGNORE
|
|
|
|
|
if profile != null:
|
|
|
|
|
add_theme_stylebox_override("panel", profile.make_normal_style())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func set_content(heading: String, value: String) -> void:
|
|
|
|
|
_heading.text = heading
|
|
|
|
|
_value.text = value
|
2026-08-13 14:53:39 -04:00
|
|
|
_currency_icon.visible = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func set_currency_amount(heading: String, amount: int) -> void:
|
|
|
|
|
_heading.text = heading
|
|
|
|
|
_value.text = str(amount)
|
|
|
|
|
_currency_icon.visible = true
|