prog
This commit is contained in:
12
addons/madtalk/components/DialogNodeItem_option.gd
Normal file
12
addons/madtalk/components/DialogNodeItem_option.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
@tool
|
||||
extends Control
|
||||
class_name DialogNodeItem_option
|
||||
|
||||
@export var text: String = "": set = text_set
|
||||
|
||||
func text_set(value: String) -> void:
|
||||
text = value
|
||||
get_node("OptionLabel").text = value
|
||||
|
||||
func set_conditional(is_conditional: bool) -> void:
|
||||
get_node("Condition").visible = is_conditional
|
Reference in New Issue
Block a user