|
@@ -1,6 +1,7 @@
|
|
import { Node, Prefab, instantiate, resources } from "cc";
|
|
import { Node, Prefab, instantiate, resources } from "cc";
|
|
import { audioManager } from "./audioManager";
|
|
import { audioManager } from "./audioManager";
|
|
import { config } from "../config";
|
|
import { config } from "../config";
|
|
|
|
+import { SdkUtil } from "../sdkUtil";
|
|
|
|
|
|
export class uiManager {
|
|
export class uiManager {
|
|
private static instance:uiManager =null;
|
|
private static instance:uiManager =null;
|
|
@@ -40,8 +41,9 @@ export class uiManager {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
- public showLoading(){
|
|
|
|
|
|
+ public showLoading(title:string=''){
|
|
if(this.loading_view!=null){
|
|
if(this.loading_view!=null){
|
|
|
|
+ SdkUtil.showLoading(title)
|
|
this.loading_view.active = true
|
|
this.loading_view.active = true
|
|
}else{
|
|
}else{
|
|
console.error("loading view not init..")
|
|
console.error("loading view not init..")
|
|
@@ -50,6 +52,7 @@ export class uiManager {
|
|
|
|
|
|
public hideLoading(){
|
|
public hideLoading(){
|
|
if(this.loading_view!=null){
|
|
if(this.loading_view!=null){
|
|
|
|
+ SdkUtil.hideLoading()
|
|
this.loading_view.active = false
|
|
this.loading_view.active = false
|
|
}else{
|
|
}else{
|
|
console.error("loading view not init..")
|
|
console.error("loading view not init..")
|