mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 02:23:47 +00:00
clean up "Add" menubar categoes on the 3d object side via the following:
SceneObject now defaults to a category of "misc" getCategoryOfClass now checks parent classes for what categories they hold so that variants can inherit categories are in one of a few rough groups and subgroups depending on actual mapper needs/usages
This commit is contained in:
parent
edbb76155b
commit
fbcfe02098
157 changed files with 127 additions and 131 deletions
|
|
@ -253,6 +253,7 @@ class VolumetricFog : public SceneObject
|
|||
void onShapeChanged() {}
|
||||
|
||||
DECLARE_CONOBJECT(VolumetricFog);
|
||||
DECLARE_CATEGORY("Environment \t Weather");
|
||||
|
||||
DECLARE_CALLBACK(void, onEnterFog, (SimObjectId obj));
|
||||
DECLARE_CALLBACK(void, onLeaveFog, (SimObjectId obj));
|
||||
|
|
|
|||
|
|
@ -83,8 +83,9 @@ class VolumetricFogRTManager : public SceneObject
|
|||
U32 DecFogObjects();
|
||||
|
||||
DECLARE_CONOBJECT(VolumetricFogRTManager);
|
||||
DECLARE_CATEGORY("UNLISTED");
|
||||
};
|
||||
|
||||
extern VolumetricFogRTManager* gVolumetricFogRTManager;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ public:
|
|||
virtual ~BasicClouds() {}
|
||||
|
||||
DECLARE_CONOBJECT( BasicClouds );
|
||||
DECLARE_CATEGORY("Environment \t Weather");
|
||||
|
||||
// ConsoleObject
|
||||
virtual bool onAdd();
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ public:
|
|||
virtual ~CloudLayer() {}
|
||||
|
||||
DECLARE_CONOBJECT( CloudLayer );
|
||||
DECLARE_CATEGORY("Environment \t Weather");
|
||||
|
||||
// ConsoleObject
|
||||
virtual bool onAdd();
|
||||
|
|
|
|||
|
|
@ -154,6 +154,7 @@ public:
|
|||
~DecalRoad();
|
||||
|
||||
DECLARE_CONOBJECT(DecalRoad);
|
||||
DECLARE_CATEGORY("Environment \t BackGround");
|
||||
|
||||
// ConsoleObject
|
||||
static void initPersistFields();
|
||||
|
|
|
|||
|
|
@ -509,6 +509,7 @@ public:
|
|||
~MeshRoad();
|
||||
|
||||
DECLARE_CONOBJECT(MeshRoad);
|
||||
DECLARE_CATEGORY("Environment \t BackGround");
|
||||
|
||||
// ConObject.
|
||||
static void initPersistFields();
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ public:
|
|||
|
||||
// ConsoleObject
|
||||
DECLARE_CONOBJECT(ScatterSky);
|
||||
DECLARE_CATEGORY("Environment \t Background");
|
||||
void inspectPostApply();
|
||||
static void initPersistFields();
|
||||
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ public:
|
|||
virtual ~SkyBox();
|
||||
|
||||
DECLARE_CONOBJECT( SkyBox );
|
||||
DECLARE_CATEGORY("Environment \t Background");
|
||||
|
||||
// SimObject
|
||||
void onStaticModified( const char *slotName, const char *newValue );
|
||||
|
|
@ -129,4 +130,4 @@ protected:
|
|||
BaseMatInstance* _getMaterialInstance();
|
||||
};
|
||||
|
||||
#endif // _SKYBOX_H_
|
||||
#endif // _SKYBOX_H_
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ public:
|
|||
virtual ~SkySphere();
|
||||
|
||||
DECLARE_CONOBJECT(SkySphere);
|
||||
DECLARE_CATEGORY("Environment \t Background");
|
||||
|
||||
// SimObject
|
||||
void onStaticModified(const char* slotName, const char* newValue);
|
||||
|
|
|
|||
|
|
@ -116,7 +116,8 @@ public:
|
|||
virtual void onRemove();
|
||||
|
||||
// ConsoleObject
|
||||
DECLARE_CONOBJECT(Sun);
|
||||
DECLARE_CONOBJECT(Sun);
|
||||
DECLARE_CATEGORY("Lighting \t Lights");
|
||||
static void initPersistFields();
|
||||
void inspectPostApply();
|
||||
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ public:
|
|||
static void initPersistFields();
|
||||
static void consoleInit();
|
||||
DECLARE_CONOBJECT( TimeOfDay );
|
||||
DECLARE_CATEGORY("Environment \t Weather");
|
||||
void inspectPostApply();
|
||||
|
||||
// SimObject
|
||||
|
|
@ -209,4 +210,4 @@ protected:
|
|||
};
|
||||
|
||||
|
||||
#endif // _TIMEOFDAY_H_
|
||||
#endif // _TIMEOFDAY_H_
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@ public:
|
|||
virtual ~WaterObject();
|
||||
|
||||
DECLARE_CONOBJECT( WaterObject );
|
||||
DECLARE_CATEGORY("Environment \t Water");
|
||||
|
||||
// ConsoleObject
|
||||
static void consoleInit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue