1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Panels/Starter.gd
T
fallingshrimp 5efa92f5df feat(多人游戏): 添加多人游戏功能及相关UI组件
- 在WorldManager中初始化ENetMultiplayerPeer
- 移除EntityBase中冗余的peer初始化
- 添加多人游戏面板及相关输入控件
- 更新难度显示格式为范围表示
- 为主题添加LineEdit字体大小设置
2025-11-05 22:29:11 +08:00

17 lines
438 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 = "%d ∈ [%d, %d]" % [diffEdit.value, diffEdit.min_value, diffEdit.max_value]
GameRule.difficulty = diffEdit.value