PopochiuDialogOption

Extends: Resource

Description

Property Descriptions

id

@export var id: String = ""
  • Setter: @id_setter

The identifier of the option. Use it when scripting.

text

@export var text: String = ""

The text to show on screen for the option.

visible

@export var visible: bool = true

Whether this option is visible.

disabled

@export var disabled: bool = false

Whether this option is disabled. If [code]true[/code], the option won´t be rendered.

always_on

@export var always_on: bool = false

Whether this option should be [b]always[/b] rendered as not previously selected.

script_name

var script_name: String = ""

Stores the same value of the [member id] property.

used

var used: bool = false

Whether the option was already been selected. If [code]true[/code], then the option's [member text] will be shown different in the options menu, so players know they already clicked the option.

used_times

var used_times: int = 0

The number of times this options has been clicked.

Method Descriptions

turn_on

func turn_on() -> void

Makes the option visible. Won´t work if the option is [member disabled].

turn_off

func turn_off() -> void

Makes the option invisible.

turn_off_forever

func turn_off_forever() -> void

Disables the option by making [member disable] [code]true[/code].

set_id

func set_id(value: String) -> void