mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 22:24:33 +00:00
fill in the validated variables
This commit is contained in:
parent
fa760fa746
commit
f633ef3a3d
184 changed files with 1359 additions and 1216 deletions
|
|
@ -114,20 +114,20 @@ void afxZodiacPlaneData::initPersistFields()
|
|||
docsURL;
|
||||
INITPERSISTFIELD_IMAGEASSET(Texture, afxZodiacPlaneData, "An image to use as the zodiac's texture.");
|
||||
|
||||
addField("radius", TypeF32, myOffset(radius_xy),
|
||||
addFieldV("radius", TypeRangedF32, myOffset(radius_xy), &CommonValidators::PositiveFloat,
|
||||
"The zodiac's radius in scene units.");
|
||||
addField("startAngle", TypeF32, myOffset(start_ang),
|
||||
addFieldV("startAngle", TypeRangedF32, myOffset(start_ang), &CommonValidators::DegreeRange,
|
||||
"The starting angle in degrees of the zodiac's rotation.");
|
||||
addField("rotationRate", TypeF32, myOffset(ang_per_sec),
|
||||
addFieldV("rotationRate", TypeRangedF32, myOffset(ang_per_sec), &CommonValidators::DegreeRange,
|
||||
"The rate of rotation in degrees-per-second. Zodiacs with a positive rotationRate "
|
||||
"rotate clockwise, while those with negative values turn counter-clockwise.");
|
||||
addField("growInTime", TypeF32, myOffset(grow_in_time),
|
||||
addFieldV("growInTime", TypeRangedF32, myOffset(grow_in_time), &CommonValidators::PositiveFloat,
|
||||
"A duration of time in seconds over which the zodiac grows from a zero size to its "
|
||||
"full size as specified by the radius.");
|
||||
addField("shrinkOutTime", TypeF32, myOffset(shrink_out_time),
|
||||
addFieldV("shrinkOutTime", TypeRangedF32, myOffset(shrink_out_time), &CommonValidators::PositiveFloat,
|
||||
"A duration of time in seconds over which the zodiac shrinks from full size to "
|
||||
"invisible.");
|
||||
addField("growthRate", TypeF32, myOffset(growth_rate),
|
||||
addFieldV("growthRate", TypeRangedF32, myOffset(growth_rate), &CommonValidators::F32Range,
|
||||
"A rate in meters-per-second at which the zodiac grows in size. A negative value will "
|
||||
"shrink the zodiac.");
|
||||
addField("color", TypeColorF, myOffset(color),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue