mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
9
JisolGameCocos/assets/script/ui/Dungeon.meta
Normal file
9
JisolGameCocos/assets/script/ui/Dungeon.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "a02d7ff0-fe8f-4970-be6d-5d7c6be4c220",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
28
JisolGameCocos/assets/script/ui/Dungeon/DungeonShowItem.ts
Normal file
28
JisolGameCocos/assets/script/ui/Dungeon/DungeonShowItem.ts
Normal 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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "337e32c7-5580-4897-925b-19deb6621d34",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
27
JisolGameCocos/assets/script/ui/Dungeon/DungeonView.ts
Normal file
27
JisolGameCocos/assets/script/ui/Dungeon/DungeonView.ts
Normal 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());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "aa8b9c47-a4d4-49bb-a26e-2b78a7f60d0b",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -116,6 +116,11 @@ export class MainView extends JNGLayerBase {
|
||||
GOnHookManager.getIns().onNextLevel();
|
||||
}
|
||||
|
||||
//点击进入副本
|
||||
onClickDungeon(){
|
||||
app.layer.Open(GUI.DungeonView);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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, //游戏模式页面
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user