Compare commits

..

No commits in common. "master" and "v0.1.12" have entirely different histories.

6 changed files with 435 additions and 537 deletions

File diff suppressed because it is too large Load Diff

View File

@ -120,7 +120,7 @@ export class SlotBar extends Component {
private btnPositions: Map<string, Vec3> = new Map(); private btnPositions: Map<string, Vec3> = new Map();
private isAnimating: boolean = false; private isAnimating: boolean = false;
private readonly DURATION = 0.1; private readonly DURATION = 0.1;
private readonly OFFSET_Y = -300; private readonly OFFSET_Y = -200;
private hasClickSpin: boolean = false; private hasClickSpin: boolean = false;
private hasClickManualStop: boolean = false; private hasClickManualStop: boolean = false;

View File

@ -1,4 +1,4 @@
import { _decorator, Component, EventMouse, JsonAsset, Layout, math, Node, ScrollView, UITransform, Widget } from 'cc'; import { _decorator, Component, EventMouse, JsonAsset, Layout, math, Node, ScrollView, UITransform } from 'cc';
import { hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools'; import { hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
import { getLanguage } from 'db://assets/Loading/scripts/comm'; import { getLanguage } from 'db://assets/Loading/scripts/comm';
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
@ -18,7 +18,6 @@ export class Paytable extends Component {
this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"]; this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"];
this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView) this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView)
this.scrollView.node.getChildByName('view').getComponent(Widget).updateAlignment()
this.scrollView.node.on('scrolling', this.onScrolling, this); this.scrollView.node.on('scrolling', this.onScrolling, this);
this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this); this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this);

View File

@ -1,4 +1,4 @@
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 } from 'cc';
import { getAllRichTexts, hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools'; import { getAllRichTexts, hideToBottom, isBrahmic, updateLang, wrapTextBySpace } from './Tools';
import { getCsymbol, getLanguage } from 'db://assets/Loading/scripts/comm'; import { getCsymbol, getLanguage } from 'db://assets/Loading/scripts/comm';
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
@ -16,7 +16,7 @@ export class Rules extends Component {
protected onLoad(): void { protected onLoad(): void {
this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"]; this.dict = this.langJson.json[getLanguage()] ?? this.langJson.json["en"];
this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView) this.scrollView = this.node.getChildByName("ScrollView").getComponent(ScrollView)
this.scrollView.node.getChildByName('view').getComponent(Widget).updateAlignment()
this.scrollView.node.on('scrolling', this.onScrolling, this); this.scrollView.node.on('scrolling', this.onScrolling, this);
this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this); this.node.on(Node.EventType.MOUSE_WHEEL, this.onMouseWheel, this);
} }
@ -49,7 +49,7 @@ export class Rules extends Component {
Label_1_3.string = str Label_1_3.string = str
} }
clickCloseRules() { clickCloseRules() {
const destroyFunc = () => { this.node.destroy() } const destroyFunc = () => { this.node.destroy() }
hideToBottom(this.node, destroyFunc) hideToBottom(this.node, destroyFunc)

View File

@ -23,7 +23,7 @@
"_active": true, "_active": true,
"_components": [], "_components": [],
"_prefab": { "_prefab": {
"__id__": 91 "__id__": 89
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@ -54,7 +54,7 @@
}, },
"autoReleaseAssets": false, "autoReleaseAssets": false,
"_globals": { "_globals": {
"__id__": 92 "__id__": 90
}, },
"_id": "6c29a3fe-b10e-44a5-98e3-55595b231767" "_id": "6c29a3fe-b10e-44a5-98e3-55595b231767"
}, },
@ -77,11 +77,17 @@
"__id__": 8 "__id__": 8
}, },
{ {
"__id__": 70 "__id__": 68
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 83
},
{
"__id__": 84
},
{ {
"__id__": 85 "__id__": 85
}, },
@ -93,12 +99,6 @@
}, },
{ {
"__id__": 88 "__id__": 88
},
{
"__id__": 89
},
{
"__id__": 90
} }
], ],
"_prefab": null, "_prefab": null,
@ -354,12 +354,6 @@
}, },
{ {
"__id__": 67 "__id__": 67
},
{
"__id__": 68
},
{
"__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
@ -2509,62 +2503,6 @@
}, },
"_id": "b39r/AfidO+pudz3SN7pqo" "_id": "b39r/AfidO+pudz3SN7pqo"
}, },
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": null,
"_type": 0,
"_inverted": false,
"_segments": 64,
"_alphaThreshold": 0.1,
"_id": "1bp0mDHnVBYoa14QZI/k1G"
},
{
"__type__": "cc.Graphics",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_lineWidth": 1,
"_strokeColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_lineJoin": 2,
"_lineCap": 0,
"_fillColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 0
},
"_miterLimit": 10,
"_id": "d38dT/Kz1Kub1b05cwraDN"
},
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
@ -2575,7 +2513,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
"_alignFlags": 5, "_alignFlags": 45,
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
@ -2583,17 +2521,17 @@
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": false,
"_isAbsRight": true, "_isAbsRight": true,
"_isAbsTop": true, "_isAbsTop": true,
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 1080, "_originalWidth": 1080,
"_originalHeight": 2400, "_originalHeight": 1920,
"_alignMode": 2, "_alignMode": 2,
"_lockFlags": 0, "_lockFlags": 0,
"_id": "2dAW/VTelFD4EAkT5IAFtx" "_id": "ffH2CIHMVCZImyoyKJ54AK"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
@ -2605,22 +2543,22 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 71 "__id__": 69
}, },
{ {
"__id__": 75 "__id__": 73
}, },
{ {
"__id__": 80 "__id__": 78
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 83 "__id__": 81
}, },
{ {
"__id__": 84 "__id__": 82
} }
], ],
"_prefab": null, "_prefab": null,
@ -2659,19 +2597,19 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 70 "__id__": 68
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 70
},
{
"__id__": 71
},
{ {
"__id__": 72 "__id__": 72
},
{
"__id__": 73
},
{
"__id__": 74
} }
], ],
"_prefab": null, "_prefab": null,
@ -2710,7 +2648,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 71 "__id__": 69
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -2732,7 +2670,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 71 "__id__": 69
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -2744,7 +2682,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 71 "__id__": 69
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -2783,22 +2721,22 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 70 "__id__": 68
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 74
},
{
"__id__": 75
},
{ {
"__id__": 76 "__id__": 76
}, },
{ {
"__id__": 77 "__id__": 77
},
{
"__id__": 78
},
{
"__id__": 79
} }
], ],
"_prefab": null, "_prefab": null,
@ -2837,7 +2775,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 75 "__id__": 73
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -2859,7 +2797,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 75 "__id__": 73
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -2921,7 +2859,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 75 "__id__": 73
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -2934,7 +2872,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 75 "__id__": 73
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -2964,16 +2902,16 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": { "_parent": {
"__id__": 70 "__id__": 68
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 81 "__id__": 79
}, },
{ {
"__id__": 82 "__id__": 80
} }
], ],
"_prefab": null, "_prefab": null,
@ -3012,7 +2950,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 80 "__id__": 78
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -3034,7 +2972,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 80 "__id__": 78
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -3073,7 +3011,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 70 "__id__": 68
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -3095,7 +3033,7 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 70 "__id__": 68
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
@ -3226,7 +3164,7 @@
"__id__": 58 "__id__": 58
}, },
"rotateNode": { "rotateNode": {
"__id__": 70 "__id__": 68
}, },
"_id": "d8F/UwpTxNpZhwSJjDvnkk" "_id": "d8F/UwpTxNpZhwSJjDvnkk"
}, },
@ -3283,28 +3221,28 @@
{ {
"__type__": "cc.SceneGlobals", "__type__": "cc.SceneGlobals",
"ambient": { "ambient": {
"__id__": 93 "__id__": 91
}, },
"shadows": { "shadows": {
"__id__": 94 "__id__": 92
}, },
"_skybox": { "_skybox": {
"__id__": 95 "__id__": 93
}, },
"fog": { "fog": {
"__id__": 96 "__id__": 94
}, },
"octree": { "octree": {
"__id__": 97 "__id__": 95
}, },
"skin": { "skin": {
"__id__": 98 "__id__": 96
}, },
"lightProbeInfo": { "lightProbeInfo": {
"__id__": 99 "__id__": 97
}, },
"postSettings": { "postSettings": {
"__id__": 100 "__id__": 98
}, },
"bakedWithStationaryMainLight": false, "bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false "bakedWithHighpLightmap": false

View File

@ -7,7 +7,7 @@ import { PREVIEW } from "cc/env"
const gameId = "rp_11001"; const gameId = "rp_11001";
// let apiaddr = "https://rpgames-api.rpfafafahkdev.com"; // let apiaddr = "https://rpgames-api.rpfafafahkdev.com";
let apiaddr = ""; let apiaddr = "";
let token = "eyJQIjoxMDA5NDksIkUiOjE3ODI5MzA5ODEsIlMiOjEwMDAsIkQiOiJycF8xMTAwMSJ9.432SLYXxigvcnlARfSesXWhDOJ06QHzN3OvU791lMiw"; let token = "eyJQIjoxMDA5NDksIkUiOjE3ODI3NTk5MjcsIlMiOjEwMDEsIkQiOiJycF8xMTAwMSJ9.AwA0djJhbyWN-O0SzdWu2bAVoFZXURVJXlLWqzpa0uc";
let language = "en" let language = "en"
let currency = "THB" let currency = "THB"