update
This commit is contained in:
parent
7d9bf97bd0
commit
56f6cce2b6
@ -47,8 +47,8 @@
|
||||
},
|
||||
"_scale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.607421875,
|
||||
"y": 0.607421875,
|
||||
"x": 0.58453369140625,
|
||||
"y": 0.58453369140625,
|
||||
"z": 1
|
||||
},
|
||||
"_quat": {
|
||||
|
File diff suppressed because one or more lines are too long
1250
assets/resources/prefabs/tips/pb_servernoopen.prefab
Normal file
1250
assets/resources/prefabs/tips/pb_servernoopen.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
{
|
||||
"ver": "1.0.1",
|
||||
"uuid": "a6a91bd2-50f6-4438-b4c5-d3361cd7911a",
|
||||
"optimizationPolicy": "AUTO",
|
||||
"asyncLoadAssets": false,
|
||||
"subMetas": {}
|
||||
}
|
@ -471,7 +471,7 @@
|
||||
"__id__": 13
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_active": false,
|
||||
"_level": 3,
|
||||
"_components": [
|
||||
{
|
||||
@ -882,7 +882,7 @@
|
||||
"__id__": 25
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_active": false,
|
||||
"_level": 4,
|
||||
"_components": [
|
||||
{
|
||||
|
@ -25,16 +25,12 @@ window.connectOK = (account) => {
|
||||
tmpaccount = `0x${account}`;
|
||||
}
|
||||
window.account = tmpaccount;
|
||||
// localStorage.setItem('walletaccount', tmpaccount);
|
||||
// cc.Notifier.emit('hasConnectWallet', tmpaccount);
|
||||
jclogin.getNonce();
|
||||
};
|
||||
|
||||
window.signApp = (sign) => {
|
||||
jcgamelog.addOperation(OperationType.WALLET, 'signature success');
|
||||
window.hasWallet = true;
|
||||
localStorage.setItem('walletaccount', window.account);
|
||||
cc.Notifier.emit('hasConnectWallet', window.account);
|
||||
|
||||
var tmpsigm = sign;
|
||||
if (cc.sys.os == cc.sys.OS_ANDROID) {
|
||||
tmpsigm = `0x${sign}`;
|
||||
@ -55,6 +51,11 @@ window.signApp = (sign) => {
|
||||
|
||||
showLoading();
|
||||
cc.director.loadScene('MainScene');
|
||||
|
||||
//
|
||||
window.hasWallet = true;
|
||||
localStorage.setItem('walletaccount', window.account);
|
||||
cc.Notifier.emit('hasConnectWallet', window.account);
|
||||
});
|
||||
|
||||
var node = cc.director.getScene().getComponentInChildren('UILogin');
|
||||
@ -266,8 +267,9 @@ cc.Class({
|
||||
|
||||
getSwitch(() => {
|
||||
if (!Config.isTest) {
|
||||
// debug
|
||||
// 非提审状态
|
||||
if (localStorage.getItem('walletaccount')) {
|
||||
// 本地记录了钱包地址
|
||||
this.btn_tourist.active = false;
|
||||
this.btn_wallet.active = false;
|
||||
window.hasWallet = true;
|
||||
@ -287,11 +289,13 @@ cc.Class({
|
||||
);
|
||||
});
|
||||
} else {
|
||||
// 本地没有记录钱包地址
|
||||
this.btn_tourist.active = true;
|
||||
this.btn_wallet.active = true;
|
||||
}
|
||||
} else {
|
||||
// test
|
||||
// 提审
|
||||
this.btn_tourist.active = true;
|
||||
this.btn_wallet.active = false;
|
||||
this.btn_tourist.position = new cc.v2(0, this.btn_tourist.y);
|
||||
|
File diff suppressed because it is too large
Load Diff
28
assets/scripts/tips/ServerNotOpenTip.ts
Normal file
28
assets/scripts/tips/ServerNotOpenTip.ts
Normal file
@ -0,0 +1,28 @@
|
||||
// Learn TypeScript:
|
||||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html
|
||||
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html
|
||||
// Learn Attribute:
|
||||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
|
||||
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html
|
||||
// Learn life-cycle callbacks:
|
||||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
|
||||
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
|
||||
|
||||
const { ccclass, property } = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class ServerNotOpenTip extends cc.Component {
|
||||
public static prefabPath = 'prefabs/tips/pb_servernoopen';
|
||||
|
||||
init(data: any) {
|
||||
// throw new Error('Method not implemented.');
|
||||
}
|
||||
|
||||
onClickOK() {
|
||||
this.node.destroy();
|
||||
}
|
||||
|
||||
onClose() {
|
||||
this.node.destroy();
|
||||
}
|
||||
}
|
9
assets/scripts/tips/ServerNotOpenTip.ts.meta
Normal file
9
assets/scripts/tips/ServerNotOpenTip.ts.meta
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.5",
|
||||
"uuid": "68652536-bbb9-4ed4-840f-19bb59062a75",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"packageUrl":"https://test.kingsome.cn/game2006/test/slim/","remoteManifestUrl":"https://test.kingsome.cn/game2006/test/slim/project.manifest","remoteVersionUrl":"https://test.kingsome.cn/game2006/test/slim/version.manifest","version":"0.3.0"}
|
||||
{"packageUrl":"https://www.cebg.games/pubgv4/","remoteManifestUrl":"https://www.cebg.games/pubgv4/project.manifest","remoteVersionUrl":"https://www.cebg.games/pubgv4/version.manifest","version":"0.1.0"}
|
@ -3,8 +3,7 @@ var path = require('path');
|
||||
var crypto = require('crypto');
|
||||
|
||||
//远程服务器所在的url
|
||||
|
||||
var url = 'https://test.kingsome.cn/game2006/test/slim/';
|
||||
var url = 'https://www.cebg.games/pubgv4/';
|
||||
|
||||
var manifest = {
|
||||
packageUrl: url,
|
||||
|
Loading…
x
Reference in New Issue
Block a user