mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +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
|
|
@ -29,6 +29,7 @@
|
|||
#include "console/consoleTypes.h"
|
||||
#include "gui/core/guiCanvas.h"
|
||||
#include "gui/core/guiDefaultControlRender.h"
|
||||
#include "console/typeValidators.h"
|
||||
|
||||
IMPLEMENT_CONOBJECT(GuiSeparatorCtrl);
|
||||
|
||||
|
|
@ -77,9 +78,9 @@ void GuiSeparatorCtrl::initPersistFields()
|
|||
"Optional text label to display." );
|
||||
addField("type", TYPEID< separatorTypeOptions >(), Offset(mSeparatorType, GuiSeparatorCtrl),
|
||||
"Orientation of separator." );
|
||||
addField("borderMargin", TypeS32, Offset(mMargin, GuiSeparatorCtrl));
|
||||
addFieldV("borderMargin", TypeRangedS32, Offset(mMargin, GuiSeparatorCtrl), &CommonValidators::PositiveInt);
|
||||
addField("invisible", TypeBool, Offset(mInvisible, GuiSeparatorCtrl));// Nonsense. Should use GuiControl's visibility.
|
||||
addField("leftMargin", TypeS32, Offset(mTextLeftMargin, GuiSeparatorCtrl),
|
||||
addFieldV("leftMargin", TypeRangedS32, Offset(mTextLeftMargin, GuiSeparatorCtrl), &CommonValidators::PositiveInt,
|
||||
"Left margin of text label." );
|
||||
|
||||
Parent::initPersistFields();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue