35 lines
634 B
GDScript
35 lines
634 B
GDScript
extends NinePatchRect
|
|
|
|
var need_save:bool=true
|
|
func set_data(data:Dictionary):
|
|
%name.text=data["name"]
|
|
%date.text=Time.get_datetime_string_from_unix_time(data["time_unix"],true)
|
|
%place.text=Database.get_scene_name(data["now_scene"])
|
|
|
|
pass
|
|
|
|
func _ready() -> void:
|
|
if need_save:
|
|
$TextureRect3.show()
|
|
else:
|
|
$TextureRect3.hide()
|
|
|
|
signal cover
|
|
|
|
signal load
|
|
signal delete
|
|
|
|
func _on_load_pressed() -> void:
|
|
load.emit()
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_cover_pressed() -> void:
|
|
cover.emit()
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _on_delete_pressed() -> void:
|
|
delete.emit()
|
|
pass # Replace with function body.
|