Integration of Entities into the inspector/editor so they can call back into the tool scripts for custom handling.

This commit is contained in:
Areloch 2016-05-14 14:12:53 -05:00
parent 38c18870d3
commit 827e70d674
8 changed files with 960 additions and 5 deletions

View file

@ -75,7 +75,10 @@ class GuiTreeViewCtrl : public GuiArrayCtrl
ShowClassName = BIT( 11 ),
ShowObjectName = BIT( 12 ),
ShowInternalName = BIT( 13 ),
ShowClassNameForUnnamed = BIT( 14 )
ShowClassNameForUnnamed = BIT( 14 ),
ForceItemName = BIT(15),
ForceDragTarget = BIT(16),
DenyDrag = BIT(17),
};
GuiTreeViewCtrl* mParentControl;
@ -169,6 +172,14 @@ class GuiTreeViewCtrl : public GuiArrayCtrl
/// or false if it's just an item.
bool isInspectorData() const { return mState.test(InspectorData); };
/// Returns true if we've been manually set to allow dragging overrides.
/// As it's a manually set flag, by default it is false.
bool isDragTargetAllowed() const { return mState.test(ForceDragTarget); };
/// Returns true if we've been manually set to allow dragging overrides.
/// As it's a manually set flag, by default it is false.
bool isDragAllowed() const { return !mState.test(DenyDrag); };
/// Returns true if we should show the expand art
/// and make the item interact with the mouse as if
/// it were a parent.