Skip to content

PopochiuDialogOption

Carenalga edited this page Nov 28, 2022 · 2 revisions

Description

Inherits Resource.

Class for manipulating a single dialog option.

Properties

Export

  • always_on bool. Default false. Whether this option should be rendered always as not already selected.
  • disabled bool. Default false. Whether this option is disabled. If true, the option won´t be rendered.
  • id String. Default ''. The identifier of the option used in scripts.
  • text String. Default ''. The text to show on screen for the option.
  • visible bool. Default true. Whether this option is visible.

Public

  • used bool. Default false. Whether the option was already selected. If true, then the option's text will be shown darker in the options menu so players know they already clicked that option.
  • used_times int. Default 0. The number of times this options has been clicked.

Private

Nothing here yet.

Methods

Virtual

Nothing here yet.

Public

  • turn_off() void

    Makes the option invisible.

  • turn_off_forever() void

    Disables the option.

  • turn_on() void

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

Set and get

  • set_id( String value ) void

    Sets value to the id, script_name and resource_name properties.

Private

Nothing here yet.

Clone this wiki locally