mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Integration of Entities into the inspector/editor so they can call back into the tool scripts for custom handling.
This commit is contained in:
parent
38c18870d3
commit
827e70d674
8 changed files with 960 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue