mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat: 为MultiplayerState添加@tool注解并更新状态显示格式
为MultiplayerState类添加@tool注解以支持编辑器功能 在Starter面板中为连接状态文本添加"状态:"前缀
This commit is contained in:
@@ -34,5 +34,5 @@ func _physics_process(_delta):
|
||||
|
||||
func setState(state: MultiplayerState.ConnectionState):
|
||||
MultiplayerState.state = state
|
||||
connectionState.text = MultiplayerState.stateTextMap[state]
|
||||
connectionState.text = "状态:%s" % MultiplayerState.stateTextMap[state]
|
||||
connectionState.modulate = MultiplayerState.stateColorMap[state]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@tool
|
||||
class_name MultiplayerState
|
||||
|
||||
enum ConnectionState {
|
||||
|
||||
Reference in New Issue
Block a user