Commit c98ad8a5 authored by haiyoucuv's avatar haiyoucuv

更改

parent b734a17d
......@@ -7,11 +7,11 @@
<file url="file://$PROJECT_DIR$/assets/Scripts/Scenes/MainGame/Ball.ts" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/assets/Scripts/Utils/Crypto.ts" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/assets/Scripts/Utils/Crypto.ts.meta" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/assets/Scripts/store" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/assets/plugin/SVGA.Lite.v2.1.1.js" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/assets/plugin/SVGA.Lite.v2.1.1.js.meta" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/assets/plugin/declare-process.js" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/assets/plugin/declare-process.js.meta" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/assets/store" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/preview-template/mock/game/guide.do.json" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/preview-template/mock/game/index.do.json" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/preview-template/mock/game/start.do.json" charset="UTF-8" />
......
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "ad82e7c1-5ce1-4bc7-8f49-8e697752c9b7",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "fireBall"
}
}
{
"ver": "2.0.1",
"importer": "json",
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "cd8cfa56-0ce6-4f46-a8e3-6d81fe571e3f",
"files": [
".json"
],
"uuid": "933a44e8-ef96-4688-8361-51493b85f722",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.0",
"importer": "*",
"ver": "1.0.1",
"importer": "ttf-font",
"imported": true,
"uuid": "d4ddf6f8-85bb-4e3a-afae-44b9a4be9d08",
"uuid": "94fd4aeb-6850-44cc-8dd6-72d39fc549ff",
"files": [
".json",
".svga"
"AlibabaPuHuiTi-3-85-Bold.ttf"
],
"subMetas": {},
"userData": {}
......
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "270eead3-3abe-4fd7-bca2-cff45e2fd72c",
"uuid": "cfcf3bd0-627a-4399-b971-cc6589bffddc",
"files": [
".json",
".png"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "270eead3-3abe-4fd7-bca2-cff45e2fd72c@6c48a",
"displayName": "恭喜",
"uuid": "cfcf3bd0-627a-4399-b971-cc6589bffddc@6c48a",
"displayName": "音乐关",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "270eead3-3abe-4fd7-bca2-cff45e2fd72c",
"imageUuidOrDatabaseUri": "cfcf3bd0-627a-4399-b971-cc6589bffddc",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,8 +34,8 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "270eead3-3abe-4fd7-bca2-cff45e2fd72c@f9941",
"displayName": "恭喜",
"uuid": "cfcf3bd0-627a-4399-b971-cc6589bffddc@f9941",
"displayName": "音乐关",
"id": "f9941",
"name": "spriteFrame",
"userData": {
......@@ -46,10 +46,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 380,
"height": 58,
"rawWidth": 380,
"rawHeight": 58,
"width": 49,
"height": 49,
"rawWidth": 49,
"rawHeight": 49,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-190,
-29,
-24.5,
-24.5,
0,
190,
-29,
24.5,
-24.5,
0,
-190,
29,
-24.5,
24.5,
0,
190,
29,
24.5,
24.5,
0
],
"indexes": [
......@@ -84,12 +84,12 @@
],
"uv": [
0,
58,
380,
58,
49,
49,
49,
0,
0,
380,
49,
0
],
"nuv": [
......@@ -103,18 +103,18 @@
1
],
"minPos": [
-190,
-29,
-24.5,
-24.5,
0
],
"maxPos": [
190,
29,
24.5,
24.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "270eead3-3abe-4fd7-bca2-cff45e2fd72c@6c48a",
"imageUuidOrDatabaseUri": "cfcf3bd0-627a-4399-b971-cc6589bffddc@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "270eead3-3abe-4fd7-bca2-cff45e2fd72c@6c48a"
"redirect": "cfcf3bd0-627a-4399-b971-cc6589bffddc@6c48a"
}
}
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "38daf38e-03a5-4561-a80c-b89b9eee923a",
"uuid": "a75e1371-4878-405d-859f-89ae90010a63",
"files": [
".json",
".png"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "38daf38e-03a5-4561-a80c-b89b9eee923a@6c48a",
"displayName": "bg",
"uuid": "a75e1371-4878-405d-859f-89ae90010a63@6c48a",
"displayName": "音乐开",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "38daf38e-03a5-4561-a80c-b89b9eee923a",
"imageUuidOrDatabaseUri": "a75e1371-4878-405d-859f-89ae90010a63",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,8 +34,8 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "38daf38e-03a5-4561-a80c-b89b9eee923a@f9941",
"displayName": "bg",
"uuid": "a75e1371-4878-405d-859f-89ae90010a63@f9941",
"displayName": "音乐开",
"id": "f9941",
"name": "spriteFrame",
"userData": {
......@@ -46,10 +46,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 780,
"height": 526,
"rawWidth": 780,
"rawHeight": 526,
"width": 49,
"height": 49,
"rawWidth": 49,
"rawHeight": 49,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-390,
-263,
-24.5,
-24.5,
0,
390,
-263,
24.5,
-24.5,
0,
-390,
263,
-24.5,
24.5,
0,
390,
263,
24.5,
24.5,
0
],
"indexes": [
......@@ -84,12 +84,12 @@
],
"uv": [
0,
526,
780,
526,
49,
49,
49,
0,
0,
780,
49,
0
],
"nuv": [
......@@ -103,18 +103,18 @@
1
],
"minPos": [
-390,
-263,
-24.5,
-24.5,
0
],
"maxPos": [
390,
263,
24.5,
24.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "38daf38e-03a5-4561-a80c-b89b9eee923a@6c48a",
"imageUuidOrDatabaseUri": "a75e1371-4878-405d-859f-89ae90010a63@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "38daf38e-03a5-4561-a80c-b89b9eee923a@6c48a"
"redirect": "a75e1371-4878-405d-859f-89ae90010a63@6c48a"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "c8d65926-d209-4371-b7e6-e2e230934b16",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c5420122-73de-4379-bb8d-6e4fc74b14e1",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c5420122-73de-4379-bb8d-6e4fc74b14e1@6c48a",
"displayName": "圆环",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"imageUuidOrDatabaseUri": "c5420122-73de-4379-bb8d-6e4fc74b14e1",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "nearest",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c5420122-73de-4379-bb8d-6e4fc74b14e1@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f6df98d9-6a78-4b37-819c-b85c91dd9046",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f6df98d9-6a78-4b37-819c-b85c91dd9046@6c48a",
"displayName": "玻璃框",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"imageUuidOrDatabaseUri": "f6df98d9-6a78-4b37-819c-b85c91dd9046",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "nearest",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f6df98d9-6a78-4b37-819c-b85c91dd9046@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "27625008-7534-479b-be2b-3266f5eb51ef",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "27625008-7534-479b-be2b-3266f5eb51ef@6c48a",
"displayName": "玻璃花纹",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"imageUuidOrDatabaseUri": "27625008-7534-479b-be2b-3266f5eb51ef",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "nearest",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "texture",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "27625008-7534-479b-be2b-3266f5eb51ef@6c48a"
}
}
[
{
"__type__": "cc.AnimationClip",
"_name": "消失",
"_objFlags": 0,
"__editorExtras__": {
"embeddedPlayerGroups": []
},
"_native": "",
"sample": 30,
"speed": 1,
"wrapMode": 1,
"enableTrsBlending": false,
"_duration": 0.4666666666666667,
"_hash": 500763545,
"_tracks": [
{
"__id__": 1
}
],
"_exoticAnimation": null,
"_events": [],
"_embeddedPlayers": [],
"_additiveSettings": {
"__id__": 6
},
"_auxiliaryCurveEntries": []
},
{
"__type__": "cc.animation.ObjectTrack",
"_binding": {
"__type__": "cc.animation.TrackBinding",
"path": {
"__id__": 2
},
"proxy": null
},
"_channel": {
"__id__": 4
}
},
{
"__type__": "cc.animation.TrackPath",
"_paths": [
{
"__id__": 3
},
"spriteFrame"
]
},
{
"__type__": "cc.animation.ComponentPath",
"component": "cc.Sprite"
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 5
}
},
{
"__type__": "cc.ObjectCurve",
"_times": [
0,
0.03333333333333333,
0.06666666666666667,
0.1,
0.13333333333333333,
0.16666666666666666,
0.2,
0.23333333333333334,
0.26666666666666666,
0.3,
0.3333333333333333,
0.36666666666666664,
0.4,
0.43333333333333335
],
"_values": [
{
"__uuid__": "2b25f6f3-b2d4-4006-994a-4b91a388b12c@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "30024957-4d05-46fd-9c45-ac3e075ad631@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "0ba69c4a-ef5b-4dc3-98df-74bc835846f6@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "88287de4-728f-47e3-8234-b58f8fa2208a@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "0b893010-c910-409b-b822-6264797ef20d@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "3e17c2a8-833a-4a62-a418-cec8bf507254@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "0f112a56-7937-48fe-b586-f8619e1adb56@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "453cb4cf-de6e-4e9d-b523-2e37e3be849e@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "911f7489-d97f-4750-babb-ac0fbea4bb42@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "907d8721-8956-49ab-819a-8b4aee958acc@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "3a56214a-d065-4082-999c-4ab7824f95f2@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "4278b833-7b34-490b-899d-1bae5cf9b1bc@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "41a3f668-06b6-4f0d-924b-ad08bb75fe9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "80a195b7-c20a-4e7f-b4f9-1091ed99c8bc@f9941",
"__expectedType__": "cc.SpriteFrame"
}
]
},
{
"__type__": "cc.AnimationClipAdditiveSettings",
"enabled": false,
"refClip": null
}
]
\ No newline at end of file
{
"ver": "2.0.3",
"importer": "animation-clip",
"imported": true,
"uuid": "ed4b3e17-e617-4e04-9a8e-bc9f9a0c679a",
"files": [
".cconb"
],
"subMetas": {},
"userData": {
"name": "消失"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "83b2d93b-f466-4398-a6f8-336852896f1b",
"files": [],
"subMetas": {},
"userData": {}
}
import { _decorator, Color, Component, color, ImageAsset, Sprite, SpriteFrame, Texture2D, UITransform } from 'cc';
import HtmlToImage from "html-to-image";
const {ccclass, property, requireComponent} = _decorator;
@ccclass('HTMLRichText')
@requireComponent(Sprite)
export class HTMLRichText extends Component {
static EventType = {
AFTER_RENDER: "AFTER_RENDER",
}
_html: string = "";
@property({multiline: true})
set html(val: string) {
this._html = val;
this.setTxt(val);
}
get html(): string {
return this._html;
}
@property()
fontSize: number = 20;
@property(Color)
color: Color = color(0, 0, 0, 1);
protected start() {
this.setTxt(this._html);
}
async setTxt(txt: string) {
const width = this.node.getComponent(UITransform).width;
const color = this.color.toCSS("rgba");
const style = {
width: `${width}px`,
fontSize: `${this.fontSize}px`,
color: color,
}
const cssTxt = Object.keys(style).map((key) => {
return `${key}: ${style[key]}`;
}).join(";");
const html = `
<div id="renderDiv" style="${cssTxt}">
${txt}
</div>
`
const parser = new DOMParser();
const doc = parser.parseFromString(html, "text/html");
const insDom = document.body.appendChild(doc.documentElement);
const dom = document.getElementById("renderDiv");
console.log(dom);
const canvas = await HtmlToImage.toCanvas(dom, {
skipFonts: true,
backgroundColor: "transparent",
}).catch(() => {
document.body.removeChild(insDom);
});
if (!canvas) return;
const t2d = new Texture2D();
t2d.image = new ImageAsset(canvas);
const sf = new SpriteFrame();
sf.texture = t2d;
this.node.getComponent(Sprite).spriteFrame = sf;
this.node.getComponent(UITransform).setContentSize(canvas.width, canvas.height);
console.log(canvas.toDataURL());
this.node.emit(HTMLRichText.EventType.AFTER_RENDER);
}
}
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "e7e9b082-adda-4c4f-b5b8-d53268055eb3",
"files": [],
"subMetas": {},
"userData": {}
}
import { sendWebNet, sendWebNetWithToken, WebNetName } from "./Utils/WebNet/WebNet";
import { hideWaiting, showWaiting } from "db://assets/Module/UIFast";
import { AESDecrypt, AESEncrypt } from "./Utils/Crypto";
import store from "../store/store";
import store from "./store/store";
// const en = AESEncrypt(JSON.stringify({
// recordId: 232323,
......
import Panel from "../../Module/Panel";
import { _decorator, Button, Label, Node, Sprite } from "cc";
import { changeScene, showToast } from "db://assets/Module/UIFast";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
import { strFormat } from "../Utils/Utils";
import { PrizeScene } from "../Scenes/PrizeScene/PrizeScene";
import { LOG_TYPE, sendLog } from "../Utils/WebNet/WebNet";
import store from "../../store/store";
import GameMgr from "../GameMgr";
import { MainGame } from "../Scenes/MainGame/MainGame";
const {ccclass, property} = _decorator;
@ccclass('FailPrizePanel2')
export default class FailPrizePanel2 extends Panel {
static skin = "FailPrizePanel2";
static group = "FailPrizePanel2";
@property(Node)
close: Node = null!;
@property(Node)
again: Node = null!;
async start() {
sendLog(LOG_TYPE.EXPOSURE, 5);
this.close.on(Button.EventType.CLICK, this.onClose, this);
this.again.on(Button.EventType.CLICK, this.clickAgain, this);
}
clickAgain = async () => {
sendLog(LOG_TYPE.CLICK, 5);
this.hidePanel();
if (store.homeInfo.leftTimes <= 0) {
changeScene(HomeScene);
showToast("没次数啦,明天再来吧!");
} else {
await GameMgr.ins.start();
changeScene(MainGame);
}
}
/**
* 返回首页
*/
onClose = () => {
changeScene(HomeScene);
this.hidePanel();
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"c5d20854-9df4-407f-bfbd-dd28cf7c39a9","files":[],"subMetas":{},"userData":{}}
import Panel from "../../Module/Panel";
import { _decorator, Node } from "cc";
import Svga from "../../Component/Svga/Svga";
import GameMgr from "../GameMgr";
import { changeScene, showPanel } from "../../Module/UIFast";
import { HomeScene } from "../Scenes/HomeScene";
import PrizePanel from "./PrizePanel";
import NoPrizePanel from "./NoPrizePanel";
const {ccclass, property} = _decorator;
@ccclass('MergeMaxPanel')
export default class MergeMaxPanel extends Panel {
static bundle: string = "";
static skin = "MergeMaxPanel";
static group = "MergeMaxPanel";
@property(Node)
svga: Node = null;
submitPromise = null;
async start() {
this.svga.on(Svga.EventType.END_FRAME, this.svgaEnd, this);
// this.submitPromise = GameMgr.ins.submit(
// true,
// this.data.useHammerQuantity,
// this.data.useProteanQuantity
// );
}
svgaEnd = async () => {
const {success, data} = await this.data.submitPromise;
this.hidePanel();
if (!success || !data?.prize || data.prize.prizeId == "thanks") {
showPanel(NoPrizePanel);
} else {
showPanel(PrizePanel, data.prize);
}
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"cb0c3ede-2f8c-410f-882a-ffbbebc35e02","files":[],"subMetas":{},"userData":{}}
......@@ -3,7 +3,7 @@ import { _decorator, Button, Node } from "cc";
import { changeScene, showToast } from "db://assets/Module/UIFast";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
import GameMgr from "../GameMgr";
import store from "../../store/store";
import store from "../store/store";
import { MainGame } from "../Scenes/MainGame/MainGame";
import { LOG_TYPE, sendLog } from "../Utils/WebNet/WebNet";
......
import Panel from "../../Module/Panel";
import { _decorator, Button, RichText, UITransform, Node } from "cc";
import store from "../../store/store";
import { observer, render } from "../../store/decorators";
import { _decorator, Button, RichText, UITransform, Node, Sprite, Texture2D, ImageAsset, SpriteFrame } from "cc";
import store from "../store/store";
import { observer, render } from "../store/decorators";
const {ccclass, property} = _decorator;
import HtmlToImage from 'html-to-image';
import { HTMLRichText } from "../../Component/HTMLRichText/HTMLRichText";
@observer
@ccclass('RulePanel')
export default class RulePanel extends Panel {
......@@ -13,38 +16,49 @@ export default class RulePanel extends Panel {
static group = "RulePanel";
@property(Node) closeBtn: Node = null;
@property(Node) ruleNode: Node = null;
@property(Node) content: Node = null;
@property(Node) spNode: Node = null;
onLoad() {
this.closeBtn.on(Button.EventType.CLICK, this.clickClose);
}
async start() {
store.updateRule();
await store.updateRule();
this.setRuleTxt(store.ruleInfo);
this.closeBtn.on(Button.EventType.CLICK, this.clickClose);
}
clickClose = () => {
this.hidePanel();
}
@render
render() {
const {ruleInfo = ""} = store;
this.setRuleTxt(ruleInfo);
}
// @render
// render() {
// const {ruleInfo = ""} = store;
// this.setRuleTxt(ruleInfo);
// }
setRuleTxt(txt: string) {
this.spNode.getComponent(HTMLRichText).html = txt;
this.spNode.once(HTMLRichText.EventType.AFTER_RENDER, ()=>{
const {width: pw, height: ph} = this.spNode.getComponent(UITransform);
console.log(pw, ph);
const width = this.spNode.parent.getComponent(UITransform).width;
const height = ph * width / pw;
console.log(width, height)
this.spNode.getComponent(UITransform).setContentSize(width, height);
});
setRuleTxt(txt) {
const ruleTxt = this.ruleNode.getComponent(RichText);
ruleTxt.maxWidth = this.content.getComponent(UITransform).width;
// this.scheduleOnce(() => {
ruleTxt.string = txt
.replace(/<p\b.*?(?:\>|\/>)/gi, "")
.replace(/<\/p\>/gi, "<br/>")
.replace(/<strong>/gi, "<b>")
.replace(/<\/strong>/gi, "</b>");
this.content.getComponent(UITransform).height = this.ruleNode.getComponent(UITransform).height;
// }, 0.166);
}
}
......@@ -2,8 +2,8 @@ import { _decorator, Button, Label, Node, screen, UI, UITransform, Widget } from
import Scene from "db://assets/Module/Scene";
import { MainGame } from "./MainGame/MainGame";
import { changeScene, showPanel } from "db://assets/Module/UIFast";
import store from "../../store/store";
import { observer, render } from "../../store/decorators";
import store from "../store/store";
import { observer, render } from "../store/decorators";
import { _asyncThrottle } from "../Utils/Utils";
import RulePanel from "../Panels/RulePanel";
......
......@@ -2,7 +2,7 @@
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "986e7595-0734-4150-8157-167dbad55b9f",
"uuid": "8a516836-110d-4184-89be-e0c5d8efa8fd",
"files": [],
"subMetas": {},
"userData": {}
......
import mobx from "mobx";
import { sendWebNet, WebNetName } from "db://assets/Scripts/Utils/WebNet/WebNet";
import { sendWebNet, WebNetName } from "../Utils/WebNet/WebNet";
const {makeAutoObservable} = mobx;
......
......@@ -13,7 +13,7 @@ import { PREVIEW } from 'cc/env';
import { UIMgr } from "../Module/UIMgr";
import { changeScene, showToast } from "db://assets/Module/UIFast";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
import store from "../store/store";
import store from "../Scripts/store/store";
const {ccclass, property} = _decorator;
......
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"27814f71-3950-49ad-8129-772981da3cc1","files":[],"subMetas":{},"userData":{}}
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "1c56db5b-6e01-4df2-a8db-e09cb41cae27",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "FailPrizePanel2"
}
}
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"69f40a6b-cdcb-4fc0-bc38-5e5a049e7fd3","files":[],"subMetas":{},"userData":{}}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "3541661f-1913-4a72-bf7b-10942d06312f",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3541661f-1913-4a72-bf7b-10942d06312f@6c48a",
"displayName": "再试一次",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "3541661f-1913-4a72-bf7b-10942d06312f",
"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": "3541661f-1913-4a72-bf7b-10942d06312f@f9941",
"displayName": "再试一次",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 386,
"height": 85,
"rawWidth": 386,
"rawHeight": 85,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-193,
-42.5,
0,
193,
-42.5,
0,
-193,
42.5,
0,
193,
42.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
85,
386,
85,
0,
0,
386,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-193,
-42.5,
0
],
"maxPos": [
193,
42.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "3541661f-1913-4a72-bf7b-10942d06312f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "3541661f-1913-4a72-bf7b-10942d06312f@6c48a"
}
}
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"1fc0b54c-1f47-4b07-9fcc-7a2702c4cfa8","files":[],"subMetas":{},"userData":{}}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "955d8229-afe9-4d74-8e2c-428f69d05df3",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "MergeMaxPanel"
}
}
This diff is collapsed.
{
"name": "store",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@gitlab2.dui88.com:haiyoucuv/neteasewatermelon.git"
},
"private": true
}
This diff is collapsed.
This diff is collapsed.
......@@ -14,6 +14,8 @@
"dependencies": {
"@types/crypto-js": "^4.2.2",
"crypto-js": "^4.2.0",
"html-to-image": "^1.11.11",
"html2canvas": "^1.4.1",
"mobx": "^6.12.3"
}
}
This diff is collapsed.
......@@ -3,16 +3,55 @@
"@types/crypto-js@^4.2.2":
"integrity" "sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ=="
"resolved" "http://npm.dui88.com:80/@types%2fcrypto-js/-/crypto-js-4.2.2.tgz"
"version" "4.2.2"
"crypto-js@^4.2.0":
"integrity" "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
"resolved" "http://npm.dui88.com:80/crypto-js/-/crypto-js-4.2.0.tgz"
"version" "4.2.0"
"mobx@^6.12.3":
"integrity" "sha512-c8NKkO4R2lShkSXZ2Ongj1ycjugjzFFo/UswHBnS62y07DMcTc9Rvo03/3nRyszIvwPNljlkd4S828zIBv/piw=="
"resolved" "http://npm.dui88.com:80/mobx/-/mobx-6.12.3.tgz"
"version" "6.12.3"
version "4.2.2"
resolved "http://npm.dui88.com:80/@types%2fcrypto-js/-/crypto-js-4.2.2.tgz"
integrity sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==
base64-arraybuffer@^1.0.2:
version "1.0.2"
resolved "http://npm.dui88.com:80/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz#1c37589a7c4b0746e34bd1feb951da2df01c1bdc"
integrity sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==
crypto-js@^4.2.0:
version "4.2.0"
resolved "http://npm.dui88.com:80/crypto-js/-/crypto-js-4.2.0.tgz"
integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==
css-line-break@^2.1.0:
version "2.1.0"
resolved "http://npm.dui88.com:80/css-line-break/-/css-line-break-2.1.0.tgz#bfef660dfa6f5397ea54116bb3cb4873edbc4fa0"
integrity sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w==
dependencies:
utrie "^1.0.2"
html-to-image@^1.11.11:
version "1.11.11"
resolved "http://npm.dui88.com:80/html-to-image/-/html-to-image-1.11.11.tgz#c0f8a34dc9e4b97b93ff7ea286eb8562642ebbea"
integrity sha512-9gux8QhvjRO/erSnDPv28noDZcPZmYE7e1vFsBLKLlRlKDSqNJYebj6Qz1TGd5lsRV+X+xYyjCKjuZdABinWjA==
html2canvas@^1.4.1:
version "1.4.1"
resolved "http://npm.dui88.com:80/html2canvas/-/html2canvas-1.4.1.tgz#7cef1888311b5011d507794a066041b14669a543"
integrity sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==
dependencies:
css-line-break "^2.1.0"
text-segmentation "^1.0.3"
mobx@^6.12.3:
version "6.12.3"
resolved "http://npm.dui88.com:80/mobx/-/mobx-6.12.3.tgz"
integrity sha512-c8NKkO4R2lShkSXZ2Ongj1ycjugjzFFo/UswHBnS62y07DMcTc9Rvo03/3nRyszIvwPNljlkd4S828zIBv/piw==
text-segmentation@^1.0.3:
version "1.0.3"
resolved "http://npm.dui88.com:80/text-segmentation/-/text-segmentation-1.0.3.tgz#52a388159efffe746b24a63ba311b6ac9f2d7943"
integrity sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==
dependencies:
utrie "^1.0.2"
utrie@^1.0.2:
version "1.0.2"
resolved "http://npm.dui88.com:80/utrie/-/utrie-1.0.2.tgz#d42fe44de9bc0119c25de7f564a6ed1b2c87a645"
integrity sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==
dependencies:
base64-arraybuffer "^1.0.2"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment