Add command bar component

This commit is contained in:
2022-02-25 17:23:50 +08:00
parent 567c1f2ea4
commit 7fe33f2017
9 changed files with 41 additions and 7 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
div.header-bar {
padding: 0 20px;
padding: 0 10px;
box-sizing: border-box;
display: flex;
align-items: center;
@@ -11,7 +11,7 @@ div.header-bar {
vertical-align: text-bottom;
padding-right: 5px;
}
div.ms-TooltipHost {
padding: 0 5px;
overflow: hidden;
+2
View File
@@ -60,6 +60,7 @@ class HeaderBar extends Component<
setting.on("language", this.changeListener);
}
if (status) {
status.archive.on("save", this.changeListener);
status.model.on("loop", this.physicsFpsCalc);
status.renderer.on("loop", this.renderFpsCalc);
}
@@ -71,6 +72,7 @@ class HeaderBar extends Component<
setting.off("language", this.changeListener);
}
if (status) {
status.archive.off("save", this.changeListener);
status.model.off("loop", this.physicsFpsCalc);
status.renderer.off("loop", this.renderFpsCalc);
}