extends CanvasLayer const TEXT = preload("res://addons/popupwindow/pre/text.tscn") func pop_up_control(control:Control,pos:Vector2): for i in %Container.get_children(): i.queue_free() %Container.add_child(control) %Container.put_pos=pos %Container.show() pass func pop_up_text(text:String,pos:Vector2,H_limit:float,label_settings:LabelSettings=LabelSettings.new()): var new_text=TEXT.instantiate() new_text.custom_minimum_size.x=H_limit pop_up_control(new_text,pos) new_text.set_label(label_settings) new_text.set_mes(text) %Container.show() pass