Commit 02389f0c authored by 任建锋's avatar 任建锋

--

parent 33ddc46a
/**
* Created by rockyl on 2019-01-02.
*
* Toast
*/
import {Entity, createTween, Tween, ease, engine,} from "scilla/src";
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import TextRenderer from "scilla-components/src/renderer/TextRenderer";
import Transform from "scilla-components/src/base/Transform";
export default class Toast extends ScillaComponent {
Label: Entity;
padding = 20;
offsetY = 0;
showDuration = 300;
hideDuration = 300;
private _bgTransform: Transform;
private _labelRenderer: TextRenderer;
private _labelTransform: Transform;
private _tweenIn: Tween;
private _tweenOut: Tween;
private _timerDuration;
onAwake() {
super.onAwake();
if (!this._bgTransform) {
const {offsetY, hideDuration, showDuration, transform} = this;
this._bgTransform = this.getComponent(Transform);
this._labelRenderer = this.Label.getComponent(TextRenderer);
this._labelTransform = this.Label.getComponent(Transform);
this._tweenIn = createTween(this, transform, false, {autoPlay: false})
.to({position: {x: 0, y: offsetY}}, showDuration, ease.cubicOut);
this._tweenOut = createTween(this, transform, false, {autoPlay: false})
.to({position: {y: 0}}, hideDuration, ease.cubicIn)
.call(this.onHidden);
this.transform.position.y = this.outPos;
}
}
private get outPos(){
return engine.renderContext.stageCenter.y + this._bgTransform.height;
}
show({content, duration = 1000}) {
this.entity.enabled = true;
const {_bgTransform, _labelRenderer, _labelTransform, padding} = this;
_labelRenderer.text = content;
_labelRenderer.measureBounds();
_bgTransform.width = _labelTransform.width + padding * 2;
_bgTransform.height = _labelTransform.height + padding * 2;
this._tweenOut.queue[0].props.position.y = this.outPos;
this._tweenIn.play(true);
if (this._timerDuration) {
clearTimeout(this._timerDuration);
this._timerDuration = null;
}
this._timerDuration = setTimeout(() => {
this.hide();
}, duration);
}
hide() {
this._tweenOut.play(true);
}
private onHidden() {
this.entity.enabled = false;
}
}
/**
* Created by rockyl on 2019-01-02.
*
* Toast
*/
import {Entity, createTween, Tween, ease, engine,} from "scilla/src";
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import TextRenderer from "scilla-components/src/renderer/TextRenderer";
import Transform from "scilla-components/src/base/Transform";
export default class Toast extends ScillaComponent {
Label: Entity;
padding = 20;
offsetY = 0;
showDuration = 300;
hideDuration = 300;
private _bgTransform: Transform;
private _labelRenderer: TextRenderer;
private _labelTransform: Transform;
private _tweenIn: Tween;
private _tweenOut: Tween;
private _timerDuration;
onAwake() {
super.onAwake();
if (!this._bgTransform) {
const {offsetY, hideDuration, showDuration, transform} = this;
this._bgTransform = this.getComponent(Transform);
this._labelRenderer = this.Label.getComponent(TextRenderer);
this._labelTransform = this.Label.getComponent(Transform);
this._tweenIn = createTween(this, transform, false, {autoPlay: false})
.to({position: {x: 350, y: offsetY}}, showDuration, ease.cubicOut);
this._tweenOut = createTween(this, transform, false, {autoPlay: false})
.to({position: {y: 0}}, hideDuration, ease.cubicIn)
.call(this.onHidden);
this.transform.position.y = this.outPos;
}
}
private get outPos(){
return engine.renderContext.stageCenter.y + this._bgTransform.height;
}
show({content, duration = 1000}) {
this.entity.enabled = true;
const {_bgTransform, _labelRenderer, _labelTransform, padding} = this;
_labelRenderer.text = content;
_labelRenderer.measureBounds();
_bgTransform.width = _labelTransform.width + padding * 2;
_bgTransform.height = _labelTransform.height + padding * 2;
this._tweenOut.queue[0].props.position.y = this.outPos;
this._tweenIn.play(true);
if (this._timerDuration) {
clearTimeout(this._timerDuration);
this._timerDuration = null;
}
this._timerDuration = setTimeout(() => {
this.hide();
}, duration);
}
hide() {
this._tweenOut.play(true);
}
private onHidden() {
this.entity.enabled = false;
}
}
/**
* Created by rockyl on 2019-01-02.
*
* Toast
*/
import {Entity, createTween, Tween, ease, engine,} from "scilla/src";
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import TextRenderer from "scilla-components/src/renderer/TextRenderer";
import Transform from "scilla-components/src/base/Transform";
export default class Toast extends ScillaComponent {
Label: Entity;
padding = 20;
offsetY = 0;
showDuration = 300;
hideDuration = 300;
private _bgTransform: Transform;
private _labelRenderer: TextRenderer;
private _labelTransform: Transform;
private _tweenIn: Tween;
private _tweenOut: Tween;
private _timerDuration;
onAwake() {
super.onAwake();
if (!this._bgTransform) {
const {offsetY, hideDuration, showDuration, transform} = this;
this._bgTransform = this.getComponent(Transform);
this._labelRenderer = this.Label.getComponent(TextRenderer);
this._labelTransform = this.Label.getComponent(Transform);
this._tweenIn = createTween(this, transform, false, {autoPlay: false})
.to({position: {x: 350, y: offsetY}}, showDuration, ease.cubicOut);
this._tweenOut = createTween(this, transform, false, {autoPlay: false})
.to({position: {y: 0}}, hideDuration, ease.cubicIn)
.call(this.onHidden);
this.transform.position.y = this.outPos;
}
}
private get outPos(){
return engine.renderContext.stageCenter.y + this._bgTransform.height;
}
show({content, duration = 1000}) {
this.entity.enabled = true;
const {_bgTransform, _labelRenderer, _labelTransform, padding} = this;
_labelRenderer.text = content;
_labelRenderer.measureBounds();
_bgTransform.width = _labelTransform.width + padding * 2;
_bgTransform.height = _labelTransform.height + padding * 2;
this._tweenOut.queue[0].props.position.y = this.outPos;
this._tweenOut.queue[0].props.position.x = 350;
this._tweenIn.play(true);
if (this._timerDuration) {
clearTimeout(this._timerDuration);
this._timerDuration = null;
}
this._timerDuration = setTimeout(() => {
this.hide();
}, duration);
}
hide() {
this._tweenOut.play(true);
}
private onHidden() {
this.entity.enabled = false;
}
}
/**
* Created by rockyl on 2019-01-02.
*
* Toast
*/
import {Entity, createTween, Tween, ease, engine,} from "scilla/src";
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import TextRenderer from "scilla-components/src/renderer/TextRenderer";
import Transform from "scilla-components/src/base/Transform";
export default class Toast extends ScillaComponent {
Label: Entity;
padding = 20;
offsetY = 0;
showDuration = 300;
hideDuration = 300;
private _bgTransform: Transform;
private _labelRenderer: TextRenderer;
private _labelTransform: Transform;
private _tweenIn: Tween;
private _tweenOut: Tween;
private _timerDuration;
onAwake() {
super.onAwake();
if (!this._bgTransform) {
const {offsetY, hideDuration, showDuration, transform} = this;
this._bgTransform = this.getComponent(Transform);
this._labelRenderer = this.Label.getComponent(TextRenderer);
this._labelTransform = this.Label.getComponent(Transform);
this._tweenIn = createTween(this, transform, false, {autoPlay: false})
.to({position: {x: 350, y: offsetY}}, showDuration, ease.cubicOut);
this._tweenOut = createTween(this, transform, false, {autoPlay: false})
.to({position: {y: 0}}, hideDuration, ease.cubicIn)
.call(this.onHidden);
this.transform.position.y = this.outPos;
}
}
private get outPos(){
return engine.renderContext.stageCenter.y + this._bgTransform.height+this._bgTransform.height/2;
}
show({content, duration = 1000}) {
this.entity.enabled = true;
const {_bgTransform, _labelRenderer, _labelTransform, padding} = this;
_labelRenderer.text = content;
_labelRenderer.measureBounds();
_bgTransform.width = _labelTransform.width + padding * 2;
_bgTransform.height = _labelTransform.height + padding * 2;
this._tweenOut.queue[0].props.position.y = this.outPos;
this._tweenOut.queue[0].props.position.x = 350;
this._tweenIn.play(true);
if (this._timerDuration) {
clearTimeout(this._timerDuration);
this._timerDuration = null;
}
this._timerDuration = setTimeout(() => {
this.hide();
}, duration);
}
hide() {
this._tweenOut.play(true);
}
private onHidden() {
this.entity.enabled = false;
}
}
/**
* Created by rockyl on 2019-01-02.
*
* Toast
*/
import {Entity, createTween, Tween, ease, engine,} from "scilla/src";
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import TextRenderer from "scilla-components/src/renderer/TextRenderer";
import Transform from "scilla-components/src/base/Transform";
export default class Toast extends ScillaComponent {
Label: Entity;
padding = 20;
offsetY = 0;
showDuration = 300;
hideDuration = 300;
private _bgTransform: Transform;
private _labelRenderer: TextRenderer;
private _labelTransform: Transform;
private _tweenIn: Tween;
private _tweenOut: Tween;
private _timerDuration;
onAwake() {
super.onAwake();
if (!this._bgTransform) {
const {offsetY, hideDuration, showDuration, transform} = this;
this._bgTransform = this.getComponent(Transform);
this._labelRenderer = this.Label.getComponent(TextRenderer);
this._labelTransform = this.Label.getComponent(Transform);
this._tweenIn = createTween(this, transform, false, {autoPlay: false})
.to({position: {x: 350, y: offsetY}}, showDuration, ease.cubicOut);
this._tweenOut = createTween(this, transform, false, {autoPlay: false})
.to({position: {y: 0}}, hideDuration, ease.cubicIn)
.call(this.onHidden);
this.transform.position.y = this.outPos;
}
}
private get outPos(){
return engine.renderContext.stageCenter.y + this._bgTransform.height;
}
show({content, duration = 1000}) {
this.entity.enabled = true;
const {_bgTransform, _labelRenderer, _labelTransform, padding} = this;
_labelRenderer.text = content;
_labelRenderer.measureBounds();
_bgTransform.width = _labelTransform.width + padding * 2;
_bgTransform.height = _labelTransform.height + padding * 2;
this._tweenOut.queue[0].props.position.y = this.outPos;
this._tweenOut.queue[0].props.position.x = 350;
this._tweenIn.play(true);
if (this._timerDuration) {
clearTimeout(this._timerDuration);
this._timerDuration = null;
}
this._timerDuration = setTimeout(() => {
this.hide();
}, duration);
}
hide() {
this._tweenOut.play(true);
}
private onHidden() {
this.entity.enabled = false;
}
}
/**
* Created by rockyl on 2019-01-02.
*
* Toast
*/
import {Entity, createTween, Tween, ease, engine,} from "scilla/src";
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import TextRenderer from "scilla-components/src/renderer/TextRenderer";
import Transform from "scilla-components/src/base/Transform";
export default class Toast extends ScillaComponent {
Label: Entity;
padding = 20;
offsetY = 0;
showDuration = 300;
hideDuration = 300;
private _bgTransform: Transform;
private _labelRenderer: TextRenderer;
private _labelTransform: Transform;
private _tweenIn: Tween;
private _tweenOut: Tween;
private _timerDuration;
onAwake() {
super.onAwake();
if (!this._bgTransform) {
const {offsetY, hideDuration, showDuration, transform} = this;
this._bgTransform = this.getComponent(Transform);
this._labelRenderer = this.Label.getComponent(TextRenderer);
this._labelTransform = this.Label.getComponent(Transform);
this._tweenIn = createTween(this, transform, false, {autoPlay: false})
.to({position: {x: 350, y: offsetY}}, showDuration, ease.cubicOut);
this._tweenOut = createTween(this, transform, false, {autoPlay: false})
.to({position: {y: 0}}, hideDuration, ease.cubicIn)
.call(this.onHidden);
this.transform.position.y = this.outPos;
}
}
private get outPos(){
return engine.renderContext.stageCenter.y + this._bgTransform.height;
}
show({content, duration = 1000}) {
this.entity.enabled = true;
const {_bgTransform, _labelRenderer, _labelTransform, padding} = this;
_labelRenderer.text = content;
_labelRenderer.measureBounds();
_bgTransform.width = _labelTransform.width + padding * 2;
_bgTransform.height = _labelTransform.height + padding * 2;
this._tweenOut.queue[0].props.position.y = 400;
this._tweenOut.queue[0].props.position.x = 350;
this._tweenIn.play(true);
if (this._timerDuration) {
clearTimeout(this._timerDuration);
this._timerDuration = null;
}
this._timerDuration = setTimeout(() => {
this.hide();
}, duration);
}
hide() {
this._tweenOut.play(true);
}
private onHidden() {
this.entity.enabled = false;
}
}
/**
* Created by rockyl on 2019-01-02.
*
* Toast
*/
import {Entity, createTween, Tween, ease, engine,} from "scilla/src";
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import TextRenderer from "scilla-components/src/renderer/TextRenderer";
import Transform from "scilla-components/src/base/Transform";
export default class Toast extends ScillaComponent {
Label: Entity;
padding = 20;
offsetY = 0;
showDuration = 300;
hideDuration = 300;
private _bgTransform: Transform;
private _labelRenderer: TextRenderer;
private _labelTransform: Transform;
private _tweenIn: Tween;
private _tweenOut: Tween;
private _timerDuration;
onAwake() {
super.onAwake();
if (!this._bgTransform) {
const {offsetY, hideDuration, showDuration, transform} = this;
this._bgTransform = this.getComponent(Transform);
this._labelRenderer = this.Label.getComponent(TextRenderer);
this._labelTransform = this.Label.getComponent(Transform);
this._tweenIn = createTween(this, transform, false, {autoPlay: false})
.to({position: {x: 350, y: 400}}, showDuration, ease.cubicOut);
this._tweenOut = createTween(this, transform, false, {autoPlay: false})
.to({position: {y: 0}}, hideDuration, ease.cubicIn)
.call(this.onHidden);
this.transform.position.y = this.outPos;
}
}
private get outPos(){
return engine.renderContext.stageCenter.y + this._bgTransform.height;
}
show({content, duration = 1000}) {
this.entity.enabled = true;
const {_bgTransform, _labelRenderer, _labelTransform, padding} = this;
_labelRenderer.text = content;
_labelRenderer.measureBounds();
_bgTransform.width = _labelTransform.width + padding * 2;
_bgTransform.height = _labelTransform.height + padding * 2;
this._tweenOut.queue[0].props.position.y = 400;
this._tweenOut.queue[0].props.position.x = 350;
this._tweenIn.play(true);
if (this._timerDuration) {
clearTimeout(this._timerDuration);
this._timerDuration = null;
}
this._timerDuration = setTimeout(() => {
this.hide();
}, duration);
}
hide() {
this._tweenOut.play(true);
}
private onHidden() {
this.entity.enabled = false;
}
}
/**
* Created by rockyl on 2019-01-02.
*
* Toast
*/
import {Entity, createTween, Tween, ease, engine,} from "scilla/src";
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import TextRenderer from "scilla-components/src/renderer/TextRenderer";
import Transform from "scilla-components/src/base/Transform";
export default class Toast extends ScillaComponent {
Label: Entity;
padding = 20;
offsetY = 0;
showDuration = 300;
hideDuration = 300;
private _bgTransform: Transform;
private _labelRenderer: TextRenderer;
private _labelTransform: Transform;
private _tweenIn: Tween;
private _tweenOut: Tween;
private _timerDuration;
onAwake() {
super.onAwake();
if (!this._bgTransform) {
const {offsetY, hideDuration, showDuration, transform} = this;
this._bgTransform = this.getComponent(Transform);
this._labelRenderer = this.Label.getComponent(TextRenderer);
this._labelTransform = this.Label.getComponent(Transform);
this._tweenIn = createTween(this, transform, false, {autoPlay: false})
.to({position: {x: 350, y: 400}}, showDuration, ease.cubicOut);
this._tweenOut = createTween(this, transform, false, {autoPlay: false})
.to({position: {y: 400}}, hideDuration, ease.cubicIn)
.call(this.onHidden);
this.transform.position.y = this.outPos;
}
}
private get outPos(){
return engine.renderContext.stageCenter.y + this._bgTransform.height;
}
show({content, duration = 1000}) {
this.entity.enabled = true;
const {_bgTransform, _labelRenderer, _labelTransform, padding} = this;
_labelRenderer.text = content;
_labelRenderer.measureBounds();
_bgTransform.width = _labelTransform.width + padding * 2;
_bgTransform.height = _labelTransform.height + padding * 2;
this._tweenOut.queue[0].props.position.y = 400;
this._tweenOut.queue[0].props.position.x = 350;
this._tweenIn.play(true);
if (this._timerDuration) {
clearTimeout(this._timerDuration);
this._timerDuration = null;
}
this._timerDuration = setTimeout(() => {
this.hide();
}, duration);
}
hide() {
this._tweenOut.play(true);
}
private onHidden() {
this.entity.enabled = false;
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 警告对话框内容
*/
import DialogContent from "../popup/DialogContent";
export default class AlertDialogContent extends DialogContent {
onAwake() {
super.onAwake();
}
setup(data: any = {}) {
}
onClickConfirmButton() {
this.hide('confirm')
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 警告对话框内容
*/
import DialogContent from "../popup/DialogContent";
export default class AlertDialogContent extends DialogContent {
onAwake() {
super.onAwake();
}
setup(data: any = {}) {
}
show = (data?, callback?) => {
this.bubbling('showDialog', this.entity.name, data, callback);
console.log(data)
}
onClickConfirmButton() {
this.hide('confirm')
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 警告对话框内容
*/
import DialogContent from "../popup/DialogContent";
export default class AlertDialogContent extends DialogContent {
onAwake() {
super.onAwake();
}
setup(data: any = {}) {
}
show = (data?, callback?) => {
console.log(data)
this.bubbling('showDialog', this.entity.name, data, callback);
}
onClickConfirmButton() {
this.hide('confirm')
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 警告对话框内容
*/
import DialogContent from "../popup/DialogContent";
export default class AlertDialogContent extends DialogContent {
onAwake() {
super.onAwake();
}
setup(data: any = {}) {
console.log(data)
}
show = (data?, callback?) => {
this.bubbling('showDialog', this.entity.name, data, callback);
}
onClickConfirmButton() {
this.hide('confirm')
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 警告对话框内容
*/
import DialogContent from "../popup/DialogContent";
import { Entity } from "scilla/src";
export default class AlertDialogContent extends DialogContent {
text: Entity;
onAwake() {
super.onAwake();
}
setup(data: any = {}) {
console.log(data)
}
show = (data?, callback?) => {
this.bubbling('showDialog', this.entity.name, data, callback);
}
onClickConfirmButton() {
this.hide('confirm')
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 警告对话框内容
*/
import DialogContent from "../popup/DialogContent";
import { Entity } from "scilla/src";
export default class AlertDialogContent extends DialogContent {
text: Entity;
onAwake() {
super.onAwake();
}
setup(data: any = {}) {
console.log(data)
console.log(this.text)
}
show = (data?, callback?) => {
this.bubbling('showDialog', this.entity.name, data, callback);
}
onClickConfirmButton() {
this.hide('confirm')
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 警告对话框内容
*/
import DialogContent from "../popup/DialogContent";
import { Entity } from "scilla/src";
import { TextRenderer } from "scilla-components/src";
export default class AlertDialogContent extends DialogContent {
text:Entity;
data
onAwake() {
super.onAwake();
this.text["TextRenderer"] = this.text.getComponent(TextRenderer);
}
setup(data: any = {}) {
console.log(data)
this.data=data
console.log(this.text)
}
show = (data?, callback?) => {
this.bubbling('showDialog', this.entity.name, data, callback);
}
onClickConfirmButton() {
this.hide('confirm')
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 警告对话框内容
*/
import DialogContent from "../popup/DialogContent";
import { Entity } from "scilla/src";
import { TextRenderer } from "scilla-components/src";
export default class AlertDialogContent extends DialogContent {
text:Entity;
data
onAwake() {
super.onAwake();
this.text["TextRenderer"] = this.text.getComponent(TextRenderer);
}
setup(data: any = {}) {
console.log(data)
this.data=data
console.log(this.text)
this.text["TextRenderer"].text=this.data
}
show = (data?, callback?) => {
this.bubbling('showDialog', this.entity.name, data, callback);
}
onClickConfirmButton() {
this.hide('confirm')
}
}
import DialogContent from '../popup/DialogContent';
export default class GameLosePanel extends DialogContent {
onAwake() {
super.onAwake();
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
export default class GameNoPrizePanel extends DialogContent {
onAwake() {
super.onAwake();
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
export default class GameNoPrizePanel extends DialogContent {
onAwake() {
super.onAwake();
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
setup(data: any = {}) {
console.log(data)
this.data=data
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity } from 'scilla/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this.getComponent(BuriedPoint)
//this.
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity } from 'scilla/src';
import { TextureRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
//this.
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity } from 'scilla/src';
import { TextureRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
console.log(this.img["TextureRenderer"])
//this.
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
console.log(this.img["TextureRenderer"])
var sd=new Texture()
sd.setImg(data.lottery.imgUrl)
this.img["TextureRenderer"].texture=sd;
//this.
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
console.log(this.img["TextureRenderer"])
var sd=new Texture()
this.img["TextureRenderer"].texture=sd;
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = function(){
sd.setImg(img)
};
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
console.log(this.img["TextureRenderer"])
var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = function(){
sd.setImg(img)
this.img["TextureRenderer"].texture=sd;
};
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
console.log(this.img["TextureRenderer"])
var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = ()=>{
sd.setImg(img)
this.img["TextureRenderer"].texture=sd;
};
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
console.log(this.img["TextureRenderer"])
var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = ()=>{
sd.setImg(img)
this.img["TextureRenderer"].texture=sd;
console.log("成功")
};
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
console.log(this.img["TextureRenderer"])
// var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
//this.img["TextureRenderer"].texture=sd;
console.log("成功")
};
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
console.log(this.img["TextureRenderer"])
// var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
console.log("成功")
};
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
console.log(this.img["TextureRenderer"])
// var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
console.log("成功")
};
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
console.log(this.img["TextureRenderer"])
// var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
console.log("成功")
};
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.img.getComponent(TextRenderer)
console.log(this.img["TextureRenderer"])
// var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
console.log("成功")
};
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.img.getComponent(TextRenderer)
console.log(this.img["TextureRenderer"])
// var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
console.log("成功")
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
console.log(this.img["TextureRenderer"])
// var sd=new Texture()
//this.
var img = new Image();
//指定图片的URL
img.src = data.lottery.imgUrl;
//浏览器加载图片完毕后再绘制图片
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
console.log("成功")
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
this["BuriedPoint"].dcm=data.exposure.dcm;
this["BuriedPoint"].dpm=data.exposure.dpm;
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
this["BuriedPoint"].dcm=data.exposure.dcm;
this["BuriedPoint"].dpm=data.exposure.dpm;
this["BuriedPoint"].dep
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
/* this["BuriedPoint"].dcm=data.exposure.dcm;
this["BuriedPoint"].dpm=data.exposure.dpm;
this["BuriedPoint"].buriedPoints */
this["BuriedPoint"].addBuriedPoints({name:"prize"})
this["BuriedPoint"].addBuriedPointConfig({dcm:data.exposure.dcm,dpm:data.exposure.dpm})
this["BuriedPoint"]
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
/* this["BuriedPoint"].dcm=data.exposure.dcm;
this["BuriedPoint"].dpm=data.exposure.dpm;
this["BuriedPoint"].buriedPoints */
this["BuriedPoint"].addBuriedPoints({name:"prize"})
this["BuriedPoint"].addBuriedPointConfig({dcm:data.exposure.dcm,dpm:data.exposure.dpm})
this["BuriedPoint"].logExposure("prize")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig } from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
/* this["BuriedPoint"].dcm=data.exposure.dcm;
this["BuriedPoint"].dpm=data.exposure.dpm;
this["BuriedPoint"].buriedPoints */
//addBuriedPointConfig
addBuriedPoints({name:"prize"})
addBuriedPointConfig({dcm:data.exposure.dcm,dpm:data.exposure.dpm})
this["BuriedPoint"].logExposure("prize")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
/* this["BuriedPoint"].dcm=data.exposure.dcm;
this["BuriedPoint"].dpm=data.exposure.dpm;
this["BuriedPoint"].buriedPoints */
//addBuriedPointConfig
addBuriedPoints({name:"prize"})
addBuriedPointConfig("prize",{dcm:data.exposure.dcm,dpm:data.exposure.dpm})
logExposure("prize")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
/* this["BuriedPoint"].dcm=data.exposure.dcm;
this["BuriedPoint"].dpm=data.exposure.dpm;
this["BuriedPoint"].buriedPoints */
//addBuriedPointConfig
//addBuriedPoints({name:"prize"})
addBuriedPointConfig("prize",{dcm:data.exposure.dcm,dpm:data.exposure.dpm})
logExposure("prize")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
/* this["BuriedPoint"].dcm=data.exposure.dcm;
this["BuriedPoint"].dpm=data.exposure.dpm;
this["BuriedPoint"].buriedPoints */
//addBuriedPointConfig
//addBuriedPoints({name:"prize"})
/* addBuriedPointConfig("prize",{dcm:data.exposure.dcm,dpm:data.exposure.dpm})
logExposure("prize") */
this["BuriedPoint"].setConfig(data.exposure.dpm, data.exposure.dcm)
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
this["BuriedPoint"].setConfig(data.exposure.dpm, data.exposure.dcm)
console.log("埋点")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
this["BuriedPoint"].setConfig(data.exposure.dpm, data.exposure.dcm,true)
console.log("埋点")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
this["BuriedPoint"].setConfig(data.exposure.dpm, data.exposure.dcm,true)
console.log("埋点")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this["BuriedPoint"].setConfig(data.exposure.dpm, data.exposure.dcm,true)
console.log("埋点")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this["BuriedPoint"].setConfig(data.exposure.dpm, data.exposure.dcm)
this["BuriedPoint"].onTouchTap()
console.log("埋点")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this["BuriedPoint"].setConfig(data.exposure.dpm, data.exposure.dcm,true)
console.log("埋点")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
setup(data: any = {}) {
console.log(data)
this.data=data
this.img["TextureRenderer"]=this.img.getComponent(TextureRenderer)
this.img["Transform"]=this.img.getComponent(Transform)
this.title["TextRenderer"]=this.title.getComponent(TextRenderer)
if(data.exposure){
this["BuriedPoint"]=this.getComponent(BuriedPoint)
this["BuriedPoint"].setConfig(data.exposure.dpm, data.exposure.dcm)
this["BuriedPoint"].onTouchTap()
console.log("埋点")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.img["TextureRenderer"].texture.setImg(img)
this.img["TextureRenderer"].texture.bounds.height=img.height;
this.img["TextureRenderer"].texture.bounds.width=img.width;
this.img["Transform"].width=img.width;
this.img["Transform"].height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm)
this.BuriedPoint.onTouchTap()
console.log("埋点")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.title["TextRenderer"].text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm)
this.BuriedPoint.onTouchTap()
console.log("埋点")
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm)
this.BuriedPoint.onTouchTap()
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm)
this.BuriedPoint.onTouchTap()
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm,true)
//this.BuriedPoint.onTouchTap()
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm)
this.BuriedPoint.onTouchTap()
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm,true)
//this.BuriedPoint.onTouchTap()
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_againBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm,true)
//this.BuriedPoint.onTouchTap()
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_againBtn() {
if(this.data.exposure){
this.BuriedPoint.onTouchTap()
}
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm,true)
//this.BuriedPoint.onTouchTap()
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_againBtn() {
if(this.data.exposure){
this.BuriedPoint.onTouchTap()
}
window.location.href=this.data.lottery.link;
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer, Button } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(Button)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm,true)
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_useBtn() {
if(this.data.exposure){
this.BuriedPoint.onTouchTap()
}
window.location.href=this.data.lottery.link;
this.bubbling('fuckNavigator', 'start')
}
onclick_closeBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer, Button } from 'scilla-components/src';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity
imgTextureRenderer
imgTransform
titleTextRenderer
BuriedPoint
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
if(data.exposure){
this.BuriedPoint=this.getComponent(BuriedPoint)
this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm,true)
}
var img = new Image();
img.src = data.lottery.imgUrl;
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.lottery.title
}
onclick_useBtn() {
if(this.data.exposure){
this.BuriedPoint.onTouchTap()
}
window.location.href=this.data.lottery.link;
this.bubbling('fuckNavigator', 'start')
}
onclick_closeBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
<img src="loading.gif" />
</div>
<script src="./zepto.min.js"></script>
<script src="./security.js"></script>
<script src="debug/bundle.js"></script>
<script>
var CFG = { "actId": "3335069", "oaId": "3335069", "unitName": "积分", "btnUnitName": "积分", "doJoin": "/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069", "quireOrder": "/hdtool/getOrderStatus", "styleConfig": "/hdtool/getHdtoolConfig", "getElement": "/hdtool/ajaxElement", "getPrizeDetail": "/hdtool/prizeDetail", "ajaxThroughInfo": "/hdtool/ajaxThroughInfo", "throughSubmit": "/hdtool/throughSubmit", "gameGetOrder": "/hdtool/getOrderInfo", "gameSubmit": "/hdtool/gameSubmit", "doSubmit": "/hdtool/submit", "adslotId": "", "consumerId": "1", "isNotLoginUser": false, "uid": "1", "hdType": "duiba", "hdToolId": "42363", "appType": "credits", "subType": "custom", "directSendCoupon": "false", "ajaxAction": "", "recommendQueue": "/recommend/getRecommend", "recommendSkin": "/recommend/getRecommendSkin", "isShowDetail": true, "preview": false, "from": "", "login": "//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0", "flowRedirectUrl": "", "flowRedirectTuiaUrl": "", "isOpenRecommend": false, "getCreditsLink": "http://baidu.com?uid=1&dbnewopen", "appId": "1", "recordUrl": "//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0", "shareDesc": "分享分享文案文案", "entranceDesc": "测试领奖,也可到我的奖品领奖,24小时内有效哦", "isSHowMeat": true, "needCouponModal": true, "needRecommendModal": true, "asyncFiles": [], "shareAndroidLinkActivity": "http://www.duiba.com.cn", "shareIosLinkActivity": "http://www.iqiyi.com", "appName": "custom", "needShare": true, "shareTitle": "", "shareSubTitle": "", "sharePicUrl": "", "shareLink": "", "shareAndroidDeeplink": "", "shareIOSDeeplink": "" };
function requirelogin() {
console.log('requirelogin');
}
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {};//window['inputOptions'] ||
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
<script>
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] +
':35729/livereload.js?snipver=1"></' + 'script>')
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
<img src="loading.gif" />
</div>
<script src="./zepto.min.js"></script>
<script src="./security.js"></script>
<script src="debug/bundle.js"></script>
<script>
var CFG = { "actId": "3335069", "oaId": "3335069", "unitName": "积分", "btnUnitName": "积分", "doJoin": "/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069", "quireOrder": "/hdtool/getOrderStatus", "styleConfig": "/hdtool/getHdtoolConfig", "getElement": "/hdtool/ajaxElement", "getPrizeDetail": "/hdtool/prizeDetail", "ajaxThroughInfo": "/hdtool/ajaxThroughInfo", "throughSubmit": "/hdtool/throughSubmit", "gameGetOrder": "/hdtool/getOrderInfo", "gameSubmit": "/hdtool/gameSubmit", "doSubmit": "/hdtool/submit", "adslotId": "", "consumerId": "1", "isNotLoginUser": false, "uid": "1", "hdType": "duiba", "hdToolId": "42363", "appType": "credits", "subType": "custom", "directSendCoupon": "false", "ajaxAction": "", "recommendQueue": "/recommend/getRecommend", "recommendSkin": "/recommend/getRecommendSkin", "isShowDetail": true, "preview": false, "from": "", "login": "//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0", "flowRedirectUrl": "", "flowRedirectTuiaUrl": "", "isOpenRecommend": false, "getCreditsLink": "http://baidu.com?uid=1&dbnewopen", "appId": "1", "recordUrl": "//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0", "shareDesc": "分享分享文案文案", "entranceDesc": "测试领奖,也可到我的奖品领奖,24小时内有效哦", "isSHowMeat": true, "needCouponModal": true, "needRecommendModal": true, "asyncFiles": [], "shareAndroidLinkActivity": "http://www.duiba.com.cn", "shareIosLinkActivity": "http://www.iqiyi.com", "appName": "custom", "needShare": true, "shareTitle": "", "shareSubTitle": "", "sharePicUrl": "", "shareLink": "", "shareAndroidDeeplink": "", "shareIOSDeeplink": "" };
function requirelogin() {
console.log('requirelogin');
}
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {};//window['inputOptions'] ||
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
<script>
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] +
':35729/livereload.js?snipver=1"></' + 'script>')
</script>
</body>
</html>
\ No newline at end of file
{"success":true,"code":"0000000000","desc":"OK","timestamp":1548923950498,"data":{"element":{"success":false,"isCreditsTypeOpen":false,"needCredits":"100","myCredits":"999999630434","myCreditsLong":999999630434,"needCreditsLong":100,"freeLimit":-1,"status":1,"freeEmpty":true},"lottery":{"id":null,"type":"thanks","imgUrl":null,"link":null,"title":null,"itemId":null,"appItemId":null,"bonus":null,"bonusMin":null,"bonusMax":null,"needAccount":null,"appLucky":null,"tip":null,"useBtnText":null,"validate":null,"couponCode":null,"couponKey":null,"stInfoDpmImg":null,"stInfoDpmClose":null,"stInfoDpmGoUse":null,"showUse":null,"openUrl":null,"iosDownloadUrl":null,"androidDownloadUrl":null,"isDownloadUrl":null,"confirm":null,"phaseNumber":null,"happyCode":null,"appHidden":true,"zybangJson":null},"exposure":null,"creditsInfo":{"activityId":82567,"prizeId":4,"orderNum":null,"developerBizId":"3029576","score":null,"recordStatus":1,"errorMsg":null},"againTag":null}}
{
"success": true,
"code": "0000000000",
"desc": "OK",
"timestamp": 1548923950498,
"data": {
"element": {
"success": false,
"isCreditsTypeOpen": false,
"needCredits": "100",
"myCredits": "999999630434",
"myCreditsLong": 999999630434,
"needCreditsLong": 100,
"freeLimit": -1,
"status": 0,
"freeEmpty": true
},
"lottery": {
"id": null,
"type": "thanks",
"imgUrl": null,
"link": null,
"title": null,
"itemId": null,
"appItemId": null,
"bonus": null,
"bonusMin": null,
"bonusMax": null,
"needAccount": null,
"appLucky": null,
"tip": null,
"useBtnText": null,
"validate": null,
"couponCode": null,
"couponKey": null,
"stInfoDpmImg": null,
"stInfoDpmClose": null,
"stInfoDpmGoUse": null,
"showUse": null,
"openUrl": null,
"iosDownloadUrl": null,
"androidDownloadUrl": null,
"isDownloadUrl": null,
"confirm": null,
"phaseNumber": null,
"happyCode": null,
"appHidden": true,
"zybangJson": null
},
"exposure": null,
"creditsInfo": {
"activityId": 82567,
"prizeId": 4,
"orderNum": null,
"developerBizId": "3029576",
"score": null,
"recordStatus": 1,
"errorMsg": null
},
"againTag": null
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{"map":"{\"version\":3,\"file\":\"CustomTextRenderer.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/game/CustomTextRenderer.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,YAAY,MAAM,6CAA6C,CAAC;AAEvE;IAAgD,8CAAY;IAA5D;;IACA,CAAC;IAAD,yBAAC;AAAD,CAAC,AADD,CAAgD,YAAY,GAC3D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport TextRenderer from \"scilla-components/src/renderer/TextRenderer\";\r\nvar CustomTextRenderer = (function (_super) {\r\n tslib_1.__extends(CustomTextRenderer, _super);\r\n function CustomTextRenderer() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n return CustomTextRenderer;\r\n}(TextRenderer));\r\nexport default CustomTextRenderer;\r\n//# sourceMappingURL=CustomTextRenderer.js.map"}
{"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/main.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,kBAAkB,EAAC,MAAM,YAAY,CAAA;AAC7C,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAChD,OAAO,yBAAyB,CAAA;AAEhC,IAAI,QAAwB,CAAC;AAE7B,kBAAkB,CAAC;IAClB,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,KAAK;IACpB,uBAAuB,EAAE,KAAK;IAC9B,yBAAyB,EAAE,KAAK;IAChC,cAAc,EAAE,KAAK;CACrB,CAAC,CAAC;AAEH,MAAM,UAAgB,OAAO,CAAC,gBAAgB,EAAE,OAAiB,EAAE,UAAoB;IAAvC,wBAAA,EAAA,YAAiB;;;;;oBAChE,QAAQ,GAAG,IAAI,cAAc,EAAE,CAAC;oBAChC,WAAM,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,CAAC,EAAA;;oBAA5D,SAA4D,CAAC;;;;;CAC7D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { modifyEngineConfig } from 'scilla/src';\r\nimport ScillaLauncher from 'scilla-launcher/src';\r\nimport './generated/MustCompile';\r\nvar launcher;\r\nmodifyEngineConfig({\r\n lineHeightRatio: 1.2,\r\n entityEnabled: false,\r\n awakeComponentWhenAdded: false,\r\n sleepComponentWhenRemoved: false,\r\n drawRenderRect: false,\r\n});\r\nexport function startup(containerElement, options, onProgress) {\r\n if (options === void 0) { options = {}; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n launcher = new ScillaLauncher();\r\n return [4, launcher.launch(containerElement, options, onProgress)];\r\n case 1:\r\n _a.sent();\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map"}
{"map":"{\"version\":3,\"file\":\"MustCompile.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/generated/MustCompile.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAA;AAElC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,WAAW,CAAC,2BAA2B,EAAE,UAAU,CAAC,CAAC;AAErD,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,qCAAqC,EAAE,UAAU,CAAC,CAAC;AAE/D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAEhD,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,WAAW,CAAC,mCAAmC,EAAE,UAAU,CAAC,CAAC;AAE7D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,WAAW,MAAM,8CAA8C,CAAC;AACvE,WAAW,CAAC,mCAAmC,EAAE,WAAW,CAAC,CAAC;AAE9D,OAAO,WAAW,MAAM,qDAAqD,CAAC;AAC9E,WAAW,CAAC,0CAA0C,EAAE,WAAW,CAAC,CAAC;AAErE,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,WAAW,CAAC,kCAAkC,EAAE,WAAW,CAAC,CAAC;AAE7D,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,WAAW,CAAC,4BAA4B,EAAE,WAAW,CAAC,CAAC;AAEvD,OAAO,WAAW,MAAM,wCAAwC,CAAC;AACjE,WAAW,CAAC,6BAA6B,EAAE,WAAW,CAAC,CAAC;AAExD,OAAO,WAAW,MAAM,kCAAkC,CAAC;AAC3D,WAAW,CAAC,uBAAuB,EAAE,WAAW,CAAC,CAAC;AAElD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,WAAW,CAAC,0BAA0B,EAAE,WAAW,CAAC,CAAC;AAErD,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAC1E,WAAW,CAAC,sCAAsC,EAAE,WAAW,CAAC,CAAC;AAEjE,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,WAAW,CAAC,qCAAqC,EAAE,WAAW,CAAC,CAAC;AAEhE,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,WAAW,CAAC,yBAAyB,EAAE,WAAW,CAAC,CAAC;AAEpD,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,WAAW,CAAC,iCAAiC,EAAE,WAAW,CAAC,CAAC;AAE5D,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,WAAW,CAAC,iCAAiC,EAAE,WAAW,CAAC,CAAC;AAE5D,OAAO,WAAW,MAAM,mCAAmC,CAAC;AAC5D,WAAW,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAAC;AAEnD,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,WAAW,CAAC,gCAAgC,EAAE,WAAW,CAAC,CAAC\"}","code":"import { registerDef } from 'scilla';\r\nimport component0 from 'components/base/Transform';\r\nregisterDef('components/base/Transform', component0);\r\nimport component1 from 'components/other/FullStageSize';\r\nregisterDef('components/other/FullStageSize', component1);\r\nimport component2 from 'components/renderer/TextureRenderer';\r\nregisterDef('components/renderer/TextureRenderer', component2);\r\nimport component3 from 'components/renderer/TextRenderer';\r\nregisterDef('components/renderer/TextRenderer', component3);\r\nimport component4 from 'components/animation/TouchZoom';\r\nregisterDef('components/animation/TouchZoom', component4);\r\nimport component5 from 'components/ui/Button';\r\nregisterDef('components/ui/Button', component5);\r\nimport component6 from 'components/other/CameraController';\r\nregisterDef('components/other/CameraController', component6);\r\nimport component7 from 'components/renderer/RectRenderer';\r\nregisterDef('components/renderer/RectRenderer', component7);\r\nimport component8 from 'components/base/TouchInterrupt';\r\nregisterDef('components/base/TouchInterrupt', component8);\r\nimport component9 from 'components/renderer/HtmlRenderer';\r\nregisterDef('components/renderer/HtmlRenderer', component9);\r\nimport component10 from '../../assets/scripts/game/CustomTextRenderer';\r\nregisterDef('./scripts/game/CustomTextRenderer', component10);\r\nimport component11 from '../../assets/scripts/navigator/SingleSceneNavigator';\r\nregisterDef('./scripts/navigator/SingleSceneNavigator', component11);\r\nimport component12 from '../../assets/scripts/scenes/SceneController';\r\nregisterDef('./scripts/scenes/SceneController', component12);\r\nimport component13 from '../../assets/scripts/scenes/ScenePlay';\r\nregisterDef('./scripts/scenes/ScenePlay', component13);\r\nimport component14 from '../../assets/scripts/scenes/SceneStart';\r\nregisterDef('./scripts/scenes/SceneStart', component14);\r\nimport component15 from '../../assets/scripts/popup/Popup';\r\nregisterDef('./scripts/popup/Popup', component15);\r\nimport component16 from '../../assets/scripts/MainController';\r\nregisterDef('./scripts/MainController', component16);\r\nimport component17 from '../../assets/scripts/dialogs/AlertDialogContent';\r\nregisterDef('./scripts/dialogs/AlertDialogContent', component17);\r\nimport component18 from '../../assets/scripts/dialogs/RuleDialogContent';\r\nregisterDef('./scripts/dialogs/RuleDialogContent', component18);\r\nimport component19 from '../../assets/scripts/api/SampleApi';\r\nregisterDef('./scripts/api/SampleApi', component19);\r\nimport component20 from '../../assets/scripts/dialogs/GameOverPanel';\r\nregisterDef('./scripts/dialogs/GameOverPanel', component20);\r\nimport component21 from '../../assets/scripts/dialogs/GameLosePanel';\r\nregisterDef('./scripts/dialogs/GameLosePanel', component21);\r\nimport component22 from '../../assets/scripts/common/Toast';\r\nregisterDef('./scripts/common/Toast', component22);\r\nimport component23 from '../../assets/scripts/api/SamplePollingApi';\r\nregisterDef('./scripts/api/SamplePollingApi', component23);\r\n//# sourceMappingURL=MustCompile.js.map"}
{"map":"{\"version\":3,\"file\":\"MainController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/MainController.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,eAAe,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAW,MAAM,EAAU,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC;IAA4C,0CAAe;IAA3D;;IAuFA,CAAC;IA3EA,gCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE5C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAE7C,OAAO,EAAE,CAAC;QAEV,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;IAChG,CAAC;IAED,yCAAgB,GAAhB;QACC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC;IAED,8CAAqB,GAArB,UAAsB,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAehB,CAAC;IAED,uCAAc,GAAd,UAAe,CAAC;IAUhB,CAAC;IAED,kCAAS,GAAT,UAAU,OAAO,EAAE,QAAS;QAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAChB,OAAO,SAAA;YACP,QAAQ,UAAA;SACR,CAAC,CAAA;IACH,CAAC;IAED,mCAAU,GAAV,UAAW,IAAI,EAAE,IAAK,EAAE,QAAS;QAChC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,qCAAY,GAAZ,UAAa,MAAO;IAgBpB,CAAC;IACF,qBAAC;AAAD,CAAC,AAvFD,CAA4C,eAAe,GAuF1D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport ScillaComponent from \"scilla-components/src/base/ScillaComponent\";\r\nimport { engine } from \"scilla/src\";\r\nimport Toast from \"./common/Toast\";\r\nimport { initEnv } from \"./common/BuriedPoint\";\r\nimport Popup from \"./popup/Popup\";\r\nvar MainController = (function (_super) {\r\n tslib_1.__extends(MainController, _super);\r\n function MainController() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n MainController.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n engine.dataCenter.set('CFG', window['CFG']);\r\n this._toast = this.Toast.getComponent(Toast);\r\n this._popup = this.Popup.getComponent(Popup);\r\n initEnv();\r\n this.broadcast('callApi', 1, 'ajaxElement', { duibaId: this.hdToolId, activityId: this.actId });\r\n };\r\n MainController.prototype.onGotAjaxElement = function () {\r\n this.broadcast('initGameStage');\r\n };\r\n MainController.prototype.onGotAjaxElementError = function (e) {\r\n console.log(e);\r\n };\r\n MainController.prototype.showErrorToast = function (e) {\r\n };\r\n MainController.prototype.showToast = function (content, duration) {\r\n this._toast.show({\r\n content: content,\r\n duration: duration,\r\n });\r\n };\r\n MainController.prototype.showDialog = function (name, data, callback) {\r\n this._popup.showDialog(name, data, callback);\r\n };\r\n MainController.prototype.showNetError = function (action) {\r\n };\r\n return MainController;\r\n}(ScillaComponent));\r\nexport default MainController;\r\n//# sourceMappingURL=MainController.js.map"}
{"map":"{\"version\":3,\"file\":\"SceneController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/scenes/SceneController.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,eAAe,MAAM,4CAA4C,CAAC;AACzE,OAAO,oBAAoB,MAAM,mCAAmC,CAAC;AAErE;IAA6C,2CAAe;IAA5D;;IAoBA,CAAC;IAnBA,iCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IAEjB,CAAC;IAED,8BAAI,GAAJ,UAAK,CAAC;QAEL,IAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;QAC3D,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACZ,CAAC;IAED,kCAAQ,GAAR,UAAS,CAAC;QACT,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;IAEnB,CAAC;IAKF,sBAAC;AAAD,CAAC,AApBD,CAA6C,eAAe,GAoB3D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport ScillaComponent from 'scilla-components/src/base/ScillaComponent';\r\nimport SingleSceneNavigator from '../navigator/SingleSceneNavigator';\r\nvar SceneController = (function (_super) {\r\n tslib_1.__extends(SceneController, _super);\r\n function SceneController() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n SceneController.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n };\r\n SceneController.prototype.fuck = function (p) {\r\n var nav = this.entity.getComponent(SingleSceneNavigator);\r\n nav.push(p);\r\n };\r\n SceneController.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n return SceneController;\r\n}(ScillaComponent));\r\nexport default SceneController;\r\n//# sourceMappingURL=SceneController.js.map"}
{"map":"{\"version\":3,\"file\":\"SingleSceneNavigator.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/navigator/SingleSceneNavigator.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,WAAW,CAAC;AAChD,OAAO,eAAe,MAAM,4CAA4C,CAAC;AAEzE;IAAkD,gDAAe;IAAjE;;IAoDA,CAAC;IAjDA,uCAAQ,GAAR;QACC,iBAAM,QAAQ,WAAE,CAAC;QAEjB,IAAI,CAAC,UAAU,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;QAC5D,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAC1D,CAAC;IAED,sCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpB,CAAC;IAED,uCAAQ,GAAR,UAAS,CAAC;QACT,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;IACnB,CAAC;IAED,sCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IACjB,CAAC;IAED,wCAAS,GAAT;QACC,iBAAM,SAAS,WAAE,CAAC;IACnB,CAAC;IAED,mCAAI,GAAJ,UAAK,IAAY,EAAE,UAAsB;QAAtB,2BAAA,EAAA,iBAAsB;QACxC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC;IAED,kCAAG,GAAH,UAAI,UAAsB;QAAtB,2BAAA,EAAA,iBAAsB;QACzB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;IAED,0CAAW,GAAX,UAAY,UAAsB;QAAtB,2BAAA,EAAA,iBAAsB;QACjC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;IAClD,CAAC;IAED,qCAAM,GAAN,UAAO,IAAY,EAAE,UAAsB;QAAtB,2BAAA,EAAA,iBAAsB;QAC1C,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,sCAAO,GAAP,UAAQ,IAAY,EAAE,UAAsB;QAAtB,2BAAA,EAAA,iBAAsB;QAC3C,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,mCAAI,GAAJ,UAAK,IAAY,EAAE,UAAsB;QAAtB,2BAAA,EAAA,iBAAsB;QACxC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC;IACF,2BAAC;AAAD,CAAC,AApDD,CAAkD,eAAe,GAoDhE\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { VirtualNavigator } from \"./VirtualNavigator\";\r\nimport { SceneStart, ScenePlay } from \"../scenes\";\r\nimport ScillaComponent from \"scilla-components/src/base/ScillaComponent\";\r\nvar SingleSceneNavigator = (function (_super) {\r\n tslib_1.__extends(SingleSceneNavigator, _super);\r\n function SingleSceneNavigator() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n SingleSceneNavigator.prototype.onCreate = function () {\r\n _super.prototype.onCreate.call(this);\r\n this._navigator = new VirtualNavigator(this.entity);\r\n this._navigator.register('start', 'SceneStart', SceneStart);\r\n this._navigator.register('play', 'ScenePlay', ScenePlay);\r\n };\r\n SingleSceneNavigator.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this.push('start');\r\n };\r\n SingleSceneNavigator.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n SingleSceneNavigator.prototype.onSleep = function () {\r\n _super.prototype.onSleep.call(this);\r\n };\r\n SingleSceneNavigator.prototype.onDestroy = function () {\r\n _super.prototype.onDestroy.call(this);\r\n };\r\n SingleSceneNavigator.prototype.push = function (name, parameters) {\r\n if (parameters === void 0) { parameters = null; }\r\n this._navigator.stack.push(name, parameters);\r\n };\r\n SingleSceneNavigator.prototype.pop = function (parameters) {\r\n if (parameters === void 0) { parameters = null; }\r\n this._navigator.stack.pop(parameters);\r\n };\r\n SingleSceneNavigator.prototype.popToBottom = function (parameters) {\r\n if (parameters === void 0) { parameters = null; }\r\n this._navigator.stack.popTo(0, null, parameters);\r\n };\r\n SingleSceneNavigator.prototype.popAll = function (name, parameters) {\r\n if (parameters === void 0) { parameters = null; }\r\n this._navigator.stack.popAll(name, parameters);\r\n };\r\n SingleSceneNavigator.prototype.replace = function (name, parameters) {\r\n if (parameters === void 0) { parameters = null; }\r\n this._navigator.stack.replace(name, parameters);\r\n };\r\n SingleSceneNavigator.prototype.jump = function (name, parameters) {\r\n if (parameters === void 0) { parameters = null; }\r\n this._navigator.stack.jump(name, parameters);\r\n };\r\n return SingleSceneNavigator;\r\n}(ScillaComponent));\r\nexport default SingleSceneNavigator;\r\n//# sourceMappingURL=SingleSceneNavigator.js.map"}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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