Merge pull request #1570 from Azaezel/alpha41/consoleCleanupos

misc cleanups related to ranges
This commit is contained in:
Brian Roberts 2025-10-07 18:07:05 -05:00 committed by GitHub
commit 7a0ae4c7af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 ),

View file

@ -80,7 +80,7 @@ $guiContent = new GuiControl(TypeMaskFieldGui) {
stackingType = "Vertical";
horizStacking = "Left to Right";
vertStacking = "Top to Bottom";
padding = "-2";
padding = "0";
dynamicSize = "1";
dynamicNonStackExtent = "0";
dynamicPos = "0";

View file

@ -2116,8 +2116,12 @@ function ShapeEdTriggerList::removeItem( %this, %frame, %state )
%row = %this.findTextIndex( %this.getTriggerText( %frame, %state ) );
if ( %row > 0 )
{
eval( "ShapeEdAnimWindow-->trigger" @ %this.getRowId( %row ) @ ".delete();" );
%this.removeRow( %row );
%id = %this.getRowId( %row );
if (%id>=0)
{
eval( "ShapeEdAnimWindow-->trigger" @ %id @ ".delete();");
%this.removeRow( %row );
}
}
}
@ -2126,8 +2130,12 @@ function ShapeEdTriggerList::removeAll( %this )
%count = %this.rowCount();
for ( %row = %count-1; %row > 0; %row-- )
{
eval( "ShapeEdAnimWindow-->trigger" @ %this.getRowId( %row ) @ ".delete();" );
%this.removeRow( %row );
%id = %this.getRowId( %row );
if (%id>=0)
{
eval( "ShapeEdAnimWindow-->trigger" @ %id @ ".delete();");
%this.removeRow( %row );
}
}
}

View file

@ -1375,7 +1375,7 @@ $guiContent = new GuiContainer(EditorGui,EditorGuiGroup) {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "-2";
Padding = "0";
canSaveDynamicFields = "0";
internalName = "theVisOptionsList";
Enabled = "1";
@ -1444,7 +1444,7 @@ $guiContent = new GuiContainer(EditorGui,EditorGuiGroup) {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "-2";
Padding = "0";
canSaveDynamicFields = "0";
internalName = "theClassVisList";
Enabled = "1";

View file

@ -329,7 +329,7 @@ $guiContent = new GuiControl(TerrainPainterContainer,EditorGuiGroup) {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "-2";
Padding = "0";
canSaveDynamicFields = "0";
internalName = "theMaterialList";
Enabled = "1";

View file

@ -116,7 +116,7 @@ $guiContent = new GuiControl(VisibilityLayerContainer, EditorGuiGroup) {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "-2";
Padding = "0";
canSaveDynamicFields = "0";
internalName = "theClassVisList";
Enabled = "1";
@ -185,7 +185,7 @@ $guiContent = new GuiControl(VisibilityLayerContainer, EditorGuiGroup) {
StackingType = "Vertical";
HorizStacking = "Left to Right";
VertStacking = "Top to Bottom";
Padding = "-2";
Padding = "0";
canSaveDynamicFields = "0";
internalName = "theClassSelList";
Enabled = "1";