Commit 7f300826 authored by 任建锋's avatar 任建锋

rjf

parent 23442df2
{
"name": "yt",
"version": "1.0.16",
"description": "基于Babylonjs的3D框架",
"main": "./dist/index.js",
"types": "./types/index.d.ts",
"scripts": {
},
"author": "",
"license": "ISC",
"dependencies": {
"duiba-tc": "git+ssh://git@gitlab2.dui88.com:clq/tc.git#1.0"
}
}
\ No newline at end of file
import {YtResourceData} from "./interface/YtResourceData";
import {YtFileData} from "./interface/YtFileData";
import {YtModuleName} from "./enum/YtModuleName";
import {YtLang} from "./util/YtLang";
import {YtAssetsManager} from "./manager/YtAssetsManager";
import {YtGuiManager} from "./manager/YtGuiManager";
import {YtSceneManager} from "./manager/YtSceneManager";
import {YtModuleManager} from "./manager/YtModuleManager";
import {YtAnimationCon} from "./others/YtAnimationCon";
import {YtAnimationGui} from "./others/YtAnimationGui";
import {YtParticleCon} from "./others/YtParticleCon";
import {YtGuiCreate} from "./others/YtGuiCreate";
import {YtModule} from "./module/YtModule";
import {YtDisplayPool} from "./others/YtDisplayPool";
import {YtMsgModule} from "./module/YtMsgModule"
import {YtLoadingModule} from "./module/YtLoadingModule";
import {YtWaitingModule} from "./module/YtWaitingModule";
import {YtPanelModule} from "./module/YtPanelModule";
export {
//UI创建和scene创建
YtModule,YtDisplayPool,YtMsgModule,YtLoadingModule,YtWaitingModule,YtPanelModule,
//other
YtAnimationCon,YtAnimationGui,YtParticleCon,YtGuiCreate,
//接口
YtResourceData,YtFileData,
//枚举
YtModuleName,
//工具
YtLang,
//管理器
YtAssetsManager,YtGuiManager,YtSceneManager,YtModuleManager,
}
\ No newline at end of file
import {YtPanelModule} from "./YtPanelModule";
import {YtDisplayPool} from "../others/YtDisplayPool";
import {YtModuleName} from "../enum/YtModuleName";
import { YtIMsgData } from '../interface/YtIMsgData';
export class YtMsgModule extends YtPanelModule {
constructor(){
super()
}
public init(){
YtDisplayPool.ins.displayPool[YtModuleName.MSG_PANEL]=this;
}
/**
* 添加事件
* */
protected addEvent(){
if(this.view.closeBtn){
this.doEvents["closeBtn"]=this.addClick(this.view.closeBtn,this.onClick_closeBtn.bind(this))
}
}
protected onClick_closeBtn():void{
this.enableMouseEvt(false)
this.hide();
}
protected removeEvent(){
this.enableMouseEvt(true)
if(this.view.closeBtn){
this.view.closeBtn.onPointerUpObservable.remove(this.doEvents["closeBtn"])
}
}
/**
* 更新提示文案
*/
protected updateMsgTxt(msgTxt: string): void {
if (this.view.msgTxt) {
this.view.msgTxt.text = msgTxt;
}
}
/**
* 更新确定按钮文案
*/
protected updateSureBtnTxt(btnTxt: string): void {
if (this.view.sureBtn) {
this.view.sureBtn.children[0].text = btnTxt;
}
}
/**
* 更新取消按钮文案
*/
protected updateCancelBtnTxt(btnTxt: string): void {
if (this.view.cancelBtn) {
this.view.cancelBtn.children[0].text = btnTxt;
}
}
/**
* 更新页面
* @param args
*/
public updateData(msgData: YtIMsgData, ...args): void {
if(msgData.msg){
this.updateMsgTxt(msgData.msg);
}
if(msgData.sureBtnTxt){
this.updateSureBtnTxt(msgData.sureBtnTxt);
}
if(msgData.cancelBtnTxt){
this.updateCancelBtnTxt(msgData.cancelBtnTxt);
}
}
}
\ No newline at end of file
......@@ -25,7 +25,7 @@ exports.YtModule = YtModule_1.YtModule;
var YtDisplayPool_1 = require("./others/YtDisplayPool");
exports.YtDisplayPool = YtDisplayPool_1.YtDisplayPool;
var YtMsgModule_1 = require("./module/YtMsgModule");
exports.MsgModule = YtMsgModule_1.MsgModule;
exports.YtMsgModule = YtMsgModule_1.YtMsgModule;
var YtLoadingModule_1 = require("./module/YtLoadingModule");
exports.YtLoadingModule = YtLoadingModule_1.YtLoadingModule;
var YtWaitingModule_1 = require("./module/YtWaitingModule");
......
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAGA,oDAAiD;AA4B7C,uBA5BI,2BAAY,CA4BJ;AA3BhB,wCAAqC;AA8BjC,iBA9BI,eAAM,CA8BJ;AA7BV,6DAA0D;AAgCtD,0BAhCI,iC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QK;AAP1B,oDAAgD;AAOrB,sBAPnB,yBAAW,CAOmB;AANtC,4DAAyD;AAMlB,0BAN/B,iCAAe,CAM+B;AALtD,4DAAyD;AAKF,0BAL/C,iCAAe,CAK+C;AAJtE,wDAAqD;AAIkB,wBAJ/D,6BAAa,CAI+D"}
\ No newline at end of file
......@@ -13,27 +13,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
var YtPanelModule_1 = require("./YtPanelModule");
var YtDisplayPool_1 = require("../others/YtDisplayPool");
var YtModuleName_1 = require("../enum/YtModuleName");
var MsgModule = /** @class */ (function (_super) {
__extends(MsgModule, _super);
function MsgModule() {
var YtMsgModule = /** @class */ (function (_super) {
__extends(YtMsgModule, _super);
function YtMsgModule() {
return _super.call(this) || this;
}
MsgModule.prototype.init = function () {
YtMsgModule.prototype.init = function () {
YtDisplayPool_1.YtDisplayPool.ins.displayPool[YtModuleName_1.YtModuleName.MSG_PANEL] = this;
};
/**
* 添加事件
* */
MsgModule.prototype.addEvent = function () {
YtMsgModule.prototype.addEvent = function () {
if (this.view.closeBtn) {
this.doEvents["closeBtn"] = this.addClick(this.view.closeBtn, this.onClick_closeBtn.bind(this));
}
};
MsgModule.prototype.onClick_closeBtn = function () {
YtMsgModule.prototype.onClick_closeBtn = function () {
this.enableMouseEvt(false);
this.hide();
};
MsgModule.prototype.removeEvent = function () {
YtMsgModule.prototype.removeEvent = function () {
this.enableMouseEvt(true);
if (this.view.closeBtn) {
this.view.closeBtn.onPointerUpObservable.remove(this.doEvents["closeBtn"]);
......@@ -42,7 +42,7 @@ var MsgModule = /** @class */ (function (_super) {
/**
* 更新提示文案
*/
MsgModule.prototype.updateMsgTxt = function (msgTxt) {
YtMsgModule.prototype.updateMsgTxt = function (msgTxt) {
if (this.view.msgTxt) {
this.view.msgTxt.text = msgTxt;
}
......@@ -50,7 +50,7 @@ var MsgModule = /** @class */ (function (_super) {
/**
* 更新确定按钮文案
*/
MsgModule.prototype.updateSureBtnTxt = function (btnTxt) {
YtMsgModule.prototype.updateSureBtnTxt = function (btnTxt) {
if (this.view.sureBtn) {
this.view.sureBtn.children[0].text = btnTxt;
}
......@@ -58,7 +58,7 @@ var MsgModule = /** @class */ (function (_super) {
/**
* 更新取消按钮文案
*/
MsgModule.prototype.updateCancelBtnTxt = function (btnTxt) {
YtMsgModule.prototype.updateCancelBtnTxt = function (btnTxt) {
if (this.view.cancelBtn) {
this.view.cancelBtn.children[0].text = btnTxt;
}
......@@ -67,7 +67,7 @@ var MsgModule = /** @class */ (function (_super) {
* 更新页面
* @param args
*/
MsgModule.prototype.updateData = function (msgData) {
YtMsgModule.prototype.updateData = function (msgData) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
......@@ -82,7 +82,7 @@ var MsgModule = /** @class */ (function (_super) {
this.updateCancelBtnTxt(msgData.cancelBtnTxt);
}
};
return MsgModule;
return YtMsgModule;
}(YtPanelModule_1.YtPanelModule));
exports.MsgModule = MsgModule;
exports.YtMsgModule = YtMsgModule;
//# sourceMappingURL=YtMsgModule.js.map
\ No newline at end of file
{"version":3,"file":"YtMsgModule.js","sourceRoot":"","sources":["../../src/module/YtMsgModule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA8C;AAC9C,yDAAsD;AACtD,qDAAkD;AAGlD;IAA+B,6BAAa;IAExC;eACI,iBAAO;IACX,CAAC;IAEM,wBAAI,GAAX;QACI,6BAAa,CAAC,GAAG,CAAC,WAAW,CAAC,2BAAY,CAAC,SAAS,CAAC,GAAC,IAAI,CAAC;IAC/D,CAAC;IAED;;SAEK;IACK,4BAAQ,GAAlB;QACI,IAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAC;YAClB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;SAC/F;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AtB,UAAuB,MAAc;QACjC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAClB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC;SAClC;IACL,CAAC;IAED;;OAEG;IACO,sCAAgB,GAA1B,UAA2B,MAAc;QACrC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACnB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC;SAC/C;IACL,CAAC;IAED;;OAEG;IACO,wCAAkB,GAA5B,UAA6B,MAAc;QACvC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACrB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC;SACjD;IACL,CAAC;IAED;;;OAGG;IACI,gCAAU,GAAjB,UAAkB,OAAmB;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;QAC1C,IAAG,OAAO,CAAC,GAAG,EAAC;YACX,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SAClC;QACD,IAAG,OAAO,CAAC,UAAU,EAAC;YAClB,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC7C;QACD,IAAG,OAAO,CAAC,YAAY,EAAC;YACpB,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;SACjD;IACL,CAAC;IACL,kBAAC;AAAD,CAAC,AA5ED,CAAiC,6BAAa,GA4E7C;AA5EY,kCAAW"}
\ No newline at end of file
{
"name": "yt",
"version": "1.0.15",
"version": "1.0.16",
"description": "基于Babylonjs的3D框架",
"main": "./dist/index.js",
"types": "./types/index.d.ts",
......
......@@ -13,14 +13,14 @@ import {YtParticleCon} from "./others/YtParticleCon";
import {YtGuiCreate} from "./others/YtGuiCreate";
import {YtModule} from "./module/YtModule";
import {YtDisplayPool} from "./others/YtDisplayPool";
import {MsgModule} from "./module/YtMsgModule"
import {YtMsgModule} from "./module/YtMsgModule"
import {YtLoadingModule} from "./module/YtLoadingModule";
import {YtWaitingModule} from "./module/YtWaitingModule";
import {YtPanelModule} from "./module/YtPanelModule";
export {
//UI创建和scene创建
YtModule,YtDisplayPool,MsgModule,YtLoadingModule,YtWaitingModule,YtPanelModule,
YtModule,YtDisplayPool,YtMsgModule,YtLoadingModule,YtWaitingModule,YtPanelModule,
//other
YtAnimationCon,YtAnimationGui,YtParticleCon,YtGuiCreate,
......
......@@ -3,7 +3,7 @@ import {YtDisplayPool} from "../others/YtDisplayPool";
import {YtModuleName} from "../enum/YtModuleName";
import { YtIMsgData } from '../interface/YtIMsgData';
export class MsgModule extends YtPanelModule {
export class YtMsgModule extends YtPanelModule {
constructor(){
super()
......
......@@ -12,8 +12,8 @@ import { YtParticleCon } from "./others/YtParticleCon";
import { YtGuiCreate } from "./others/YtGuiCreate";
import { YtModule } from "./module/YtModule";
import { YtDisplayPool } from "./others/YtDisplayPool";
import { MsgModule } from "./module/YtMsgModule";
import { YtMsgModule } from "./module/YtMsgModule";
import { YtLoadingModule } from "./module/YtLoadingModule";
import { YtWaitingModule } from "./module/YtWaitingModule";
import { YtPanelModule } from "./module/YtPanelModule";
export { YtModule, YtDisplayPool, MsgModule, YtLoadingModule, YtWaitingModule, YtPanelModule, YtAnimationCon, YtAnimationGui, YtParticleCon, YtGuiCreate, YtResourceData, YtFileData, YtModuleName, YtLang, YtAssetsManager, YtGuiManager, YtSceneManager, YtModuleManager };
export { YtModule, YtDisplayPool, YtMsgModule, YtLoadingModule, YtWaitingModule, YtPanelModule, YtAnimationCon, YtAnimationGui, YtParticleCon, YtGuiCreate, YtResourceData, YtFileData, YtModuleName, YtLang, YtAssetsManager, YtGuiManager, YtSceneManager, YtModuleManager };
import { YtPanelModule } from "./YtPanelModule";
import { YtIMsgData } from '../interface/YtIMsgData';
export declare class MsgModule extends YtPanelModule {
export declare class YtMsgModule extends YtPanelModule {
constructor();
init(): void;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment