Add player profile system
This commit is contained in:
@@ -0,0 +1,263 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"prefabName": "UI_PlayerProfileHud",
|
||||
"prefabPath": "Assets/Game/Art/UI/Prefab/UI_PlayerProfileHud.prefab",
|
||||
"description": "HUD layer player profile entry for lobby and mini games. Runtime PlayerProfileModule binds Btn_Profile/Txt_Nickname/Txt_Level/Txt_Exp/Img_ExpBg/Img_ExpFill and opens the detail panel on click.",
|
||||
"canvas": {
|
||||
"canvasScaler": {
|
||||
"referenceResolution": [2048, 1024],
|
||||
"matchWidthOrHeight": 0.5
|
||||
}
|
||||
},
|
||||
"assets": {
|
||||
"sprites": {
|
||||
"ui_panel_content": "Assets/Game/Art/UI/Texture/Common/ui_panel_content.png",
|
||||
"avatar_frame": "Assets/Game/Art/UI/Texture/Common/avatar_frame.png",
|
||||
"ico_user": "Assets/Game/Art/UI/Texture/Common/ico_user.png",
|
||||
"ui_badge_base": "Assets/Game/Art/UI/Texture/Common/ui_badge_base.png",
|
||||
"progress_bg": "Assets/Game/Art/UI/Texture/Common/progress_bg.png",
|
||||
"progress_fill_green": "Assets/Game/Art/UI/Texture/Common/progress_fill_green.png"
|
||||
}
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"name": "UI_PlayerProfileHud",
|
||||
"parent": null,
|
||||
"active": true,
|
||||
"rect": {
|
||||
"anchorMin": [0, 1],
|
||||
"anchorMax": [0, 1],
|
||||
"pivot": [0, 1],
|
||||
"anchoredPosition": [24, -24],
|
||||
"sizeDelta": [424, 136]
|
||||
},
|
||||
"components": [
|
||||
{
|
||||
"type": "CanvasGroup",
|
||||
"alpha": 0.98,
|
||||
"interactable": true,
|
||||
"blocksRaycasts": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Btn_Profile",
|
||||
"parent": "UI_PlayerProfileHud",
|
||||
"active": true,
|
||||
"rect": {
|
||||
"anchorMin": [0, 0],
|
||||
"anchorMax": [1, 1],
|
||||
"offsetMin": [0, 0],
|
||||
"offsetMax": [0, 0]
|
||||
},
|
||||
"components": [
|
||||
{
|
||||
"type": "Image",
|
||||
"sprite": "ui_panel_content",
|
||||
"imageType": "Sliced",
|
||||
"raycastTarget": true,
|
||||
"color": "#FFFFFFFF"
|
||||
},
|
||||
{
|
||||
"type": "Button",
|
||||
"onClick": "PlayerProfile.OpenDetail"
|
||||
},
|
||||
{
|
||||
"type": "Shadow",
|
||||
"effectColor": "#06101F66",
|
||||
"effectDistance": [0, -6],
|
||||
"useGraphicAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Img_AvatarFrame",
|
||||
"parent": "Btn_Profile",
|
||||
"active": true,
|
||||
"rect": {
|
||||
"anchorMin": [0, 0.5],
|
||||
"anchorMax": [0, 0.5],
|
||||
"pivot": [0.5, 0.5],
|
||||
"anchoredPosition": [68, 0],
|
||||
"sizeDelta": [96, 96]
|
||||
},
|
||||
"components": [
|
||||
{
|
||||
"type": "Image",
|
||||
"sprite": "avatar_frame",
|
||||
"imageType": "Sliced",
|
||||
"raycastTarget": false,
|
||||
"color": "#FFFFFFFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Img_AvatarIcon",
|
||||
"parent": "Img_AvatarFrame",
|
||||
"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": "ico_user",
|
||||
"imageType": "Simple",
|
||||
"preserveAspect": true,
|
||||
"raycastTarget": false,
|
||||
"color": "#FFFFFFFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Txt_Nickname",
|
||||
"parent": "Btn_Profile",
|
||||
"active": true,
|
||||
"rect": {
|
||||
"anchorMin": [0, 1],
|
||||
"anchorMax": [0, 1],
|
||||
"pivot": [0, 1],
|
||||
"anchoredPosition": [132, -22],
|
||||
"sizeDelta": [188, 34]
|
||||
},
|
||||
"components": [
|
||||
{
|
||||
"type": "TextMeshProUGUI",
|
||||
"text": "Player",
|
||||
"fontSize": 26,
|
||||
"fontStyle": "Bold",
|
||||
"alignment": "Left",
|
||||
"color": "#33405EFF",
|
||||
"raycastTarget": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Badge_Level",
|
||||
"parent": "Btn_Profile",
|
||||
"active": true,
|
||||
"rect": {
|
||||
"anchorMin": [1, 1],
|
||||
"anchorMax": [1, 1],
|
||||
"pivot": [1, 1],
|
||||
"anchoredPosition": [-22, -18],
|
||||
"sizeDelta": [74, 38]
|
||||
},
|
||||
"components": [
|
||||
{
|
||||
"type": "Image",
|
||||
"sprite": "ui_badge_base",
|
||||
"imageType": "Sliced",
|
||||
"raycastTarget": false,
|
||||
"color": "#FFFFFFFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Txt_Level",
|
||||
"parent": "Badge_Level",
|
||||
"active": true,
|
||||
"rect": {
|
||||
"anchorMin": [0, 0],
|
||||
"anchorMax": [1, 1],
|
||||
"offsetMin": [0, 0],
|
||||
"offsetMax": [0, 0]
|
||||
},
|
||||
"components": [
|
||||
{
|
||||
"type": "TextMeshProUGUI",
|
||||
"text": "Lv.1",
|
||||
"fontSize": 20,
|
||||
"fontStyle": "Bold",
|
||||
"alignment": "Center",
|
||||
"color": "#F6F8FFFF",
|
||||
"raycastTarget": false
|
||||
},
|
||||
{
|
||||
"type": "Outline",
|
||||
"effectColor": "#102033CC",
|
||||
"effectDistance": [1, -1],
|
||||
"useGraphicAlpha": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Img_ExpBg",
|
||||
"parent": "Btn_Profile",
|
||||
"active": true,
|
||||
"rect": {
|
||||
"anchorMin": [0, 0],
|
||||
"anchorMax": [1, 0],
|
||||
"pivot": [0.5, 0],
|
||||
"anchoredPosition": [66, 26],
|
||||
"sizeDelta": [-170, 28]
|
||||
},
|
||||
"components": [
|
||||
{
|
||||
"type": "Image",
|
||||
"sprite": "progress_bg",
|
||||
"imageType": "Sliced",
|
||||
"raycastTarget": false,
|
||||
"color": "#FFFFFFFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Img_ExpFill",
|
||||
"parent": "Img_ExpBg",
|
||||
"active": true,
|
||||
"rect": {
|
||||
"anchorMin": [0, 0.5],
|
||||
"anchorMax": [0, 0.5],
|
||||
"pivot": [0, 0.5],
|
||||
"anchoredPosition": [0, 0],
|
||||
"sizeDelta": [1, 22]
|
||||
},
|
||||
"components": [
|
||||
{
|
||||
"type": "Image",
|
||||
"sprite": "progress_fill_green",
|
||||
"imageType": "Sliced",
|
||||
"raycastTarget": false,
|
||||
"color": "#FFFFFFFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Txt_Exp",
|
||||
"parent": "Img_ExpBg",
|
||||
"active": true,
|
||||
"rect": {
|
||||
"anchorMin": [0, 0],
|
||||
"anchorMax": [1, 1],
|
||||
"offsetMin": [0, 0],
|
||||
"offsetMax": [0, 0]
|
||||
},
|
||||
"components": [
|
||||
{
|
||||
"type": "TextMeshProUGUI",
|
||||
"text": "0/100",
|
||||
"fontSize": 18,
|
||||
"fontStyle": "Bold",
|
||||
"alignment": "Center",
|
||||
"color": "#F6F8FFFF",
|
||||
"raycastTarget": false
|
||||
},
|
||||
{
|
||||
"type": "Outline",
|
||||
"effectColor": "#102033CC",
|
||||
"effectDistance": [1, -1],
|
||||
"useGraphicAlpha": true
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"bindings": ["Btn_Profile", "Txt_Nickname", "Txt_Level", "Txt_Exp", "Img_ExpBg", "Img_ExpFill"],
|
||||
"events": [
|
||||
{ "name": "PlayerProfile.OpenDetail", "node": "Btn_Profile" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"prefabName": "UI_PlayerProfilePanel",
|
||||
"prefabPath": "Assets/Game/Art/UI/Prefab/UI_PlayerProfilePanel.prefab",
|
||||
"description": "Dialog layer player profile detail panel. Runtime PlayerProfileModule binds all Txt_* values and Btn_Close/Img_Mask close actions.",
|
||||
"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",
|
||||
"ui_panel_header": "Assets/Game/Art/UI/Texture/Common/ui_panel_header.png",
|
||||
"ui_panel_content": "Assets/Game/Art/UI/Texture/Common/ui_panel_content.png",
|
||||
"ui_list_item_normal": "Assets/Game/Art/UI/Texture/Common/ui_list_item_normal.png",
|
||||
"avatar_frame": "Assets/Game/Art/UI/Texture/Common/avatar_frame.png",
|
||||
"btn_close": "Assets/Game/Art/UI/Texture/Common/btn_close.png",
|
||||
"ico_user": "Assets/Game/Art/UI/Texture/Common/ico_user.png",
|
||||
"ico_coin": "Assets/Game/Art/UI/Texture/Common/ico_coin.png",
|
||||
"ico_diamond": "Assets/Game/Art/UI/Texture/Common/ico_diamond.png"
|
||||
}
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"name": "UI_PlayerProfilePanel",
|
||||
"parent": null,
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [0, 0] },
|
||||
"components": []
|
||||
},
|
||||
{
|
||||
"name": "Img_Mask",
|
||||
"parent": "UI_PlayerProfilePanel",
|
||||
"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" },
|
||||
{ "type": "Button", "onClick": "PlayerProfile.CloseDetail" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Panel_Profile",
|
||||
"parent": "UI_PlayerProfilePanel",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0.5, 0.5], "anchorMax": [0.5, 0.5], "pivot": [0.5, 0.5], "anchoredPosition": [0, 0], "sizeDelta": [780, 740] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "ui_panel_popup", "imageType": "Sliced", "raycastTarget": true, "color": "#FFFFFFFF" },
|
||||
{ "type": "Shadow", "effectColor": "#06101F80", "effectDistance": [0, -8], "useGraphicAlpha": true }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Img_Header",
|
||||
"parent": "Panel_Profile",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 1], "anchorMax": [1, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -22], "sizeDelta": [-54, 82] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "ui_panel_header", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Txt_Title",
|
||||
"parent": "Img_Header",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [0, 0] },
|
||||
"components": [
|
||||
{ "type": "TextMeshProUGUI", "text": "Role Profile", "fontSize": 38, "fontStyle": "Bold", "alignment": "Center", "color": "#F6F8FFFF", "raycastTarget": false },
|
||||
{ "type": "Outline", "effectColor": "#102033CC", "effectDistance": [1, -1], "useGraphicAlpha": true }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Btn_Close",
|
||||
"parent": "Panel_Profile",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [1, 1], "anchorMax": [1, 1], "pivot": [0.5, 0.5], "anchoredPosition": [-38, -36], "sizeDelta": [64, 64] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "btn_close", "imageType": "Simple", "preserveAspect": true, "raycastTarget": true, "color": "#FFFFFFFF" },
|
||||
{ "type": "Button", "onClick": "PlayerProfile.CloseDetail" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Panel_Identity",
|
||||
"parent": "Panel_Profile",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 1], "anchorMax": [1, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -124], "sizeDelta": [-64, 164] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "ui_panel_content", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Img_AvatarFrame",
|
||||
"parent": "Panel_Identity",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 0.5], "anchorMax": [0, 0.5], "pivot": [0.5, 0.5], "anchoredPosition": [86, 0], "sizeDelta": [112, 112] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "avatar_frame", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Img_AvatarIcon",
|
||||
"parent": "Img_AvatarFrame",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0.5, 0.5], "anchorMax": [0.5, 0.5], "pivot": [0.5, 0.5], "anchoredPosition": [0, 0], "sizeDelta": [64, 64] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "ico_user", "imageType": "Simple", "preserveAspect": true, "raycastTarget": false, "color": "#FFFFFFFF" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Txt_Nickname",
|
||||
"parent": "Panel_Identity",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 1], "anchorMax": [0, 1], "pivot": [0, 1], "anchoredPosition": [164, -32], "sizeDelta": [330, 44] },
|
||||
"components": [
|
||||
{ "type": "TextMeshProUGUI", "text": "Player", "fontSize": 34, "fontStyle": "Bold", "alignment": "Left", "color": "#33405EFF", "raycastTarget": false }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Txt_Uid",
|
||||
"parent": "Panel_Identity",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 1], "anchorMax": [0, 1], "pivot": [0, 1], "anchoredPosition": [166, -82], "sizeDelta": [280, 30] },
|
||||
"components": [
|
||||
{ "type": "TextMeshProUGUI", "text": "UID: 0", "fontSize": 22, "alignment": "Left", "color": "#5A4632FF", "raycastTarget": false }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Txt_RoleType",
|
||||
"parent": "Panel_Identity",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [1, 1], "anchorMax": [1, 1], "pivot": [1, 1], "anchoredPosition": [-34, -44], "sizeDelta": [180, 38] },
|
||||
"components": [
|
||||
{ "type": "TextMeshProUGUI", "text": "Adventurer", "fontSize": 26, "fontStyle": "Bold", "alignment": "Right", "color": "#1E84C8FF", "raycastTarget": false }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Panel_Currencies",
|
||||
"parent": "Panel_Profile",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 1], "anchorMax": [1, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -306], "sizeDelta": [-64, 72] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "ui_panel_content", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Img_GoldIcon",
|
||||
"parent": "Panel_Currencies",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 0.5], "anchorMax": [0, 0.5], "pivot": [0.5, 0.5], "anchoredPosition": [58, 0], "sizeDelta": [48, 48] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "ico_coin", "imageType": "Simple", "preserveAspect": true, "raycastTarget": false, "color": "#FFFFFFFF" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Txt_Gold",
|
||||
"parent": "Panel_Currencies",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 0], "anchorMax": [0.5, 1], "offsetMin": [96, 0], "offsetMax": [-18, 0] },
|
||||
"components": [
|
||||
{ "type": "TextMeshProUGUI", "text": "0", "fontSize": 28, "fontStyle": "Bold", "alignment": "Left", "color": "#C88010FF", "raycastTarget": false }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Img_DiamondIcon",
|
||||
"parent": "Panel_Currencies",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0.5, 0.5], "anchorMax": [0.5, 0.5], "pivot": [0.5, 0.5], "anchoredPosition": [56, 0], "sizeDelta": [48, 48] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "ico_diamond", "imageType": "Simple", "preserveAspect": true, "raycastTarget": false, "color": "#FFFFFFFF" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Txt_Diamond",
|
||||
"parent": "Panel_Currencies",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0.5, 0], "anchorMax": [1, 1], "offsetMin": [96, 0], "offsetMax": [-24, 0] },
|
||||
"components": [
|
||||
{ "type": "TextMeshProUGUI", "text": "0", "fontSize": 28, "fontStyle": "Bold", "alignment": "Left", "color": "#1E84C8FF", "raycastTarget": false }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Panel_Stats",
|
||||
"parent": "Panel_Profile",
|
||||
"active": true,
|
||||
"rect": { "anchorMin": [0, 0], "anchorMax": [1, 1], "offsetMin": [32, 34], "offsetMax": [-32, -402] },
|
||||
"components": [
|
||||
{ "type": "Image", "sprite": "ui_panel_content", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }
|
||||
]
|
||||
},
|
||||
{ "name": "Row_Lv", "parent": "Panel_Stats", "active": true, "rect": { "anchorMin": [0, 1], "anchorMax": [0.5, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -22], "sizeDelta": [-28, 52] }, "components": [{ "type": "Image", "sprite": "ui_list_item_normal", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }] },
|
||||
{ "name": "Txt_LabelLv", "parent": "Row_Lv", "active": true, "rect": { "anchorMin": [0, 0], "anchorMax": [0.55, 1], "offsetMin": [20, 0], "offsetMax": [0, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "Level", "fontSize": 24, "alignment": "Left", "color": "#5A4632FF", "raycastTarget": false }] },
|
||||
{ "name": "Txt_Lv", "parent": "Row_Lv", "active": true, "rect": { "anchorMin": [0.55, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [-18, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "1", "fontSize": 24, "fontStyle": "Bold", "alignment": "Right", "color": "#33405EFF", "raycastTarget": false }] },
|
||||
{ "name": "Row_Exp", "parent": "Panel_Stats", "active": true, "rect": { "anchorMin": [0.5, 1], "anchorMax": [1, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -22], "sizeDelta": [-28, 52] }, "components": [{ "type": "Image", "sprite": "ui_list_item_normal", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }] },
|
||||
{ "name": "Txt_LabelExp", "parent": "Row_Exp", "active": true, "rect": { "anchorMin": [0, 0], "anchorMax": [0.45, 1], "offsetMin": [20, 0], "offsetMax": [0, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "Exp", "fontSize": 24, "alignment": "Left", "color": "#5A4632FF", "raycastTarget": false }] },
|
||||
{ "name": "Txt_Exp", "parent": "Row_Exp", "active": true, "rect": { "anchorMin": [0.45, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [-18, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "0/100", "fontSize": 24, "fontStyle": "Bold", "alignment": "Right", "color": "#33405EFF", "raycastTarget": false }] },
|
||||
{ "name": "Row_Hp", "parent": "Panel_Stats", "active": true, "rect": { "anchorMin": [0, 1], "anchorMax": [0.5, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -90], "sizeDelta": [-28, 52] }, "components": [{ "type": "Image", "sprite": "ui_list_item_normal", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }] },
|
||||
{ "name": "Txt_LabelHp", "parent": "Row_Hp", "active": true, "rect": { "anchorMin": [0, 0], "anchorMax": [0.45, 1], "offsetMin": [20, 0], "offsetMax": [0, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "HP", "fontSize": 24, "alignment": "Left", "color": "#5A4632FF", "raycastTarget": false }] },
|
||||
{ "name": "Txt_Hp", "parent": "Row_Hp", "active": true, "rect": { "anchorMin": [0.45, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [-18, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "100/100", "fontSize": 24, "fontStyle": "Bold", "alignment": "Right", "color": "#D63333FF", "raycastTarget": false }] },
|
||||
{ "name": "Row_Mp", "parent": "Panel_Stats", "active": true, "rect": { "anchorMin": [0.5, 1], "anchorMax": [1, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -90], "sizeDelta": [-28, 52] }, "components": [{ "type": "Image", "sprite": "ui_list_item_normal", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }] },
|
||||
{ "name": "Txt_LabelMp", "parent": "Row_Mp", "active": true, "rect": { "anchorMin": [0, 0], "anchorMax": [0.45, 1], "offsetMin": [20, 0], "offsetMax": [0, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "MP", "fontSize": 24, "alignment": "Left", "color": "#5A4632FF", "raycastTarget": false }] },
|
||||
{ "name": "Txt_Mp", "parent": "Row_Mp", "active": true, "rect": { "anchorMin": [0.45, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [-18, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "50/50", "fontSize": 24, "fontStyle": "Bold", "alignment": "Right", "color": "#1E84C8FF", "raycastTarget": false }] },
|
||||
{ "name": "Row_Ad", "parent": "Panel_Stats", "active": true, "rect": { "anchorMin": [0, 1], "anchorMax": [0.5, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -158], "sizeDelta": [-28, 52] }, "components": [{ "type": "Image", "sprite": "ui_list_item_normal", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }] },
|
||||
{ "name": "Txt_LabelAd", "parent": "Row_Ad", "active": true, "rect": { "anchorMin": [0, 0], "anchorMax": [0.55, 1], "offsetMin": [20, 0], "offsetMax": [0, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "AD", "fontSize": 24, "alignment": "Left", "color": "#5A4632FF", "raycastTarget": false }] },
|
||||
{ "name": "Txt_Ad", "parent": "Row_Ad", "active": true, "rect": { "anchorMin": [0.55, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [-18, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "10", "fontSize": 24, "fontStyle": "Bold", "alignment": "Right", "color": "#33405EFF", "raycastTarget": false }] },
|
||||
{ "name": "Row_Ap", "parent": "Panel_Stats", "active": true, "rect": { "anchorMin": [0.5, 1], "anchorMax": [1, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -158], "sizeDelta": [-28, 52] }, "components": [{ "type": "Image", "sprite": "ui_list_item_normal", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }] },
|
||||
{ "name": "Txt_LabelAp", "parent": "Row_Ap", "active": true, "rect": { "anchorMin": [0, 0], "anchorMax": [0.55, 1], "offsetMin": [20, 0], "offsetMax": [0, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "AP", "fontSize": 24, "alignment": "Left", "color": "#5A4632FF", "raycastTarget": false }] },
|
||||
{ "name": "Txt_Ap", "parent": "Row_Ap", "active": true, "rect": { "anchorMin": [0.55, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [-18, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "5", "fontSize": 24, "fontStyle": "Bold", "alignment": "Right", "color": "#33405EFF", "raycastTarget": false }] },
|
||||
{ "name": "Row_AtkSpeed", "parent": "Panel_Stats", "active": true, "rect": { "anchorMin": [0, 1], "anchorMax": [0.5, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -226], "sizeDelta": [-28, 52] }, "components": [{ "type": "Image", "sprite": "ui_list_item_normal", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }] },
|
||||
{ "name": "Txt_LabelAtkSpeed", "parent": "Row_AtkSpeed", "active": true, "rect": { "anchorMin": [0, 0], "anchorMax": [0.55, 1], "offsetMin": [20, 0], "offsetMax": [0, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "Atk Spd", "fontSize": 24, "alignment": "Left", "color": "#5A4632FF", "raycastTarget": false }] },
|
||||
{ "name": "Txt_AtkSpeed", "parent": "Row_AtkSpeed", "active": true, "rect": { "anchorMin": [0.55, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [-18, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "1", "fontSize": 24, "fontStyle": "Bold", "alignment": "Right", "color": "#33405EFF", "raycastTarget": false }] },
|
||||
{ "name": "Row_MoveSpeed", "parent": "Panel_Stats", "active": true, "rect": { "anchorMin": [0.5, 1], "anchorMax": [1, 1], "pivot": [0.5, 1], "anchoredPosition": [0, -226], "sizeDelta": [-28, 52] }, "components": [{ "type": "Image", "sprite": "ui_list_item_normal", "imageType": "Sliced", "raycastTarget": false, "color": "#FFFFFFFF" }] },
|
||||
{ "name": "Txt_LabelMoveSpeed", "parent": "Row_MoveSpeed", "active": true, "rect": { "anchorMin": [0, 0], "anchorMax": [0.55, 1], "offsetMin": [20, 0], "offsetMax": [0, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "Move Spd", "fontSize": 24, "alignment": "Left", "color": "#5A4632FF", "raycastTarget": false }] },
|
||||
{ "name": "Txt_MoveSpeed", "parent": "Row_MoveSpeed", "active": true, "rect": { "anchorMin": [0.55, 0], "anchorMax": [1, 1], "offsetMin": [0, 0], "offsetMax": [-18, 0] }, "components": [{ "type": "TextMeshProUGUI", "text": "4", "fontSize": 24, "fontStyle": "Bold", "alignment": "Right", "color": "#33405EFF", "raycastTarget": false }] }
|
||||
],
|
||||
"bindings": ["Img_Mask", "Btn_Close", "Txt_Nickname", "Txt_Uid", "Txt_RoleType", "Txt_Gold", "Txt_Diamond", "Txt_Lv", "Txt_Exp", "Txt_Hp", "Txt_Mp", "Txt_Ad", "Txt_Ap", "Txt_AtkSpeed", "Txt_MoveSpeed"],
|
||||
"events": [
|
||||
{ "name": "PlayerProfile.CloseDetail", "node": "Btn_Close" },
|
||||
{ "name": "PlayerProfile.CloseDetail", "node": "Img_Mask" }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user