mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交配置表
This commit is contained in:
@@ -26,10 +26,10 @@ import { JAPI, JAPIConfig } from "../../extensions/ngame/assets/ngame/util/JAPI"
|
||||
import { AppData } from "./AppData";
|
||||
import AppAction from "./AppAction";
|
||||
|
||||
let APIPath = `http://localhost:8080`
|
||||
let WsPath = `ws://localhost:8080/websocket`
|
||||
// let APIPath = `http://192.168.0.123:8080`
|
||||
// let WsPath = `ws://192.168.0.123:8080/websocket`
|
||||
// let APIPath = `http://localhost:8080`
|
||||
// let WsPath = `ws://localhost:8080/websocket`
|
||||
let APIPath = `http://192.168.0.174:8080`
|
||||
let WsPath = `ws://192.168.0.174:8080/websocket`
|
||||
// let APIPath = `https://api.pet.jisol.cn`
|
||||
// let WsPath = `wss://api.pet.jisol.cn/websocket`
|
||||
|
||||
|
@@ -5,6 +5,7 @@ import { GUI } from "../UIConfig";
|
||||
import NoviceManager from "../../manager/NoviceManager";
|
||||
import { JNGLayerBase } from "../../components/JNComponent";
|
||||
import { app } from "../../App";
|
||||
import { lerp } from "cc";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('LoadingView')
|
||||
@@ -22,7 +23,7 @@ export default class LoadingView extends JNGLayerBase {
|
||||
update(dt:number){
|
||||
if(app.loading.getCurrentInfo())
|
||||
this.label.string = app.loading.getCurrentInfo().title;
|
||||
this.progress.progress = app.loading.progress();
|
||||
this.progress.progress = lerp(this.progress.progress,app.loading.progress(),dt);
|
||||
if(!this.isOk && app.loading.isAllSuccess()){
|
||||
this.isOk = true;
|
||||
this.onSuccess();
|
||||
|
Reference in New Issue
Block a user