mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-02 00:14:30 +08:00
refactor: fixedUi迁移
This commit is contained in:
1 parent
0ed7e03f40
commit
4796334ec4
15 files changed
+35
-66
No files matched your search
@@ -56,7 +56,9 @@ export {};
|
||||
control.prototype.showStatusBar = function () {
|
||||
if (main.mode == 'editor') return;
|
||||
core.removeFlag('hideStatusBar');
|
||||
mota.plugin.ui.showStatusBar.value = true;
|
||||
if (!mota.ui.fixed.hasName('statusBar')) {
|
||||
mota.ui.fixed.open('statusBar');
|
||||
}
|
||||
core.dom.tools.hard.style.display = 'block';
|
||||
core.dom.toolBar.style.display = 'block';
|
||||
};
|
||||
@@ -67,7 +69,7 @@ export {};
|
||||
// 如果原本就是隐藏的,则先显示
|
||||
if (!core.domStyle.showStatusBar) this.showStatusBar();
|
||||
if (core.isReplaying()) showToolbox = true;
|
||||
mota.plugin.ui.showStatusBar.value = false;
|
||||
mota.ui.fixed.closeByName('statusBar');
|
||||
|
||||
var toolItems = core.dom.tools;
|
||||
core.setFlag('hideStatusBar', true);
|
||||
|
||||
Reference in new issue
Block a user