mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
17 lines
386 B
GDScript
17 lines
386 B
GDScript
|
|
@tool
|
||
|
|
extends FullscreenPanelBase
|
||
|
|
|
||
|
|
@onready var diffEdit: HSlider = $"%diffEdit"
|
||
|
|
@onready var startBtn: Button = $"%startBtn"
|
||
|
|
@onready var levelShow: Label = $"%levelShow"
|
||
|
|
|
||
|
|
func _ready():
|
||
|
|
startBtn.pressed.connect(
|
||
|
|
func():
|
||
|
|
Wave.next()
|
||
|
|
UIState.closeCurrentPanel()
|
||
|
|
)
|
||
|
|
func _physics_process(_delta):
|
||
|
|
levelShow.text = "%s/10" % diffEdit.value
|
||
|
|
GameRule.difficulty = diffEdit.value
|