PopochiuDialogOption - carenalgas/popochiu GitHub Wiki
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. Iftrue, 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. Iftrue, then the option'stextwill 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) voidSets
valueto theid,script_nameandresource_nameproperties.
Private
Nothing here yet.