diff --git a/src/csui/PlayerOverlay.vue b/src/csui/PlayerOverlay.vue index 4b55504..da09990 100644 --- a/src/csui/PlayerOverlay.vue +++ b/src/csui/PlayerOverlay.vue @@ -1,18 +1,10 @@ + + + + + + - - + + + @@ -65,8 +84,6 @@ v-if="settingsInitialized && uwWindowVisible" class="uw-window flex flex-col uw-clickable" :class="{'fade-out': uwWindowFadeOut}" - @mouseenter="cancelUwWindowHide" - @mouseleave="hideUwWindow()" > import PlayerUIWindow from './src/PlayerUIWindow.vue'; import GhettoContextMenu from './src/components/GhettoContextMenu.vue'; +import GhettoContextMenuItem from './src/components/GhettoContextMenuItem.vue'; +import GhettoContextMenuOption from './src/components/GhettoContextMenuOption.vue'; +import AlignmentOptionsControlComponent from './src/PlayerUiPanels/AlignmentOptionsControlComponent.vue'; import BrowserDetect from '../ext/conf/BrowserDetect'; import Logger from '../ext/lib/Logger'; import Settings from '../ext/lib/Settings'; import EventBus from '../ext/lib/EventBus'; import UIProbeMixin from './src/utils/UIProbeMixin'; +import KeyboardShortcutParserMixin from './src/utils/KeyboardShortcutParserMixin'; +import CommsMixin from './src/utils/CommsMixin'; export default { components: { PlayerUIWindow, - GhettoContextMenu + GhettoContextMenu, + GhettoContextMenuItem, + GhettoContextMenuOption, + AlignmentOptionsControlComponent, }, mixins: [ - UIProbeMixin + UIProbeMixin, + KeyboardShortcutParserMixin, + CommsMixin ], data() { return { @@ -132,6 +159,8 @@ export default { isGlobal: true, disabled: false, + contextMenuActive: false, + uiVisible: true, debugData: { resizer: {}, @@ -294,6 +323,15 @@ export default { ); }, + preventContextMenuHide() { + console.log('entered context menu ...'); + this.contextMenuActive = true; + }, + allowContextMenuHide() { + console.log('exited context menu ...'); + this.contextMenuActive = false; + }, + showUwWindow() { this.uwWindowFadeOut = false; this.uwWindowVisible = true; @@ -343,7 +381,12 @@ export default { } } - + diff --git a/src/csui/src/PlayerUIWindow.vue b/src/csui/src/PlayerUIWindow.vue index 6d51768..e8457e6 100644 --- a/src/csui/src/PlayerUIWindow.vue +++ b/src/csui/src/PlayerUIWindow.vue @@ -105,13 +105,13 @@
- + > -->
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -87,23 +81,16 @@ export default { + diff --git a/src/csui/src/components/GhettoContextMenuItem.vue b/src/csui/src/components/GhettoContextMenuItem.vue new file mode 100644 index 0000000..88839d0 --- /dev/null +++ b/src/csui/src/components/GhettoContextMenuItem.vue @@ -0,0 +1,45 @@ + + + + + diff --git a/src/csui/src/components/GhettoContextMenuOption.vue b/src/csui/src/components/GhettoContextMenuOption.vue new file mode 100644 index 0000000..b1eff63 --- /dev/null +++ b/src/csui/src/components/GhettoContextMenuOption.vue @@ -0,0 +1,21 @@ + + +