Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4344ea1698 | |||
| 5532cdf8c2 |
@ -1,6 +1,6 @@
|
|||||||
import { _decorator, Animation, Button, Component, Label, Node, sp, Sprite, tween, Tween, UIOpacity, Vec3, } from "cc";
|
import { _decorator, Animation, Button, Component, Label, Node, sp, Sprite, tween, Tween, UIOpacity, Vec3, } from "cc";
|
||||||
import { SLOT_BAR_EVENT } from "./Define";
|
import { SLOT_BAR_EVENT } from "./Define";
|
||||||
import { callGameBalanceApi, getGameId, gold2cash } from "../../Main/Scripts/main/comm";
|
import { callGameBalanceApi, getFrom, getGameId, gold2cash } from "../../Main/Scripts/main/comm";
|
||||||
import { AudioManager } from "../../Main/Scripts/managers/AudioManager";
|
import { AudioManager } from "../../Main/Scripts/managers/AudioManager";
|
||||||
import { GameDataManager } from "../../Main/Scripts/managers/GameDataManager";
|
import { GameDataManager } from "../../Main/Scripts/managers/GameDataManager";
|
||||||
import { I18nManager } from "../../Main/Scripts/managers/I18nManager";
|
import { I18nManager } from "../../Main/Scripts/managers/I18nManager";
|
||||||
@ -42,6 +42,10 @@ export class SlotBar extends Component {
|
|||||||
@property({ type: [BtnConfig] })
|
@property({ type: [BtnConfig] })
|
||||||
btnTable: BtnConfig[] = [];
|
btnTable: BtnConfig[] = [];
|
||||||
|
|
||||||
|
//全局遮罩
|
||||||
|
@property(Node)
|
||||||
|
gray: Node = null
|
||||||
|
|
||||||
hasClickSpin: boolean = false;
|
hasClickSpin: boolean = false;
|
||||||
hasClickManualStop: boolean = false;
|
hasClickManualStop: boolean = false;
|
||||||
private isFastSpin: boolean = false;
|
private isFastSpin: boolean = false;
|
||||||
@ -483,17 +487,17 @@ export class SlotBar extends Component {
|
|||||||
|
|
||||||
onClickRules() {
|
onClickRules() {
|
||||||
AudioManager.instance.playSFX("Click_Menu_menu");
|
AudioManager.instance.playSFX("Click_Menu_menu");
|
||||||
UIManager.instance.showPopup("WebView", "history/prefabs/rules", "Game", null);
|
UIManager.instance.showPopup("rules", "history/prefabs/rules", "Game", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
onClickPaytable() {
|
onClickPaytable() {
|
||||||
AudioManager.instance.playSFX("Click_Menu_menu");
|
AudioManager.instance.playSFX("Click_Menu_menu");
|
||||||
UIManager.instance.showPopup("WebView", "history/prefabs/paytable", "Game", null);
|
UIManager.instance.showPopup("paytable", "history/prefabs/paytable", "Game", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
onClickHistory() {
|
onClickHistory() {
|
||||||
AudioManager.instance.playSFX("Click_Menu_menu");
|
AudioManager.instance.playSFX("Click_Menu_menu");
|
||||||
UIManager.instance.showPopup("WebView", "history/prefabs/history", "Game", null);
|
UIManager.instance.showPopup("history", "history/prefabs/history", "Game", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
isON = true;
|
isON = true;
|
||||||
@ -517,7 +521,14 @@ export class SlotBar extends Component {
|
|||||||
false,
|
false,
|
||||||
null,
|
null,
|
||||||
() => {
|
() => {
|
||||||
window.close();
|
let from = getFrom()
|
||||||
|
console.log('from', from)
|
||||||
|
if (!from || from == "") {
|
||||||
|
window.close()
|
||||||
|
} else {
|
||||||
|
this.gray.active = true
|
||||||
|
location.replace(from)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
I18nManager.instance.t("AID_QUIT_LEFT_BUTTON"),
|
I18nManager.instance.t("AID_QUIT_LEFT_BUTTON"),
|
||||||
I18nManager.instance.t("AID_ERROR_QUIT_BUTTON")
|
I18nManager.instance.t("AID_ERROR_QUIT_BUTTON")
|
||||||
|
|||||||
@ -25,26 +25,29 @@
|
|||||||
"__id__": 650
|
"__id__": 650
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1160
|
"__id__": 1168
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1179
|
"__id__": 1187
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1159
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 1194
|
"__id__": 1202
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1196
|
"__id__": 1204
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1198
|
"__id__": 1206
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 1200
|
"__id__": 1208
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@ -13442,7 +13445,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 1159
|
"__id__": 1167
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@ -24658,6 +24661,9 @@
|
|||||||
"__id__": 1158
|
"__id__": 1158
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"gray": {
|
||||||
|
"__id__": 1159
|
||||||
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -24762,6 +24768,154 @@
|
|||||||
"__id__": 848
|
"__id__": 848
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Node",
|
||||||
|
"_name": "gray",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"_parent": {
|
||||||
|
"__id__": 1
|
||||||
|
},
|
||||||
|
"_children": [],
|
||||||
|
"_active": false,
|
||||||
|
"_components": [
|
||||||
|
{
|
||||||
|
"__id__": 1160
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1162
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1164
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_prefab": {
|
||||||
|
"__id__": 1166
|
||||||
|
},
|
||||||
|
"_lpos": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"_lrot": {
|
||||||
|
"__type__": "cc.Quat",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 1
|
||||||
|
},
|
||||||
|
"_lscale": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 1,
|
||||||
|
"y": 1,
|
||||||
|
"z": 1
|
||||||
|
},
|
||||||
|
"_mobility": 0,
|
||||||
|
"_layer": 1073741824,
|
||||||
|
"_euler": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
},
|
||||||
|
"_id": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.UITransform",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 1159
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": {
|
||||||
|
"__id__": 1161
|
||||||
|
},
|
||||||
|
"_contentSize": {
|
||||||
|
"__type__": "cc.Size",
|
||||||
|
"width": 1080,
|
||||||
|
"height": 1920
|
||||||
|
},
|
||||||
|
"_anchorPoint": {
|
||||||
|
"__type__": "cc.Vec2",
|
||||||
|
"x": 0.5,
|
||||||
|
"y": 0.5
|
||||||
|
},
|
||||||
|
"_id": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.CompPrefabInfo",
|
||||||
|
"fileId": "c20f2wemRDoIkJDo7pmASN"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Widget",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 1159
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": {
|
||||||
|
"__id__": 1163
|
||||||
|
},
|
||||||
|
"_alignFlags": 45,
|
||||||
|
"_target": null,
|
||||||
|
"_left": 0,
|
||||||
|
"_right": 0,
|
||||||
|
"_top": 0,
|
||||||
|
"_bottom": 0,
|
||||||
|
"_horizontalCenter": 0,
|
||||||
|
"_verticalCenter": 0,
|
||||||
|
"_isAbsLeft": true,
|
||||||
|
"_isAbsRight": true,
|
||||||
|
"_isAbsTop": true,
|
||||||
|
"_isAbsBottom": true,
|
||||||
|
"_isAbsHorizontalCenter": true,
|
||||||
|
"_isAbsVerticalCenter": true,
|
||||||
|
"_originalWidth": 100,
|
||||||
|
"_originalHeight": 100,
|
||||||
|
"_alignMode": 2,
|
||||||
|
"_lockFlags": 0,
|
||||||
|
"_id": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.CompPrefabInfo",
|
||||||
|
"fileId": "ecL5kURzRGhZgR14QRz3X1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.BlockInputEvents",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 1159
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": {
|
||||||
|
"__id__": 1165
|
||||||
|
},
|
||||||
|
"_id": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.CompPrefabInfo",
|
||||||
|
"fileId": "69ZyVNQ8hFApTYUjCcNSBZ"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.PrefabInfo",
|
||||||
|
"root": {
|
||||||
|
"__id__": 1
|
||||||
|
},
|
||||||
|
"asset": {
|
||||||
|
"__id__": 0
|
||||||
|
},
|
||||||
|
"fileId": "3b6GzPsepH9aODFEhu4pgl",
|
||||||
|
"instance": null,
|
||||||
|
"targetOverrides": null,
|
||||||
|
"nestedPrefabInstanceRoots": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.PrefabInfo",
|
"__type__": "cc.PrefabInfo",
|
||||||
"root": {
|
"root": {
|
||||||
@ -24782,14 +24936,14 @@
|
|||||||
"__id__": 1
|
"__id__": 1
|
||||||
},
|
},
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 1161
|
"__id__": 1169
|
||||||
},
|
},
|
||||||
"__editorExtras__": {}
|
"__editorExtras__": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.PrefabInfo",
|
"__type__": "cc.PrefabInfo",
|
||||||
"root": {
|
"root": {
|
||||||
"__id__": 1160
|
"__id__": 1168
|
||||||
},
|
},
|
||||||
"asset": {
|
"asset": {
|
||||||
"__uuid__": "29fb0a1e-a12f-4c41-9000-815327a25730",
|
"__uuid__": "29fb0a1e-a12f-4c41-9000-815327a25730",
|
||||||
@ -24797,7 +24951,7 @@
|
|||||||
},
|
},
|
||||||
"fileId": "c9QEC2alVDUrRXVFfYng3l",
|
"fileId": "c9QEC2alVDUrRXVFfYng3l",
|
||||||
"instance": {
|
"instance": {
|
||||||
"__id__": 1162
|
"__id__": 1170
|
||||||
},
|
},
|
||||||
"targetOverrides": null
|
"targetOverrides": null
|
||||||
},
|
},
|
||||||
@ -24810,35 +24964,35 @@
|
|||||||
"mountedChildren": [],
|
"mountedChildren": [],
|
||||||
"mountedComponents": [],
|
"mountedComponents": [],
|
||||||
"propertyOverrides": [
|
"propertyOverrides": [
|
||||||
{
|
|
||||||
"__id__": 1163
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1165
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1166
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1167
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1168
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1169
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"__id__": 1171
|
"__id__": 1171
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1173
|
"__id__": 1173
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1174
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1175
|
"__id__": 1175
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1176
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1177
|
"__id__": 1177
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1179
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1181
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1183
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1185
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"removedComponents": []
|
"removedComponents": []
|
||||||
@ -24846,7 +25000,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1164
|
"__id__": 1172
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_name"
|
"_name"
|
||||||
@ -24862,7 +25016,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1164
|
"__id__": 1172
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_lpos"
|
"_lpos"
|
||||||
@ -24877,7 +25031,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1164
|
"__id__": 1172
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_lrot"
|
"_lrot"
|
||||||
@ -24893,7 +25047,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1164
|
"__id__": 1172
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_euler"
|
"_euler"
|
||||||
@ -24908,7 +25062,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1164
|
"__id__": 1172
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_active"
|
"_active"
|
||||||
@ -24918,7 +25072,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1170
|
"__id__": 1178
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_active"
|
"_active"
|
||||||
@ -24934,7 +25088,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1172
|
"__id__": 1180
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_active"
|
"_active"
|
||||||
@ -24950,7 +25104,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1174
|
"__id__": 1182
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_active"
|
"_active"
|
||||||
@ -24966,7 +25120,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1176
|
"__id__": 1184
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_contentSize"
|
"_contentSize"
|
||||||
@ -24986,7 +25140,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1178
|
"__id__": 1186
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_active"
|
"_active"
|
||||||
@ -25006,14 +25160,14 @@
|
|||||||
"__id__": 1
|
"__id__": 1
|
||||||
},
|
},
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 1180
|
"__id__": 1188
|
||||||
},
|
},
|
||||||
"__editorExtras__": {}
|
"__editorExtras__": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.PrefabInfo",
|
"__type__": "cc.PrefabInfo",
|
||||||
"root": {
|
"root": {
|
||||||
"__id__": 1179
|
"__id__": 1187
|
||||||
},
|
},
|
||||||
"asset": {
|
"asset": {
|
||||||
"__uuid__": "93f49f19-92c8-468b-a67d-b423f3be55f9",
|
"__uuid__": "93f49f19-92c8-468b-a67d-b423f3be55f9",
|
||||||
@ -25021,7 +25175,7 @@
|
|||||||
},
|
},
|
||||||
"fileId": "0d6YCKuIdEs4y/XDNnFU5x",
|
"fileId": "0d6YCKuIdEs4y/XDNnFU5x",
|
||||||
"instance": {
|
"instance": {
|
||||||
"__id__": 1181
|
"__id__": 1189
|
||||||
},
|
},
|
||||||
"targetOverrides": []
|
"targetOverrides": []
|
||||||
},
|
},
|
||||||
@ -25034,29 +25188,29 @@
|
|||||||
"mountedChildren": [],
|
"mountedChildren": [],
|
||||||
"mountedComponents": [],
|
"mountedComponents": [],
|
||||||
"propertyOverrides": [
|
"propertyOverrides": [
|
||||||
{
|
|
||||||
"__id__": 1182
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1184
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1185
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1186
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1187
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 1188
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"__id__": 1190
|
"__id__": 1190
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1192
|
"__id__": 1192
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1193
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1194
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1195
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1196
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1198
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 1200
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"removedComponents": []
|
"removedComponents": []
|
||||||
@ -25064,7 +25218,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1183
|
"__id__": 1191
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_name"
|
"_name"
|
||||||
@ -25080,7 +25234,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1183
|
"__id__": 1191
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_lpos"
|
"_lpos"
|
||||||
@ -25095,7 +25249,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1183
|
"__id__": 1191
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_lrot"
|
"_lrot"
|
||||||
@ -25111,7 +25265,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1183
|
"__id__": 1191
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_euler"
|
"_euler"
|
||||||
@ -25126,7 +25280,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1183
|
"__id__": 1191
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_active"
|
"_active"
|
||||||
@ -25136,7 +25290,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1189
|
"__id__": 1197
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_active"
|
"_active"
|
||||||
@ -25152,7 +25306,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1191
|
"__id__": 1199
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_active"
|
"_active"
|
||||||
@ -25168,7 +25322,7 @@
|
|||||||
{
|
{
|
||||||
"__type__": "CCPropertyOverrideInfo",
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1193
|
"__id__": 1201
|
||||||
},
|
},
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"_contentSize"
|
"_contentSize"
|
||||||
@ -25195,7 +25349,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 1195
|
"__id__": 1203
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@ -25223,7 +25377,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 1197
|
"__id__": 1205
|
||||||
},
|
},
|
||||||
"_alignFlags": 45,
|
"_alignFlags": 45,
|
||||||
"_target": null,
|
"_target": null,
|
||||||
@ -25259,7 +25413,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 1199
|
"__id__": 1207
|
||||||
},
|
},
|
||||||
"slotGame": {
|
"slotGame": {
|
||||||
"__id__": 647
|
"__id__": 647
|
||||||
@ -25290,21 +25444,21 @@
|
|||||||
"instance": null,
|
"instance": null,
|
||||||
"targetOverrides": [
|
"targetOverrides": [
|
||||||
{
|
{
|
||||||
"__id__": 1201
|
"__id__": 1209
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1203
|
"__id__": 1211
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1205
|
"__id__": 1213
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"nestedPrefabInstanceRoots": [
|
"nestedPrefabInstanceRoots": [
|
||||||
{
|
{
|
||||||
"__id__": 1179
|
"__id__": 1187
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 1160
|
"__id__": 1168
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 833
|
"__id__": 833
|
||||||
@ -25412,10 +25566,10 @@
|
|||||||
"sysGift"
|
"sysGift"
|
||||||
],
|
],
|
||||||
"target": {
|
"target": {
|
||||||
"__id__": 1160
|
"__id__": 1168
|
||||||
},
|
},
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1202
|
"__id__": 1210
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -25427,17 +25581,17 @@
|
|||||||
{
|
{
|
||||||
"__type__": "cc.TargetOverrideInfo",
|
"__type__": "cc.TargetOverrideInfo",
|
||||||
"source": {
|
"source": {
|
||||||
"__id__": 1198
|
"__id__": 1206
|
||||||
},
|
},
|
||||||
"sourceInfo": null,
|
"sourceInfo": null,
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"sysGift"
|
"sysGift"
|
||||||
],
|
],
|
||||||
"target": {
|
"target": {
|
||||||
"__id__": 1160
|
"__id__": 1168
|
||||||
},
|
},
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1204
|
"__id__": 1212
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -25449,17 +25603,17 @@
|
|||||||
{
|
{
|
||||||
"__type__": "cc.TargetOverrideInfo",
|
"__type__": "cc.TargetOverrideInfo",
|
||||||
"source": {
|
"source": {
|
||||||
"__id__": 1198
|
"__id__": 1206
|
||||||
},
|
},
|
||||||
"sourceInfo": null,
|
"sourceInfo": null,
|
||||||
"propertyPath": [
|
"propertyPath": [
|
||||||
"slotRanking"
|
"slotRanking"
|
||||||
],
|
],
|
||||||
"target": {
|
"target": {
|
||||||
"__id__": 1179
|
"__id__": 1187
|
||||||
},
|
},
|
||||||
"targetInfo": {
|
"targetInfo": {
|
||||||
"__id__": 1206
|
"__id__": 1214
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { _decorator, Component, EventMouse, JsonAsset, Layout, math, Node, ScrollView, UITransform, Widget } from 'cc';
|
import { _decorator, Component, EventMouse, JsonAsset, Layout, math, Node, ScrollView, UITransform, Widget } from 'cc';
|
||||||
import { hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
|
import { hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
|
||||||
import { getLanguage } from 'db://assets/Main/Scripts/main/comm';
|
import { getLanguage } from 'db://assets/Main/Scripts/main/comm';
|
||||||
|
import { NodePoolManager } from 'db://assets/Main/Scripts/managers/NodePoolManager';
|
||||||
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ export class Paytable extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
clickClosePaytable() {
|
clickClosePaytable() {
|
||||||
hideToBottom(this.node, () => { this.node.destroy() })
|
hideToBottom(this.node, () => { NodePoolManager.instance.putNodeToPool('paytable', this.node) })
|
||||||
}
|
}
|
||||||
|
|
||||||
// onScrollEnded(scrollView: ScrollView) {
|
// onScrollEnded(scrollView: ScrollView) {
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { _decorator, Component, EventMouse, JsonAsset, Label, Layout, math, Node, ScrollView, UITransform, Widget } from 'cc';
|
import { _decorator, Component, EventMouse, JsonAsset, Label, Layout, math, Node, ScrollView, UITransform, Widget } from 'cc';
|
||||||
import { getAllRichTexts, hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
|
import { getAllRichTexts, hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
|
||||||
import { getCsymbol, getLanguage } from 'db://assets/Main/Scripts/main/comm';
|
import { getCsymbol, getLanguage } from 'db://assets/Main/Scripts/main/comm';
|
||||||
|
import { NodePoolManager } from 'db://assets/Main/Scripts/managers/NodePoolManager';
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('Rules')
|
@ccclass('Rules')
|
||||||
@ -51,7 +52,7 @@ export class Rules extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
clickCloseRules() {
|
clickCloseRules() {
|
||||||
hideToBottom(this.node, () => { this.node.destroy() })
|
hideToBottom(this.node, () => { NodePoolManager.instance.putNodeToPool('rules', this.node) })
|
||||||
}
|
}
|
||||||
|
|
||||||
onScrolling(scrollView: ScrollView) {
|
onScrolling(scrollView: ScrollView) {
|
||||||
|
|||||||
@ -425,7 +425,7 @@ export function showFromBottom(node: Node) {
|
|||||||
height = 1920;
|
height = 1920;
|
||||||
}
|
}
|
||||||
|
|
||||||
node.position = new Vec3(0, -height / 2)
|
node.position = new Vec3(0, -height)
|
||||||
tween(node).to(0.15, { position: new Vec3() }).start()
|
tween(node).to(0.15, { position: new Vec3() }).start()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,7 @@ let supportUrl = ""
|
|||||||
let oddsUrl = ""
|
let oddsUrl = ""
|
||||||
let historyUrl = ""
|
let historyUrl = ""
|
||||||
let isRB7 = false;
|
let isRB7 = false;
|
||||||
|
let from = "";
|
||||||
|
|
||||||
export function getOddsUrl() {
|
export function getOddsUrl() {
|
||||||
return oddsUrl;
|
return oddsUrl;
|
||||||
@ -40,6 +41,10 @@ export function getIsRB7() {
|
|||||||
return isRB7;
|
return isRB7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getFrom() {
|
||||||
|
return from;
|
||||||
|
}
|
||||||
|
|
||||||
export function getCsymbol() {
|
export function getCsymbol() {
|
||||||
return csymbol;
|
return csymbol;
|
||||||
}
|
}
|
||||||
@ -86,6 +91,11 @@ export function initReqAddr() {
|
|||||||
currency = c
|
currency = c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const fr = qs.get("from");
|
||||||
|
if (fr) {
|
||||||
|
from = fr
|
||||||
|
}
|
||||||
|
|
||||||
const brand = qs.get("brand")
|
const brand = qs.get("brand")
|
||||||
if (brand == 'rb7') {
|
if (brand == 'rb7') {
|
||||||
isRB7 = brand == 'rb7';
|
isRB7 = brand == 'rb7';
|
||||||
|
|||||||
@ -2,12 +2,13 @@ import { _decorator, director, find, Node, Tween, tween, v3, Vec3 } from 'cc';
|
|||||||
import { NodePoolManager } from './NodePoolManager';
|
import { NodePoolManager } from './NodePoolManager';
|
||||||
import { TipMessagePanel } from '../main/TipMessagePanel';
|
import { TipMessagePanel } from '../main/TipMessagePanel';
|
||||||
import { I18nManager } from './I18nManager';
|
import { I18nManager } from './I18nManager';
|
||||||
|
import { showFromBottom } from 'db://assets/Game/history/scripts/Tools';
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@ccclass('UIManager')
|
@ccclass('UIManager')
|
||||||
export class UIManager {
|
export class UIManager {
|
||||||
private static _instance: UIManager = null;
|
private static _instance: UIManager = null;
|
||||||
|
|
||||||
static get instance() {
|
static get instance() {
|
||||||
if (this._instance) {
|
if (this._instance) {
|
||||||
return this._instance;
|
return this._instance;
|
||||||
@ -35,6 +36,7 @@ export class UIManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.uiLayer.addChild(prefab);
|
this.uiLayer.addChild(prefab);
|
||||||
|
showFromBottom(prefab)
|
||||||
|
|
||||||
let main = prefab.getChildByName('main');
|
let main = prefab.getChildByName('main');
|
||||||
if (!main) {
|
if (!main) {
|
||||||
@ -158,8 +160,8 @@ export class UIManager {
|
|||||||
return controller;
|
return controller;
|
||||||
}
|
}
|
||||||
|
|
||||||
showTipMessagePanel(title: string, msg: string, isCenter: boolean, confirmCb: () => void, closeCb: () => void, confirmStr: string= I18nManager.instance.t("AID_QUIT_LEFT_BUTTON"),
|
showTipMessagePanel(title: string, msg: string, isCenter: boolean, confirmCb: () => void, closeCb: () => void, confirmStr: string = I18nManager.instance.t("AID_QUIT_LEFT_BUTTON"),
|
||||||
cancelStr: string= I18nManager.instance.t("AID_MAIN_OPERATE_CLOSE"),) {
|
cancelStr: string = I18nManager.instance.t("AID_MAIN_OPERATE_CLOSE"),) {
|
||||||
let scene = director.getScene();
|
let scene = director.getScene();
|
||||||
if (!scene?.isValid) return;
|
if (!scene?.isValid) return;
|
||||||
|
|
||||||
@ -171,7 +173,7 @@ export class UIManager {
|
|||||||
tipMessagePanelComp.setIsCenter(isCenter);
|
tipMessagePanelComp.setIsCenter(isCenter);
|
||||||
tipMessagePanelComp.setConfirmCallBack(confirmCb);
|
tipMessagePanelComp.setConfirmCallBack(confirmCb);
|
||||||
tipMessagePanelComp.setCloseCallBack(closeCb);
|
tipMessagePanelComp.setCloseCallBack(closeCb);
|
||||||
tipMessagePanelComp.setBtnLabel(isCenter,confirmStr,cancelStr)
|
tipMessagePanelComp.setBtnLabel(isCenter, confirmStr, cancelStr)
|
||||||
tipMessagePanelComp.show();
|
tipMessagePanelComp.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user