mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Merge pull request #1541 from Areloch/MiscFixes_20250825
Misc small fixes, improvements and QoL tweaks
This commit is contained in:
commit
e73efc13c4
37 changed files with 728 additions and 346 deletions
|
|
@ -126,7 +126,6 @@ void GuiIconButtonCtrl::initPersistFields()
|
|||
docsURL;
|
||||
addField( "buttonMargin", TypePoint2I, Offset( mButtonMargin, GuiIconButtonCtrl ),"Margin area around the button.\n");
|
||||
|
||||
addProtectedField( "iconBitmap", TypeImageFilename, Offset( mBitmapAsset, GuiIconButtonCtrl ), &_setBitmapData, &defaultProtectedGetFn, "Bitmap file for the icon to display on the button.\n", AbstractClassRep::FIELD_HideInInspectors);
|
||||
INITPERSISTFIELD_IMAGEASSET(Bitmap, GuiIconButtonCtrl, "Bitmap file for the icon to display on the button.\n");
|
||||
|
||||
addField( "iconLocation", TYPEID< IconLocation >(), Offset( mIconLocation, GuiIconButtonCtrl ),"Where to place the icon on the control. Options are 0 (None), 1 (Left), 2 (Right), 3 (Center).\n");
|
||||
|
|
|
|||
|
|
@ -501,7 +501,7 @@ bool GuiInspector::isGroupFiltered( const char *groupName ) const
|
|||
|
||||
// Is this group explicitly show? Does it immediately follow a + char.
|
||||
searchStr = String::ToString( "+%s", groupName );
|
||||
if ( mGroupFilters.find( searchStr ) != String::NPos )
|
||||
if ( mGroupFilters.find( searchStr, 0, String::NoCase | String::Left) != String::NPos )
|
||||
return false;
|
||||
|
||||
// Were there any other + characters, if so, we are implicitly hidden.
|
||||
|
|
@ -510,7 +510,7 @@ bool GuiInspector::isGroupFiltered( const char *groupName ) const
|
|||
|
||||
// Is this group explicitly hidden? Does it immediately follow a - char.
|
||||
searchStr = String::ToString( "-%s", groupName );
|
||||
if ( mGroupFilters.find( searchStr ) != String::NPos )
|
||||
if ( mGroupFilters.find( searchStr, 0, String::NoCase | String::Left) != String::NPos )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue