mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-04 10:54:33 +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);
|
||||
|
||||
@@ -2,20 +2,6 @@ import { ref } from 'vue';
|
||||
|
||||
// todo: 优化开启控制器
|
||||
|
||||
export const showStatusBar = ref(false);
|
||||
export const showStudiedSkill = ref(false);
|
||||
export const startOpened = ref(true);
|
||||
|
||||
export const transition = ref(true);
|
||||
export const noClosePanel = ref(false);
|
||||
|
||||
export const startAnimationEnded = ref(false);
|
||||
|
||||
export default function init() {
|
||||
return {
|
||||
transition,
|
||||
showStatusBar,
|
||||
showStudiedSkill,
|
||||
startAnimationEnded
|
||||
};
|
||||
return {};
|
||||
}
|
||||
Reference in new issue
Block a user