mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 14:43:47 +00:00
misc cleanups related to ranges
gui padding is a >=0 element guitabbookctrl.selectedPage defaults to -1 shape editor triggers derived from textrows must ensure they are actually loking aty an entry. -1 is the return value of" not found"
This commit is contained in:
parent
191e69e589
commit
bd44ee5341
6 changed files with 19 additions and 11 deletions
|
|
@ -120,7 +120,7 @@ void GuiTabBookCtrl::initPersistFields()
|
|||
"Index of page to select on first onWake() call (-1 to disable)." );
|
||||
|
||||
addProtectedFieldV( "selectedPage", TypeRangedS32, Offset( mSelectedPageNum, GuiTabBookCtrl ),
|
||||
&_setSelectedPage, &defaultProtectedGetFn, &CommonValidators::PositiveInt,
|
||||
&_setSelectedPage, &defaultProtectedGetFn, &CommonValidators::NegDefaultInt,
|
||||
"Index of currently selected page." );
|
||||
|
||||
addField( "frontTabPadding", TypeS32, Offset( mFrontTabPadding, GuiTabBookCtrl ),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue