monotony Help

Action

Choices players can make.

Variables

Name

Type

Description

text_node_path

NodePath

NodePath for the text once attached to aspect2d

button

DirectButton

The button for the action

player

Player

Player object

text_node

TextNode

TextNode that will be used with the button

Functions

Name

Description

create_button

Creates the DirectButton and text_node_path

destroy_button

Destroys button

command

Returns Boolean of if the player is able to do actions

set_pos

Sets the position of button

multiply_scale(multiple)

Multiplies button's scale by multiple

add_log(text)

Action will add to the log

disable_button

Disables button

enable_button

Enables button

Last modified: 31 December 2024