mirror of
https://github.com/motajs/template.git
synced 2026-12-02 20:24:31 +08:00
feat: client 上关于 mainTextboxManager 的默认主对象实例
This commit is contained in:
1 parent
6773069c24
commit
8fe1c84693
4 files changed
+32
-11
No files matched your search
@@ -29,7 +29,9 @@ import {
|
||||
ClientHotkey,
|
||||
IClientHotkey,
|
||||
MapRenderItem,
|
||||
IMapRendererInitConfig
|
||||
IMapRendererInitConfig,
|
||||
TextboxManager,
|
||||
ITextboxManager
|
||||
} from '@user/client-base';
|
||||
import { IMapRenderer, MapRenderer } from '@user/client-base';
|
||||
import {
|
||||
@@ -59,6 +61,7 @@ export class ClientCore extends CoreState implements IClientCore {
|
||||
readonly mainUIController: IUIController<IGameUIPropsBase>;
|
||||
readonly hotkey: IClientHotkey;
|
||||
readonly vueApp: App<IRenderItem>;
|
||||
readonly mainTextboxManager: ITextboxManager;
|
||||
|
||||
// Layer 5 渲染顶层 - 目前没东西
|
||||
|
||||
@@ -120,6 +123,12 @@ export class ClientCore extends CoreState implements IClientCore {
|
||||
this.vueApp.mount(this.renderer);
|
||||
|
||||
this.vueApp.provide('@defulat/materials', this.materials);
|
||||
this.vueApp.provide(
|
||||
'@default/expandMapRenderer',
|
||||
this.expandMapRenderer
|
||||
);
|
||||
|
||||
this.mainTextboxManager = new TextboxManager(this.materials);
|
||||
|
||||
this.loader.addCoreConfig('client', config.clientURL);
|
||||
|
||||
|
||||
Reference in new issue
Block a user