Collection Manager: Tooltip fixes. Task: T69577
This commit is contained in:
parent
eb6aa304ca
commit
df01c14fdd
|
@ -22,7 +22,7 @@ bl_info = {
|
|||
"name": "Collection Manager",
|
||||
"description": "Manage collections and their objects",
|
||||
"author": "Ryan Inch",
|
||||
"version": (2, 21, 3),
|
||||
"version": (2, 21, 4),
|
||||
"blender": (2, 80, 0),
|
||||
"location": "View3D - Object Mode (Shortcut - M)",
|
||||
"warning": '', # used for warning icon and text in addons panel
|
||||
|
|
|
@ -1382,9 +1382,13 @@ class CMNewCollectionOperator(Operator):
|
|||
|
||||
|
||||
class CMPhantomModeOperator(Operator):
|
||||
'''Toggle Phantom Mode'''
|
||||
bl_label = "Toggle Phantom Mode"
|
||||
bl_idname = "view3d.toggle_phantom_mode"
|
||||
bl_description = (
|
||||
"Phantom Mode\n"
|
||||
"Saves the state of all RTOs and only allows changes to them, on exit all RTOs are returned to their saved state.\n"
|
||||
"Note: modifying collections (except RTOs) externally will exit Phantom Mode and your initial state will be lost"
|
||||
)
|
||||
|
||||
def execute(self, context):
|
||||
cm = context.scene.collection_manager
|
||||
|
|
|
@ -923,7 +923,10 @@ def draw_callback_px(self, context):
|
|||
if self.draw_tooltip:
|
||||
slot_name = internals.qcd_slots.get_name(f"{tooltip_slot_idx}")
|
||||
slot_string = f"QCD Slot {tooltip_slot_idx}: \"{slot_name}\"\n"
|
||||
hotkey_string = " * Shift+LMB - Toggle objects\' slot."
|
||||
hotkey_string = (
|
||||
" * LMB - Move objects to slot.\n"
|
||||
" * Shift+LMB - Toggle objects\' slot."
|
||||
)
|
||||
|
||||
draw_tooltip(self, context, shader, f"{slot_string}{hotkey_string}")
|
||||
|
||||
|
|
|
@ -540,14 +540,14 @@ class CM_UL_items(UIList):
|
|||
filter_by_selected: BoolProperty(
|
||||
name="Filter By Selected",
|
||||
default=False,
|
||||
description="Filter collections by selected items",
|
||||
description="Filter collections to only show the ones that contain the selected objects",
|
||||
update=lambda self, context:
|
||||
CM_UL_items.new_collections.clear(),
|
||||
)
|
||||
filter_by_qcd: BoolProperty(
|
||||
name="Filter By QCD",
|
||||
default=False,
|
||||
description="Filter collections to only show QCD slots",
|
||||
description="Filter collections to only show the ones that are QCD slots",
|
||||
update=lambda self, context:
|
||||
CM_UL_items.new_collections.clear(),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue