diff --git a/src/main/python/plotlyst/env.py b/src/main/python/plotlyst/env.py index 880f09b19..decc0f48e 100644 --- a/src/main/python/plotlyst/env.py +++ b/src/main/python/plotlyst/env.py @@ -69,6 +69,9 @@ def is_dev(self) -> bool: def is_prod(self) -> bool: return self._mode == AppMode.PROD + def is_plus(self) -> bool: + return True + def test_env(self) -> bool: if os.getenv('PLOTLYST_TEST_ENV'): return True diff --git a/src/main/python/plotlyst/view/widget/world/editor.py b/src/main/python/plotlyst/view/widget/world/editor.py index 093e0aef3..e410ed81a 100644 --- a/src/main/python/plotlyst/view/widget/world/editor.py +++ b/src/main/python/plotlyst/view/widget/world/editor.py @@ -32,7 +32,7 @@ grid, flow, spacer, line, incr_icon, gc, translucent, incr_font from qthandy.filter import OpacityEventFilter, VisibilityToggleEventFilter, DisabledClickEventFilter, DragEventFilter, \ DropEventFilter -from qtmenu import MenuWidget +from qtmenu import MenuWidget, ActionTooltipDisplayMode from qttextedit.ops import Heading2Operation, Heading3Operation, InsertListOperation, InsertNumberedListOperation, \ InsertDividerOperation @@ -958,6 +958,15 @@ def __init__(self, parent=None): self.addAction(action('Timeline', IconRegistry.from_name('mdi.timeline'), slot=lambda: self.newBlockSelected.emit(WorldBuildingEntityElementType.Timeline))) + if app_env.is_plus(): + otherMenu = MenuWidget() + otherMenu.setTooltipDisplayMode(ActionTooltipDisplayMode.DISPLAY_UNDER) + tooltip = "Track fantasy elements that deviate from our world, introducing a sense of wonder into the story" + otherMenu.addAction(action('Fantasy conceits', IconRegistry.from_name('ei.magic'), tooltip=tooltip)) + otherMenu.setTitle('Other') + self.addSeparator() + self.addMenu(otherMenu) + class SideBlockAdditionMenu(MenuWidget): newSideBlockSelected = pyqtSignal(WorldBuildingEntityElementType)