refactor(hero): 统一角色状态初始化逻辑并调整UI布局
1. 将HeroSpine和HeroViewComp的默认状态从"idle"改为空字符串 2. 替换HeroViewComp中直接调用as.idle()为status_change方法 3. 调整role_controller预制体的UI元素位置和尺寸,适配240宽度布局
This commit is contained in:
@@ -1386,7 +1386,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -180,
|
||||
"x": -240,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
@@ -1785,7 +1785,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 180,
|
||||
"width": 240,
|
||||
"height": 110
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -2387,7 +2387,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 180,
|
||||
"width": 240,
|
||||
"height": 110
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -2910,7 +2910,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 180,
|
||||
"width": 240,
|
||||
"height": 110
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -3509,7 +3509,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 180,
|
||||
"width": 240,
|
||||
"height": 110
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -4764,7 +4764,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 180,
|
||||
"x": 240,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
@@ -5163,7 +5163,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 180,
|
||||
"width": 240,
|
||||
"height": 110
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -5765,7 +5765,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 180,
|
||||
"width": 240,
|
||||
"height": 110
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -9317,7 +9317,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 540,
|
||||
"width": 720,
|
||||
"height": 200
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -9345,8 +9345,8 @@
|
||||
},
|
||||
"_alignFlags": 44,
|
||||
"_target": null,
|
||||
"_left": 90,
|
||||
"_right": 90,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": -2,
|
||||
"_horizontalCenter": 0,
|
||||
|
||||
Reference in New Issue
Block a user