fix: 更新提交
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import BaseToast from "@max-studio/core/ui/BaseToast";
|
||||
import { uiConfig, UIType } from "@max-studio/core/ui/UIDecorator";
|
||||
import UIManager from "@max-studio/core/ui/UIManager";
|
||||
import { SpriteAtlas, tween, Vec3, UITransform } from "cc";
|
||||
import { SpriteAtlas, tween, Vec3 } from "cc";
|
||||
import { RichText } from "cc";
|
||||
import { _decorator, Component, Node } from "cc";
|
||||
import { _decorator, Node } from "cc";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@uiConfig({
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
import { _decorator } from "cc";
|
||||
import { _decorator, SpriteFrame } from "cc";
|
||||
|
||||
import BaseLayer from "@max-studio/core/ui/BaseLayer";
|
||||
import { uiConfig, UIType } from "@max-studio/core/ui/UIDecorator";
|
||||
import UIManager from "@max-studio/core/ui/UIManager";
|
||||
import { CommonDialogBox } from "./CommonDialogBox";
|
||||
import { CommonToast } from "./CommonToast";
|
||||
import { ResManager } from "@max-studio/core/res/ResManager";
|
||||
import { SpriteAtlas } from "cc";
|
||||
import { uiConfig } from "@max-studio/core/ui/UIDecorator";
|
||||
|
||||
const { ccclass, property, menu } = _decorator;
|
||||
const globalSpriteFrame: SpriteFrame | null = null; // 全局变量
|
||||
|
||||
@ccclass("MainUI")
|
||||
@uiConfig({
|
||||
@@ -17,6 +13,4 @@ const { ccclass, property, menu } = _decorator;
|
||||
isCache: false,
|
||||
})
|
||||
@menu("max/ui/MainUI")
|
||||
export class MainUI extends BaseLayer {
|
||||
async onShow(...args: any[]) {}
|
||||
}
|
||||
export class MainUI extends BaseLayer {}
|
||||
|
||||
@@ -17,7 +17,7 @@ const { ccclass, property, menu } = _decorator;
|
||||
export class ShopUI extends BaseLayer {
|
||||
protected onLoad(): void {
|
||||
// ProtoDefinitions.pkg1.User
|
||||
let user = new ProtoDefinitions.pkg1.User();
|
||||
const user = new ProtoDefinitions.pkg1.User();
|
||||
console.log(user, ProtoDefinitions.pkg1.User.encode(user));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user