refactor(ui): 调整任务卡组件节点结构与样式
移除未使用的图片资源并清理任务组件冗余节点引用,优化卡牌预制体的布局与字体显示
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 684 KiB |
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"ver": "1.0.27",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "0474d69a-4ed2-4470-a797-19d9f23c09b0",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "0474d69a-4ed2-4470-a797-19d9f23c09b0@6c48a",
|
||||
"displayName": "cards",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "0474d69a-4ed2-4470-a797-19d9f23c09b0",
|
||||
"visible": false
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"hasAlpha": true,
|
||||
"type": "texture",
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"redirect": "0474d69a-4ed2-4470-a797-19d9f23c09b0@6c48a"
|
||||
}
|
||||
}
|
||||
@@ -49,14 +49,14 @@
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 192
|
||||
"__id__": 190
|
||||
},
|
||||
{
|
||||
"__id__": 194
|
||||
"__id__": 192
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 196
|
||||
"__id__": 194
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -2120,6 +2120,8 @@
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "c6fA+I52NLy7nwIG/TAXFX",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
@@ -2593,8 +2595,8 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 72.629,
|
||||
"y": 104.709,
|
||||
"x": -71.875,
|
||||
"y": 102.383,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -3353,13 +3355,10 @@
|
||||
},
|
||||
{
|
||||
"__id__": 187
|
||||
},
|
||||
{
|
||||
"__id__": 189
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 191
|
||||
"__id__": 189
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -3423,8 +3422,8 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -32,
|
||||
"y": 0,
|
||||
"x": -26,
|
||||
"y": 21.977,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -3609,7 +3608,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -11.794,
|
||||
"x": -9.593,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
@@ -3650,8 +3649,8 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 50,
|
||||
"height": 29.2
|
||||
"width": 80,
|
||||
"height": 25
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -3689,20 +3688,23 @@
|
||||
"_string": "9999",
|
||||
"_horizontalAlign": 0,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 19,
|
||||
"_fontSize": 18,
|
||||
"_actualFontSize": 30,
|
||||
"_fontSize": 30,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 20,
|
||||
"_lineHeight": 31,
|
||||
"_overflow": 2,
|
||||
"_enableWrapText": true,
|
||||
"_font": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_font": {
|
||||
"__uuid__": "eca7fc51-87d0-4bb0-89e1-aa9c39411bc6",
|
||||
"__expectedType__": "cc.BitmapFont"
|
||||
},
|
||||
"_isSystemFontUsed": false,
|
||||
"_spacingX": 1,
|
||||
"_isItalic": false,
|
||||
"_isBold": false,
|
||||
"_isUnderline": false,
|
||||
"_underlineHeight": 2,
|
||||
"_cacheMode": 0,
|
||||
"_cacheMode": 2,
|
||||
"_enableOutline": true,
|
||||
"_outlineColor": {
|
||||
"__type__": "cc.Color",
|
||||
@@ -3832,10 +3834,10 @@
|
||||
},
|
||||
"_alignFlags": 12,
|
||||
"_target": null,
|
||||
"_left": 7.105427357601002e-15,
|
||||
"_left": 6,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 4.5,
|
||||
"_bottom": 26.477,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
@@ -3900,8 +3902,8 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 38,
|
||||
"y": 0,
|
||||
"x": -26,
|
||||
"y": -6.41,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -4086,7 +4088,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -11.794,
|
||||
"x": -9.593,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
@@ -4127,8 +4129,8 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 50,
|
||||
"height": 29.2
|
||||
"width": 80,
|
||||
"height": 25
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -4166,20 +4168,23 @@
|
||||
"_string": "9999",
|
||||
"_horizontalAlign": 0,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 19,
|
||||
"_fontSize": 18,
|
||||
"_actualFontSize": 30,
|
||||
"_fontSize": 30,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 20,
|
||||
"_lineHeight": 31,
|
||||
"_overflow": 2,
|
||||
"_enableWrapText": true,
|
||||
"_font": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_font": {
|
||||
"__uuid__": "eca7fc51-87d0-4bb0-89e1-aa9c39411bc6",
|
||||
"__expectedType__": "cc.BitmapFont"
|
||||
},
|
||||
"_isSystemFontUsed": false,
|
||||
"_spacingX": 1,
|
||||
"_isItalic": false,
|
||||
"_isBold": false,
|
||||
"_isUnderline": false,
|
||||
"_underlineHeight": 2,
|
||||
"_cacheMode": 0,
|
||||
"_cacheMode": 2,
|
||||
"_enableOutline": true,
|
||||
"_outlineColor": {
|
||||
"__type__": "cc.Color",
|
||||
@@ -4309,10 +4314,10 @@
|
||||
},
|
||||
"_alignFlags": 12,
|
||||
"_target": null,
|
||||
"_left": 70,
|
||||
"_left": 6,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 4.5,
|
||||
"_bottom": -1.910000000000001,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
@@ -4408,44 +4413,6 @@
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "23FrXN9T9O2ITB7cph0Bkr"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Layout",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 144
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 190
|
||||
},
|
||||
"_resizeMode": 0,
|
||||
"_layoutType": 1,
|
||||
"_cellSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 40,
|
||||
"height": 40
|
||||
},
|
||||
"_startAxis": 0,
|
||||
"_paddingLeft": 0,
|
||||
"_paddingRight": 0,
|
||||
"_paddingTop": 0,
|
||||
"_paddingBottom": 0,
|
||||
"_spacingX": 0,
|
||||
"_spacingY": 0,
|
||||
"_verticalDirection": 1,
|
||||
"_horizontalDirection": 0,
|
||||
"_constraint": 0,
|
||||
"_constraintNum": 2,
|
||||
"_affectedByScale": false,
|
||||
"_isAlign": false,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "5atNjTsGJM7KgtxUdjgFur"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
@@ -4469,7 +4436,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 193
|
||||
"__id__": 191
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -4497,7 +4464,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 195
|
||||
"__id__": 193
|
||||
},
|
||||
"Lock": {
|
||||
"__id__": 94
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -32,6 +32,10 @@ export class MissionCardComp extends CCComp {
|
||||
cards_up:Node = null!
|
||||
@property(Node)
|
||||
coins:Node = null!
|
||||
@property(Node)
|
||||
pool_lv_node:Node = null!
|
||||
// @property(Node)
|
||||
// coins:Node = null!
|
||||
/** 预留图集缓存(后续接入按钮/卡面图标时复用) */
|
||||
private uiconsAtlas: SpriteAtlas | null = null;
|
||||
/** 四个槽位对应的单卡控制器缓存 */
|
||||
|
||||
@@ -35,17 +35,7 @@ export class MissionComp extends CCComp {
|
||||
// reward:number = 0;
|
||||
// reward_num:number = 0;
|
||||
@property(Node)
|
||||
coins_node:Node = null!
|
||||
@property(Node)
|
||||
lv_node:Node = null!
|
||||
@property(Node)
|
||||
chou_node:Node = null!
|
||||
@property(Node)
|
||||
time_node:Node = null!
|
||||
@property(Node)
|
||||
hero_info_node:Node = null!
|
||||
@property(Node)
|
||||
update_node:Node = null!
|
||||
|
||||
FightTime:number = FightSet.FiIGHT_TIME
|
||||
/** 剩余复活次数 */
|
||||
|
||||
Reference in New Issue
Block a user