prog
This commit is contained in:
13
addons/madtalk/components/BtnTip.gd
Normal file
13
addons/madtalk/components/BtnTip.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
@tool
|
||||
extends Button
|
||||
|
||||
@export var tip_title: String = ""
|
||||
@export_multiline var tip_text: String = "" # (String, MULTILINE)
|
||||
|
||||
@onready var tip_dialog = get_node("TipDialog")
|
||||
|
||||
|
||||
func _on_BtnTip_pressed():
|
||||
tip_dialog.title = tip_title
|
||||
tip_dialog.dialog_text = tip_text
|
||||
tip_dialog.popup_centered()
|
Reference in New Issue
Block a user