mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Update of Particle Editor to standardize it up and utilize inspectors rather than adhoc guis
This commit is contained in:
parent
1f5a4267ac
commit
12ebebff46
31 changed files with 5091 additions and 6095 deletions
40
Engine/source/T3D/fx/particleInspectors.h
Normal file
40
Engine/source/T3D/fx/particleInspectors.h
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
#pragma once
|
||||
#ifdef TORQUE_TOOLS
|
||||
#include "gui/buttons/guiIconButtonCtrl.h"
|
||||
#endif
|
||||
|
||||
#include "gui/containers/guiStackCtrl.h"
|
||||
#include "gui/controls/guiPopUpCtrlEx.h"
|
||||
#include "gui/editor/inspector/field.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// TypeParticleList
|
||||
//-----------------------------------------------------------------------------
|
||||
DefineConsoleType(TypeParticleList, Vector<const char*>)
|
||||
|
||||
|
||||
#ifdef TORQUE_TOOLS
|
||||
//-----------------------------------------------------------------------------
|
||||
// GuiInspectorTypeGuiProfile Class
|
||||
//-----------------------------------------------------------------------------
|
||||
class GuiInspectorTypeParticleDataList : public GuiInspectorField
|
||||
{
|
||||
private:
|
||||
typedef GuiInspectorField Parent;
|
||||
|
||||
GuiStackControl* mStack;
|
||||
GuiIconButtonCtrl* mNewParticleBtn;
|
||||
GuiControl* mParticleSlot0Ctrl;
|
||||
Vector<GuiControl*> mParticleSlotList;
|
||||
|
||||
public:
|
||||
DECLARE_CONOBJECT(GuiInspectorTypeParticleDataList);
|
||||
static void consoleInit();
|
||||
|
||||
GuiControl* constructEditControl() override;
|
||||
bool updateRects() override;
|
||||
|
||||
void _populateMenu(GuiPopUpMenuCtrlEx* menu);
|
||||
GuiControl* _buildParticleEntryField(const S32& index);
|
||||
};
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue