mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
9
JisolGameCocos/assets/script/ui/Home.meta
Normal file
9
JisolGameCocos/assets/script/ui/Home.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "cd3ec3e2-0338-4821-b0b4-77166dea08b0",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
17
JisolGameCocos/assets/script/ui/Home/HomeView.ts
Normal file
17
JisolGameCocos/assets/script/ui/Home/HomeView.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { _decorator, Component, Label, Node } from 'cc';
|
||||
import { app, JNGLayerBase } from '../../App';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('HomeView')
|
||||
export class HomeView extends JNGLayerBase {
|
||||
|
||||
@property(Label)
|
||||
frameText:Label;
|
||||
|
||||
update(){
|
||||
this.frameText.string = `当前帧数: ${app.sync.frame}`;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
9
JisolGameCocos/assets/script/ui/Home/HomeView.ts.meta
Normal file
9
JisolGameCocos/assets/script/ui/Home/HomeView.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "15051ada-4206-4de8-9e48-0a063639f492",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
14
JisolGameCocos/assets/script/ui/UIConfig.ts
Normal file
14
JisolGameCocos/assets/script/ui/UIConfig.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { JNLayerInfo } from "../../../extensions/ngame/assets/ngame/ui/JNLayer";
|
||||
|
||||
export enum GLayer{
|
||||
View = "View",
|
||||
}
|
||||
|
||||
export enum GUI{
|
||||
Home = "Home",
|
||||
}
|
||||
|
||||
export const UIConfig:{ [key: string]: JNLayerInfo; } = {
|
||||
[GUI.Home]:{ layer:GLayer.View, uri: "prefab/ui/Home/HomeView"}
|
||||
}
|
||||
|
9
JisolGameCocos/assets/script/ui/UIConfig.ts.meta
Normal file
9
JisolGameCocos/assets/script/ui/UIConfig.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "08b7edc1-2a78-4e26-9de4-2de41a3ac1bd",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user