19 lines
530 B
GDScript
19 lines
530 B
GDScript
extends Control
|
|
|
|
const POINTS_SETTLEMENT_MONO = preload("res://scene/points_settlement_mono.tscn")
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
|
|
func show_mes(data:Dictionary):
|
|
for i in %mono_add_pos.get_children():
|
|
i.queue_free()
|
|
for i in data.keys():
|
|
var new_mono=POINTS_SETTLEMENT_MONO.instantiate()
|
|
%mono_add_pos.add_child(new_mono)
|
|
new_mono.set_data(i,str(data[i]))
|
|
|
|
|
|
func _on_accept_pressed() -> void:
|
|
SceneManager.change_scene_to("res://scene/main.tscn")
|
|
pass # Replace with function body.
|