-
-
Notifications
You must be signed in to change notification settings - Fork 107
Token
Divided by Zer0 edited this page Nov 24, 2020
·
9 revisions
Extends: HBoxContainer
The token class is controlling the creation of new tokens as well as the control of their counter
export var count: int = 1
-
Setter:
set_count
-
Getter:
get_count
var count_label
func setup(token_name: String) -> void
Initializes the token with the right texture and name based on the values in the configuration
func set_count(value: int = 1) -> void
Sets the token counter to the specified value
func get_count() -> int
Returns the amount of tokens of this type
func expand() -> void
Reveals the Name label.
Used when the token drawer is expanded
func retract() -> void
Hides the Name label.
Used when the token drawer is withdrawn