mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
add "docsURL" filter to assignFieldsFrom to prevent it from triggering opening web pages when inheriting values
This commit is contained in:
parent
f5a34308f9
commit
1b33b01eb1
|
|
@ -147,6 +147,7 @@ FRangeValidator spinRandFValidator(-1000.f, 1000.f);
|
|||
//-----------------------------------------------------------------------------
|
||||
void ParticleData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addFieldV( "dragCoefficient", TYPEID< F32 >(), Offset(dragCoefficient, ParticleData), &dragCoefFValidator,
|
||||
"Particle physics drag amount." );
|
||||
addField( "windCoefficient", TYPEID< F32 >(), Offset(windCoefficient, ParticleData),
|
||||
|
|
|
|||
|
|
@ -207,6 +207,7 @@ FRangeValidator phiFValidator(0.f, 360.f);
|
|||
//-----------------------------------------------------------------------------
|
||||
void ParticleEmitterData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "ParticleEmitterData" );
|
||||
|
||||
addFieldV("ejectionPeriodMS", TYPEID< S32 >(), Offset(ejectionPeriodMS, ParticleEmitterData), &ejectPeriodIValidator,
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@ EndImplementEnumType;
|
|||
|
||||
void ItemData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
Parent::initPersistFields();
|
||||
addGroup("Physics");
|
||||
addField("friction", TypeF32, Offset(friction, ItemData), "A floating-point value specifying how much velocity is lost to impact and sliding friction.");
|
||||
|
|
|
|||
|
|
@ -704,6 +704,7 @@ bool PlayerData::isJumpAction(U32 action)
|
|||
|
||||
void PlayerData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
Parent::initPersistFields();
|
||||
|
||||
addField( "pickupRadius", TypeF32, Offset(pickupRadius, PlayerData),
|
||||
|
|
|
|||
|
|
@ -534,6 +534,7 @@ bool ShapeBaseData::_setMass( void* object, const char* index, const char* data
|
|||
|
||||
void ShapeBaseData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Shapes" );
|
||||
INITPERSISTFIELD_SHAPEASSET(Shape, ShapeBaseData, "The source shape asset.");
|
||||
addField("computeCRC", TypeBool, Offset(computeCRC, ShapeBaseData),
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ bool TriggerData::onAdd()
|
|||
|
||||
void TriggerData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup("Callbacks");
|
||||
|
||||
addField( "tickPeriodMS", TypeS32, Offset( tickPeriodMS, TriggerData ),
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@ AITurretShapeData::AITurretShapeData()
|
|||
|
||||
void AITurretShapeData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
Parent::initPersistFields();
|
||||
addGroup("AI Steering");
|
||||
addField("maxScanHeading", TypeF32, Offset(maxScanHeading, AITurretShapeData),
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ TurretShapeData::TurretShapeData()
|
|||
|
||||
void TurretShapeData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
Parent::initPersistFields();
|
||||
addGroup("Steering");
|
||||
addField("zRotOnly", TypeBool, Offset(zRotOnly, TurretShapeData),
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ afxParticleEmitterData::afxParticleEmitterData(const afxParticleEmitterData& oth
|
|||
|
||||
void afxParticleEmitterData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField("fadeVelocity", TypeBool, Offset(fade_velocity, afxParticleEmitterData),
|
||||
"If true, the initial velocity of emitted particles is multiplied by the fade amount "
|
||||
"of the containing effect wrapper. As the effect fades-in and out, so does the "
|
||||
|
|
|
|||
|
|
@ -681,6 +681,7 @@ bool ConsoleObject::removeField(const char* in_pFieldname)
|
|||
//--------------------------------------
|
||||
void ConsoleObject::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
}
|
||||
|
||||
//--------------------------------------
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ bool SimObject::processArguments(S32 argc, ConsoleValue *argv)
|
|||
|
||||
void SimObject::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Ungrouped" );
|
||||
|
||||
addProtectedField( "name", TypeName, Offset(mObjectName, SimObject), &setProtectedName, &defaultProtectedGetFn,
|
||||
|
|
@ -913,6 +914,9 @@ void SimObject::assignFieldsFrom(SimObject *parent)
|
|||
{
|
||||
const AbstractClassRep::Field* f = &list[i];
|
||||
|
||||
if (f->pFieldname == StringTable->insert("docsURL"))
|
||||
continue;
|
||||
|
||||
// Skip the special field types.
|
||||
if ( f->type >= AbstractClassRep::ARCFirstCustomField )
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ GFXStateBlockData::GFXStateBlockData()
|
|||
|
||||
void GFXStateBlockData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Alpha Blending" );
|
||||
|
||||
addField( "blendDefined", TypeBool, Offset(mState.blendDefined, GFXStateBlockData),
|
||||
|
|
|
|||
|
|
@ -350,6 +350,7 @@ GuiControlProfile::~GuiControlProfile()
|
|||
|
||||
void GuiControlProfile::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Behavior" );
|
||||
|
||||
addField( "tab", TypeBool, Offset(mTabable, GuiControlProfile));
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ ShaderData::ShaderData()
|
|||
|
||||
void ShaderData::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addField("DXVertexShaderFile", TypeStringFilename, Offset(mDXVertexShaderName, ShaderData),
|
||||
"@brief %Path to the DirectX vertex shader file to use for this ShaderData.\n\n"
|
||||
"It must contain only one program and no pixel shader, just the vertex shader."
|
||||
|
|
|
|||
|
|
@ -213,6 +213,7 @@ SFXDescription::SFXDescription(const SFXDescription& other, bool temp_clone)
|
|||
|
||||
void SFXDescription::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Playback" );
|
||||
|
||||
addField( "sourceGroup", TypeSFXSourceName, Offset( mSourceGroup, SFXDescription ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue