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:
AzaezelX 2025-10-07 16:31:24 -05:00
parent 191e69e589
commit bd44ee5341
6 changed files with 19 additions and 11 deletions

View file

@ -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 ),