2024-05-06 17:28:42 +08:00
|
|
|
extends VBoxContainer
|
|
|
|
|
2024-05-13 15:44:09 +08:00
|
|
|
##是否允许操作
|
|
|
|
var allowHandle :bool = true
|
|
|
|
|
2024-05-06 17:28:42 +08:00
|
|
|
enum ButtonType{
|
|
|
|
green,# 绿色按钮
|
|
|
|
red,#红色按钮
|
|
|
|
black,#黑色按钮
|
|
|
|
}
|
|
|
|
|
|
|
|
@export var buttonType:ButtonType
|
|
|
|
|
|
|
|
@export var buttonText:String
|
|
|
|
|
|
|
|
signal clickButtonSignal(click:bool,button)
|
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
$Button/MarginContainer/Label.text=buttonText
|