更新登录

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-08 02:32:54 +08:00
parent 0b9cf0ea9b
commit c4e2798430
34 changed files with 3330 additions and 53 deletions

View File

@@ -3,15 +3,39 @@ import { JNLayerAnim, JNLayerInfo } from "../../../extensions/ngame/assets/ngame
export enum GLayer{
View = "View",
Popup = "Popup",
Tips = "Tips",
}
export enum GUI{
Loading = "Loading",
Home = "Home",
/** 系统UI */
Login = "Login", //登录页面
Loading = "Loading", //加载页面
Tips = "Tips", //提示
Home = "Home", //主页面
}
export const UIConfig:{ [key: string]: JNLayerInfo; } = {
[GUI.Loading]:{
//系统UI
const UISystemConfig:{ [key: string]: JNLayerInfo; } = {
[GUI.Tips]:{
layer:GLayer.Tips,
uri: "prefab/ui/System/Tips/TipsView",
anims:{
front:JNLayerAnim.BackOutOpen,
back:JNLayerAnim.BackInClose
}
},
[GUI.Login]:{
layer:GLayer.Popup,
uri: "prefab/ui/System/LoginView",
anims:{
front:JNLayerAnim.BackOutOpen,
back:JNLayerAnim.BackInClose
}
},
[GUI.Loading]:{
layer:GLayer.View,
uri: "prefab/ui/Loading/LoadingView",
anims:{
@@ -19,7 +43,10 @@ export const UIConfig:{ [key: string]: JNLayerInfo; } = {
backInfo:{key:"position",start:v3(0,0,0),end:v3(-720,0,0)}
},
},
[GUI.Home]:{
}
export const UIConfig:{ [key: string]: JNLayerInfo; } = {
[GUI.Home]:{
layer:GLayer.View,
uri: "prefab/ui/Home/HomeView",
anims:{
@@ -29,5 +56,6 @@ export const UIConfig:{ [key: string]: JNLayerInfo; } = {
backInfo:{key:"position",start:v3(0,0,0),end:v3(-720,0,0)}
},
},
...UISystemConfig
}