修复战令UI 问题
This commit is contained in:
parent
640dc21370
commit
ac8f227f01
|
|
@ -18,10 +18,14 @@ export default class BattlePassArt {
|
||||||
this.loadHalloween().then(() => {
|
this.loadHalloween().then(() => {
|
||||||
if (!cc.isValid(target) || (target as any)._passDigitsTicket!==ticket) return;
|
if (!cc.isValid(target) || (target as any)._passDigitsTicket!==ticket) return;
|
||||||
const progress=target.name==='progress_1'||target.name==='progress_2';
|
const progress=target.name==='progress_1'||target.name==='progress_2';
|
||||||
const group=progress?'digits_progress':disabled?'digits_level_large':'digits_level_small';
|
const group=progress?'digits_progress':disabled?'digits_level_small':'digits_level_large';
|
||||||
const chars=String(value).split(''), spacing=progress?28:40;
|
const chars=String(value).split(''), spacing=progress?28:40;
|
||||||
target.destroyAllChildren();
|
target.destroyAllChildren();
|
||||||
chars.forEach((d,i) => this.image(target,group+'/'+d,(i-(chars.length-1)/2)*spacing,0));
|
chars.forEach((d,i) => {
|
||||||
|
const sprite = this.image(target,group+'/'+d,(i-(chars.length-1)/2)*spacing,0).getComponent(cc.Sprite);
|
||||||
|
sprite.trim = false;
|
||||||
|
sprite.sizeMode = cc.Sprite.SizeMode.RAW;
|
||||||
|
});
|
||||||
if(!progress&&target.parent) {
|
if(!progress&&target.parent) {
|
||||||
const pumpkin=target.parent.getChildByName('bright_bg');
|
const pumpkin=target.parent.getChildByName('bright_bg');
|
||||||
if(pumpkin) { pumpkin.getComponent(cc.Sprite).spriteFrame=this.frames[disabled?'pumpkin_normal':'pumpkin_active']; pumpkin.setContentSize(140,140); }
|
if(pumpkin) { pumpkin.getComponent(cc.Sprite).spriteFrame=this.frames[disabled?'pumpkin_normal':'pumpkin_active']; pumpkin.setContentSize(140,140); }
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,8 @@ export default class Utils {
|
||||||
static outTradeNo: string = "";
|
static outTradeNo: string = "";
|
||||||
// static httpip: string = `https://laf.nika4games.com/`; //五彩消消乐
|
// static httpip: string = `https://laf.nika4games.com/`; //五彩消消乐
|
||||||
static httpip: string = `https://q6rvwvtnga.sealoshzh.site/`; //消消王者
|
static httpip: string = `https://q6rvwvtnga.sealoshzh.site/`; //消消王者
|
||||||
static testHttpip: string = `https://sor779u2w8.sealoshzh.site/`; //测试服务器
|
// static testHttpip: string = `https://sor779u2w8.sealoshzh.site/`; //测试服务器
|
||||||
// static testHttpip: string = `https://q6rvwvtnga.sealoshzh.site/`; //消消王者测试服暂替
|
static testHttpip: string = `https://q6rvwvtnga.sealoshzh.site/`; //消消王者测试服暂替
|
||||||
//#region 安卓支付
|
//#region 安卓支付
|
||||||
/**获取用户信息*/
|
/**获取用户信息*/
|
||||||
static getUserInfo(callBack, from?: string) {
|
static getUserInfo(callBack, from?: string) {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.1.3",
|
|
||||||
"uuid": "9ecf33ff-c969-4fec-abd0-12b243dc28a9",
|
|
||||||
"importer": "folder",
|
|
||||||
"isBundle": false,
|
|
||||||
"bundleName": "",
|
|
||||||
"priority": 1,
|
|
||||||
"compressionType": {},
|
|
||||||
"optimizeHotUpdate": {},
|
|
||||||
"inlineSpriteFrames": {},
|
|
||||||
"isRemoteBundle": {},
|
|
||||||
"subMetas": {}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -103,8 +103,8 @@
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 120,
|
"width": 139,
|
||||||
"height": 124
|
"height": 136
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
|
|
@ -169,9 +169,7 @@
|
||||||
"_fillStart": 0,
|
"_fillStart": 0,
|
||||||
"_fillRange": 0,
|
"_fillRange": 0,
|
||||||
"_isTrimmedMode": true,
|
"_isTrimmedMode": true,
|
||||||
"_atlas": {
|
"_atlas": null,
|
||||||
"__uuid__": "56aacf5e-256b-4c72-b5d1-3982932775c9"
|
|
||||||
},
|
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -220,8 +218,8 @@
|
||||||
"__type__": "TypedArray",
|
"__type__": "TypedArray",
|
||||||
"ctor": "Float64Array",
|
"ctor": "Float64Array",
|
||||||
"array": [
|
"array": [
|
||||||
16.586,
|
0.65,
|
||||||
0,
|
-6.554,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
|
|
||||||
|
|
@ -69,13 +69,6 @@ export default class passCheck extends cc.Component {
|
||||||
private passData: any;
|
private passData: any;
|
||||||
|
|
||||||
protected onLoad(): void {
|
protected onLoad(): void {
|
||||||
BattlePassArt.loadHalloween().then(() => {
|
|
||||||
if (!cc.isValid(this.node)) return;
|
|
||||||
const time = this.time.node;
|
|
||||||
const backdrop = new cc.Node('timeBackdrop'); backdrop.parent = time.parent;
|
|
||||||
backdrop.setPosition(time.x, time.y); backdrop.zIndex = time.zIndex - 1;
|
|
||||||
backdrop.addComponent(cc.Sprite).spriteFrame = BattlePassArt.frames.time_bg;
|
|
||||||
}).catch(e => cc.warn('战令素材加载失败', e));
|
|
||||||
const node = this.activateBtn.node;
|
const node = this.activateBtn.node;
|
||||||
const shine = node.getComponent(ShopTitleShine) || node.addComponent(ShopTitleShine);
|
const shine = node.getComponent(ShopTitleShine) || node.addComponent(ShopTitleShine);
|
||||||
shine.setRainbow(true);
|
shine.setRainbow(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user