mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
inspector cleanups
clustering work for datablocks for both consistent scanning for object parameters, as well as an eye towards orgainizing things to make reviewing what variations of components we'll be needing down the line clearer
This commit is contained in:
parent
23895e365a
commit
f07c8745b2
27 changed files with 692 additions and 700 deletions
|
|
@ -295,21 +295,22 @@ bool DebrisData::preload(bool server, String &errorStr)
|
|||
|
||||
void DebrisData::initPersistFields()
|
||||
{
|
||||
addGroup("Display");
|
||||
addField("texture", TypeString, Offset(textureName, DebrisData),
|
||||
"@brief Texture imagemap to use for this debris object.\n\nNot used any more.\n", AbstractClassRep::FIELD_HideInInspectors);
|
||||
|
||||
INITPERSISTFIELD_SHAPEASSET(Shape, DebrisData, "Shape to use for this debris object.");
|
||||
endGroup("Display");
|
||||
addGroup("Shapes");
|
||||
addField("texture", TypeString, Offset(textureName, DebrisData),
|
||||
"@brief Texture imagemap to use for this debris object.\n\nNot used any more.\n", AbstractClassRep::FIELD_HideInInspectors);
|
||||
INITPERSISTFIELD_SHAPEASSET(Shape, DebrisData, "Shape to use for this debris object.");
|
||||
endGroup("Shapes");
|
||||
|
||||
addGroup("Particle Effects");
|
||||
addField("emitters", TYPEID< ParticleEmitterData >(), Offset(emitterList, DebrisData), DDC_NUM_EMITTERS,
|
||||
"@brief List of particle emitters to spawn along with this debris object.\n\nThese are optional. You could have Debris made up of only a shape.\n");
|
||||
addGroup("Particle Effects");
|
||||
addGroup("Datablocks");
|
||||
addField("emitters", TYPEID< ParticleEmitterData >(), Offset(emitterList, DebrisData), DDC_NUM_EMITTERS,
|
||||
"@brief List of particle emitters to spawn along with this debris object.\n\nThese are optional. You could have Debris made up of only a shape.\n");
|
||||
addField("explosion", TYPEID< ExplosionData >(), Offset(explosion, DebrisData),
|
||||
"@brief ExplosionData to spawn along with this debris object.\n\nThis is optional as not all Debris explode.\n");
|
||||
endGroup("Datablocks");
|
||||
|
||||
addGroup("Physical Properties");
|
||||
addGroup("Physics");
|
||||
addField("elasticity", TypeF32, Offset(elasticity, DebrisData),
|
||||
"@brief A floating-point value specifying how 'bouncy' this object is.\n\nMust be in the range of -10 to 10.\n");
|
||||
addField("friction", TypeF32, Offset(friction, DebrisData),
|
||||
|
|
@ -338,7 +339,7 @@ void DebrisData::initPersistFields()
|
|||
"@brief Use mass calculations based on radius.\n\nAllows for the adjustment of elasticity and friction based on the Debris size.\n@see baseRadius\n");
|
||||
addField("baseRadius", TypeF32, Offset(baseRadius, DebrisData),
|
||||
"@brief Radius at which the standard elasticity and friction apply.\n\nOnly used when useRaduisMass is true.\n@see useRadiusMass.\n");
|
||||
endGroup("Physical Properties");
|
||||
endGroup("Physics");
|
||||
|
||||
addGroup("Behavior");
|
||||
addField("explodeOnMaxBounce", TypeBool, Offset(explodeOnMaxBounce, DebrisData),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue