提交上阵

This commit is contained in:
PC-20230316NUNE\Administrator
2023-11-15 18:38:00 +08:00
parent d1783204ad
commit 391ce959cb
38 changed files with 3875 additions and 121 deletions

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "0c3951ab-4554-4998-ad31-2acc45233dbd",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "231e3614-8fc2-4590-bc9f-57ff63343f85",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,30 @@
import { _decorator, Component, Node } from 'cc';
import PlayerTacticalData from '../../../data/PlayerTacticalData';
import { app } from '../../../App';
import { GUI } from '../../UIConfig';
const { ccclass, property } = _decorator;
@ccclass('PlayerTacticalItem')
export class PlayerTacticalItem extends Component {
//阵法的Index;
index:number;
//初始化阵法
onInit(index:number){
this.index = index;
}
//更新信息
onUpdateView(){
PlayerTacticalData.getIns().getItem(this.index);
}
//点击
onClick(){
app.layer.Open(GUI.IntoBattleView);
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "78c30f1a-d1d0-4210-9fc4-f7067364f26a",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,35 @@
import { _decorator, Component, Node } from 'cc';
import { PlayerTacticalItem } from './PlayerTacticalItem';
const { ccclass, property } = _decorator;
/**
* 玩家阵法
*/
@ccclass('PlayerTacticalView')
export class PlayerTacticalView extends Component {
//阵法子节点列表
items:PlayerTacticalItem[] = [];
// onLoad(){
// //阵法
// this.items = this.node.getComponentsInChildren(PlayerTacticalItem);
// this.items.forEach((item,index) => item.onInit(index));
// this.onUpdateView();
// }
// //更新阵法显示
// onUpdateView(){
// this.items.forEach(item => {
// item.onUpdateView();
// })
// }
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "a9372de8-9c71-492e-af72-cee66fd5e045",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -30,13 +30,13 @@ export class MainChatView extends JNGLayerBase {
this.onInitUpdate();
//监听消息
ChatData.getIns().on(this.onMessage.bind(this));
ChatData.getIns().on(this.onMessage.bind(this),this);
}
onJNClose(): void {
super.onJNClose();
ChatData.getIns().off(this.onMessage.bind(this));
ChatData.getIns().off(this.onMessage.bind(this),this);
}
//初始化聊天显示

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "01b33bd2-2568-49ba-a042-ba4178c96227",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,14 @@
import { _decorator, Component, Node } from 'cc';
import JNLayerBase from '../../../../extensions/ngame/assets/ngame/ui/base/JNLayerBase';
const { ccclass, property } = _decorator;
//上阵页面
@ccclass('IntoBattleView')
export class IntoBattleView extends JNLayerBase {
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "00e5f8b0-939e-4e16-aed9-2199a4b17189",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -13,13 +13,15 @@ export enum GUI{
Loading = "Loading", //加载页面
Tips = "Tips", //提示
/** 主页页面 */
MainChat = "MainChat", //主页聊天页面
/** 新手引导 */
NoviceNamingView = "NoviceNamingView", //新手引导页面 - 取名
NoviceSelectPetView = "NoviceSelectPetView", //新手引导页面 - 选择宠物
/** 主页页面 */
MainChat = "MainChat", //主页聊天页面
IntoBattleView = "IntoBattleView", //上阵页面
Home = "Home", //主页面
Main = "Main", //主页面2
}
@@ -110,6 +112,14 @@ export const UIConfig:{ [key: string]: JNLayerInfo; } = {
backInfo:{key:"position",start:v3(0,0,0),end:v3(-720,0,0)}
},
},
[GUI.IntoBattleView]:{
layer:GLayer.View,
uri: "prefab/ui/阵法/IntoBattleView",
anims:{
front:JNLayerAnim.BackOutOpen,
back:JNLayerAnim.BackInClose
},
},
...UISystemConfig, //系统页面
...UINoviceConfig, //新手引导页面
...UIMainConfig, //主页面