Initial commit: Client Doc docs Server Tools

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ud18010
2026-07-10 10:24:29 +08:00
co-authored by Cursor
commit 7e35d8da31
3374 changed files with 680813 additions and 0 deletions
+121
View File
@@ -0,0 +1,121 @@
{
"schemaVersion": 1,
"prefabName": "UI_LobbyJoystick",
"prefabPath": "Assets/Game/Art/UI/Prefab/UI_LobbyJoystick.prefab",
"description": "Lobby virtual joystick HUD prefab. Runtime code attaches it to the lobby HUD canvas and refreshes the final lower-left layout from LobbyWorldController constants.",
"canvas": {
"canvasScaler": {
"referenceResolution": [2048, 1024],
"matchWidthOrHeight": 0.5
}
},
"assets": {
"sprites": {
"lobby_joystick_base": "Assets/Game/Art/UI/Texture/Common/lobby_joystick_base.png",
"lobby_joystick_ring": "Assets/Game/Art/UI/Texture/Common/lobby_joystick_ring.png",
"lobby_joystick_knob": "Assets/Game/Art/UI/Texture/Common/lobby_joystick_knob.png"
}
},
"nodes": [
{
"name": "UI_LobbyJoystick",
"parent": null,
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [0, 0],
"pivot": [0.5, 0.5],
"anchoredPosition": [208, 158],
"sizeDelta": [148, 148]
},
"components": [
{
"type": "CanvasGroup",
"alpha": 0.96,
"interactable": false,
"blocksRaycasts": false
}
]
},
{
"name": "Base",
"parent": "UI_LobbyJoystick",
"active": true,
"rect": {
"anchorMin": [0.5, 0.5],
"anchorMax": [0.5, 0.5],
"pivot": [0.5, 0.5],
"anchoredPosition": [0, 0],
"sizeDelta": [148, 148]
},
"components": [
{
"type": "Image",
"sprite": "lobby_joystick_base",
"imageType": "Simple",
"preserveAspect": true,
"raycastTarget": false,
"color": "#FFFFFFFF"
},
{
"type": "Shadow",
"effectColor": "#06101F6B",
"effectDistance": [0, -7],
"useGraphicAlpha": true
}
]
},
{
"name": "Ring",
"parent": "UI_LobbyJoystick",
"active": true,
"rect": {
"anchorMin": [0.5, 0.5],
"anchorMax": [0.5, 0.5],
"pivot": [0.5, 0.5],
"anchoredPosition": [0, 0],
"sizeDelta": [148, 148]
},
"components": [
{
"type": "Image",
"sprite": "lobby_joystick_ring",
"imageType": "Simple",
"preserveAspect": true,
"raycastTarget": false,
"color": "#FFFFFFFF"
}
]
},
{
"name": "Knob",
"parent": "UI_LobbyJoystick",
"active": true,
"rect": {
"anchorMin": [0.5, 0.5],
"anchorMax": [0.5, 0.5],
"pivot": [0.5, 0.5],
"anchoredPosition": [0, 0],
"sizeDelta": [56, 56]
},
"components": [
{
"type": "Image",
"sprite": "lobby_joystick_knob",
"imageType": "Simple",
"preserveAspect": true,
"raycastTarget": false,
"color": "#FFFFFFFF"
},
{
"type": "Shadow",
"effectColor": "#06101F5C",
"effectDistance": [0, -5],
"useGraphicAlpha": true
}
]
}
],
"bindings": [],
"events": []
}
+187
View File
@@ -0,0 +1,187 @@
{
"schemaVersion": 1,
"prefabName": "UI_MiniGameResult",
"prefabPath": "Assets/Game/Art/UI/Prefab/UI_MiniGameResult.prefab",
"description": "小游戏通用结算弹窗(胜利/失败/平局 + 比分文本 + 确定)。自带 Canvas(sortingOrder 30000)覆盖在小游戏 UI 之上;由 MiniGameHost 运行时按名绑定 Txt_Title/Txt_Message/Btn_Ok,无 MonoBehaviour 控制器。",
"canvas": {
"canvasScaler": {
"referenceResolution": [2048, 1024],
"matchWidthOrHeight": 0.5
}
},
"assets": {
"sprites": {
"ui_overlay_dim": "Assets/Game/Art/UI/Texture/Common/ui_overlay_dim.png",
"ui_panel_popup": "Assets/Game/Art/UI/Texture/Common/ui_panel_popup.png",
"btn_primary_normal": "Assets/Game/Art/UI/Texture/Common/btn_primary_normal.png",
"btn_primary_hover": "Assets/Game/Art/UI/Texture/Common/btn_primary_hover.png",
"btn_primary_pressed": "Assets/Game/Art/UI/Texture/Common/btn_primary_pressed.png",
"btn_primary_disabled": "Assets/Game/Art/UI/Texture/Common/btn_primary_disabled.png"
}
},
"nodes": [
{
"name": "UI_MiniGameResult",
"parent": null,
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [1, 1],
"offsetMin": [0, 0],
"offsetMax": [0, 0]
},
"components": [
{
"type": "Canvas",
"sortingOrder": 30000
},
{
"type": "CanvasScaler",
"referenceResolution": [2048, 1024],
"matchWidthOrHeight": 0.5
},
{
"type": "GraphicRaycaster"
}
]
},
{
"name": "Img_Mask",
"parent": "UI_MiniGameResult",
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [1, 1],
"offsetMin": [0, 0],
"offsetMax": [0, 0]
},
"components": [
{
"type": "Image",
"sprite": "ui_overlay_dim",
"imageType": "Simple",
"raycastTarget": true,
"color": "#FFFFFFFF"
}
]
},
{
"name": "Panel",
"parent": "Img_Mask",
"active": true,
"rect": {
"anchorMin": [0.5, 0.5],
"anchorMax": [0.5, 0.5],
"pivot": [0.5, 0.5],
"anchoredPosition": [0, 0],
"sizeDelta": [680, 420]
},
"components": [
{
"type": "Image",
"sprite": "ui_panel_popup",
"imageType": "Sliced",
"raycastTarget": true,
"color": "#FFFFFFFF"
}
]
},
{
"name": "Txt_Title",
"parent": "Panel",
"active": true,
"rect": {
"anchorMin": [0, 1],
"anchorMax": [1, 1],
"pivot": [0.5, 1],
"anchoredPosition": [0, -72],
"sizeDelta": [-96, 76]
},
"components": [
{
"type": "TextMeshProUGUI",
"text": "游戏结束",
"fontSize": 52,
"fontStyle": "Bold",
"alignment": "Center",
"color": "#102033FF"
}
]
},
{
"name": "Txt_Message",
"parent": "Panel",
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [1, 1],
"pivot": [0.5, 0.5],
"anchoredPosition": [0, -14],
"sizeDelta": [-112, -240]
},
"components": [
{
"type": "TextMeshProUGUI",
"text": "",
"fontSize": 34,
"alignment": "Center",
"color": "#2F4256FF"
}
]
},
{
"name": "Btn_Ok",
"parent": "Panel",
"active": true,
"rect": {
"anchorMin": [0.5, 0],
"anchorMax": [0.5, 0],
"pivot": [0.5, 0],
"anchoredPosition": [0, 44],
"sizeDelta": [240, 84]
},
"components": [
{
"type": "Image",
"sprite": "btn_primary_normal",
"imageType": "Sliced",
"raycastTarget": true,
"color": "#FFFFFFFF"
},
{
"type": "Button",
"transition": "SpriteSwap",
"spriteHighlighted": "btn_primary_hover",
"spritePressed": "btn_primary_pressed",
"spriteDisabled": "btn_primary_disabled",
"onClick": "MiniGame.ResultConfirm"
}
]
},
{
"name": "Txt_Ok",
"parent": "Btn_Ok",
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [1, 1],
"offsetMin": [0, 0],
"offsetMax": [0, 0]
},
"components": [
{
"type": "TextMeshProUGUI",
"text": "确定",
"fontSize": 36,
"fontStyle": "Bold",
"alignment": "Center",
"color": "#1F3A0EFF"
}
]
}
],
"bindings": ["Txt_Title", "Txt_Message"],
"events": [
{ "name": "MiniGame.ResultConfirm", "node": "Btn_Ok" }
]
}