45 lines
1.1 KiB
GDScript
45 lines
1.1 KiB
GDScript
extends Control
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
update_currency()
|
|
Global.system_currency_changed.connect(update_currency)
|
|
pass # Replace with function body.
|
|
|
|
func update_currency():
|
|
%jifen.text=str(Global.get_currency_system(0))
|
|
%jinqian.text=str(Global.get_currency_system(1))
|
|
%zuanshi.text=str(Global.get_currency_system(2))
|
|
%tili.text=str(Global.get_currency_system(3))
|
|
pass
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
pass
|
|
|
|
|
|
func _on_new_story_pressed() -> void:
|
|
$DrawerContainer.change_open(true)
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_control_back() -> void:
|
|
$DrawerContainer.change_open(false)
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_zhaomu_pressed() -> void:
|
|
$DrawerContainer2.change_open(true)
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_character_btn_pressed() -> void:
|
|
%bag_card_drawer.change_open(true)
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_config_btn_pressed() -> void:
|
|
%config_drawer.change_open(true)
|
|
pass # Replace with function body.
|