mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
5efa92f5df
- 在WorldManager中初始化ENetMultiplayerPeer - 移除EntityBase中冗余的peer初始化 - 添加多人游戏面板及相关输入控件 - 更新难度显示格式为范围表示 - 为主题添加LineEdit字体大小设置
17 lines
438 B
GDScript
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
|