This commit is contained in:
PC-20230316NUNE\Administrator
2023-12-10 00:58:43 +08:00
parent e4a93711bd
commit 24a498a712
23 changed files with 2020 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ export class HomeView extends JNGLayerBase {
frameText:Label;
async onLoad(){
}
update(){

View File

@@ -32,7 +32,7 @@ export class MainView extends JNGLayerBase {
//打开Demo页面
onOpenDemo(){
app.layer.Open(GUI.Home);
app.layer.Open(GUI.CampGuardianView);
}
//打开聊天页面
@@ -42,7 +42,7 @@ export class MainView extends JNGLayerBase {
//点击打开无限模式
onOpenOnHook(){
GBattleModeManager.getIns().Open(BattleMode.OnHook,true);
GBattleModeManager.getIns().Open(BattleMode.CampGuardian,true);
}
//点击PVP模式

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "3c57e80f-8355-46fc-9f1a-aea424211ea4",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,12 @@
import { _decorator, Component, Node } from 'cc';
import { JNGLayerBase } from '../../../components/JNComponent';
const { ccclass, property } = _decorator;
@ccclass('CampGuardianView')
export class CampGuardianView extends JNGLayerBase {
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "d82fe384-5188-41e0-be33-86e8344bf6c0",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -27,6 +27,7 @@ export enum GUI{
/**游戏模式页面 */
PVPModeMatchView = "PVPModeMatchView", //PVP模式匹配页面
CampGuardianView = "CampGuardianView", //阵营守护战斗页面
Home = "Home", //主页面
Main = "Main", //主页面2
@@ -131,6 +132,11 @@ const UIGModeConfig:{ [key: string]: JNLayerInfo; } = {
uri: "prefab/ui/模式/PVP/PVP匹配页面",
anims:BackOutScale
},
[GUI.CampGuardianView]:{
layer:GLayer.Popup,
uri: "prefab/ui/模式/CampGuardian/阵营守护战斗页面",
anims:BackOutScale
},
}