This commit is contained in:
PC-20230316NUNE\Administrator
2024-01-17 00:05:44 +08:00
parent 68e0f81616
commit 8ad2313502
57 changed files with 12231 additions and 2286 deletions

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "a02d7ff0-fe8f-4970-be6d-5d7c6be4c220",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,28 @@
import { _decorator, Component, Node } from 'cc';
import JNScrollViewItem from '../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollViewItem';
import { TB } from '../../config/data/schema';
import { Label } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('DungeonShowItem')
export class DungeonShowItem extends JNScrollViewItem<TB.TbGSysDungeon> {
//副本名称
@property(Label)
title:Label;
onInit(){
this.onUpdateView();
}
onUpdateView(){
this.title.string = this.data.name;
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "337e32c7-5580-4897-925b-19deb6621d34",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,27 @@
import { _decorator, Component, Node } from 'cc';
import { JNGLayerBase } from '../../components/JNComponent';
import { TD } from '../../App';
import JNScrollView from '../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollView';
const { ccclass, property } = _decorator;
@ccclass('DungeonView')
export class DungeonView extends JNGLayerBase {
@property(JNScrollView)
views:JNScrollView
onJNLoad(data?: any): void {
super.onJNLoad(data);
this.onUpdateView();
}
onUpdateView(){
//显示全部副本
this.views.refreshData(TD.TbGSysDungeon.getDataList());
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "aa8b9c47-a4d4-49bb-a26e-2b78a7f60d0b",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -116,6 +116,11 @@ export class MainView extends JNGLayerBase {
GOnHookManager.getIns().onNextLevel();
}
//点击进入副本
onClickDungeon(){
app.layer.Open(GUI.DungeonView);
}
}

View File

@@ -25,6 +25,9 @@ export enum GUI{
MainOnHookView = "MainOnHookView", //挂机弹窗
MapSelectView = "MapSelectView", //地图选择页面
/** 副本 */
DungeonView = "DungeonView", //副本页面
/**宠物 */
PetUpStarView = "PetUpStarView", //宠物升星页面
@@ -158,6 +161,15 @@ const UINoviceConfig:{ [key: string]: JNLayerInfo; } = {
}
//副本页面
const UIDungeonConfig:{ [key: string]: JNLayerInfo; } = {
[GUI.DungeonView]:{
layer:GLayer.Popup,
uri: "prefab/ui/副本页面/副本页面",
anims:BackOutScale
}
}
//游戏模式页面
const UIGModeConfig:{ [key: string]: JNLayerInfo; } = {
@@ -214,6 +226,7 @@ export const UIConfig:{ [key: string]: JNLayerInfo; } = {
...UINoviceConfig, //新手引导页面
...UIMainConfig, //主页面
...UIPetConfig, //宠物页面
...UIDungeonConfig, //副本页面
...UIGModeConfig, //游戏模式页面
}