【fix】面板文字跟随倍数调整

This commit is contained in:
2026-03-31 17:48:44 +08:00
parent 9015b13c65
commit 792e82d091
8 changed files with 2636 additions and 2910 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -21,9 +21,6 @@ const AUTO_TIMES : any[] = [
"10",
]
/** 默认消耗 */
const DEFAULT_COST = 100
@ccclass('PageMain')
export class PageMain extends BaseView {
/** 声音按钮 */
@@ -235,10 +232,8 @@ export class PageMain extends BaseView {
}
this._is_continuous = true
this.hideSelectTimes()
if (USERDATA.coin >= this._ante_data[this._ante_index].mult * DEFAULT_COST){
this.btnGameStart()
Tools.ActChild(this.btn_auto, "lab", false)
}
Tools.ActChild(this.btn_auto, "lab", false)
this.btnGameStart()
})
}
}
@@ -346,7 +341,7 @@ export class PageMain extends BaseView {
this._game_data = res
this._move_dir = res.direction
USERDATA.coin -= this._ante_data[this._ante_index].mult * DEFAULT_COST
USERDATA.coin -= res.use_coin
this.initUserData()
let steps = 0
@@ -435,6 +430,7 @@ export class PageMain extends BaseView {
}
},()=>{
this._is_playing = false
this.resetStopGame()
})
}
@@ -557,10 +553,10 @@ export class PageMain extends BaseView {
lab.destroy()
USERDATA.coin = this._game_data.coin
this.initUserData()
if (USERDATA.coin >= this._ante_data[this._ante_index].mult * DEFAULT_COST && (this._now_rest_times > 0 || this._now_rest_times == -1)){
if (this._now_rest_times > 0 || this._now_rest_times == -1){
this.btnGameStart()
}else{
this.resetStopGame()
}
}
// T5是再来一次不需要飘字

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 KiB

View File

@@ -1,138 +0,0 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec@6c48a",
"displayName": "main_mask_video",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec@f9941",
"displayName": "main_mask_video",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1080,
"height": 1267,
"rawWidth": 1080,
"rawHeight": 1267,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-540,
-633.5,
0,
540,
-633.5,
0,
-540,
633.5,
0,
540,
633.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1267,
1080,
1267,
0,
0,
1080,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-540,
-633.5,
0
],
"maxPos": [
540,
633.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "fd8dfe8f-f174-41d6-a01d-4d6613b5dfec@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "e1UHIKee1GRqns7LEix3IH"
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 97 KiB