MainPanel.js 805 B

12345678910111213141516171819
  1. class MainPanel {
  2. constructor(app) {
  3. this.app = app;
  4. this.panels_znyg = [];
  5. this.panels_znjk = [];
  6. this.panels_znef = [];
  7. this.toolBar = null;
  8. this.toolImgs = {};
  9. this.isExpandBuilding = false;
  10. this.createToolsPanel();
  11. this.building = this.app.buildings[0];
  12. }
  13. // 创建工具面板
  14. createToolsPanel() {
  15. var that = this;
  16. // this.toolBar = THING.widget.ToolBar({ width: '12%', media: true,captionPos:'hover',opacity:0.5});
  17. this.toolBar = THING.widget.Banner({ column: 'left', width: '20px', media: true, captionPos: 'hover', opacity: 0.8 });
  18. this.toolBar.data = { znsx: false, enterBuilding: false, expandBuilding: false, deviceShow: false, electricalFire: false };