feat: add player avatar selection UI
This commit is contained in:
@@ -95,7 +95,8 @@
|
||||
"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" }
|
||||
{ "type": "Image", "sprite": "avatar_frame", "imageType": "Sliced", "raycastTarget": true, "color": "#FFFFFFFF" },
|
||||
{ "type": "Button", "onClick": "PlayerProfile.OpenAvatarPicker" }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -213,9 +214,10 @@
|
||||
{ "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"],
|
||||
"bindings": ["Img_Mask", "Btn_Close", "Img_AvatarFrame", "Img_AvatarIcon", "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" }
|
||||
{ "name": "PlayerProfile.CloseDetail", "node": "Img_Mask" },
|
||||
{ "name": "PlayerProfile.OpenAvatarPicker", "node": "Img_AvatarFrame" }
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user