PopochiuPopup

Extends: Control

Description

Property Descriptions

closes_by_clicking_out

@export var closes_by_clicking_out: bool = true

script_name

@export var script_name: StringName = ""

title

@export var title: String = ""
  • Setter: @title_setter

lbl_title

var lbl_title: Label

btn_ok

var btn_ok: Button

btn_cancel

var btn_cancel: Button

btn_close

var btn_close: TextureButton

Method Descriptions

open

func open() -> void

Shows the popup scaling it and blocking interactions with the graphic interface.

close

func close() -> void

Closes the popup unlocking interactions with the graphic interface.

on_ok_pressed

func on_ok_pressed() -> void

Called when the OK button is pressed. It closes the popup afterwards.

on_cancel_pressed

func on_cancel_pressed() -> void

Called when the CANCEL button is pressed. It closes the popup afterwards.

on_close_pressed

func on_close_pressed() -> void

Called when the X (top-right corner) button is pressed. It closes the popup afterwards.

set_title

func set_title(value: String) -> void