Commit Graph

72 Commits

Author SHA1 Message Date
mateo egey
1fd26d4323 - Renamed OnSetFilterActive parameter to reflect what it's actually doing (enabling/disabling), and can now also be used to enable a filter that had been pinned before.
- Additionally added 'IsFilterEnabled' function so that external systems can determine whether a filter is enabled or not

#rb aditya.ravichandran

[CL 30044381 by mateo egey in ue5-main branch]
2023-12-01 12:15:41 -05:00
dave belanger
94131a8e9b Fix some missing default values in SMessageDialog arguments
Notably, when the messag text got too long, because the ScrollBoxMaxHeight arg wasn't set, you could barely see the message
#rb Dominik.Peacock
#rnx

[CL 29909962 by dave belanger in ue5-main branch]
2023-11-23 10:03:25 -05:00
Mateo Egey
1bd4d9d8f1 - Exposed 'use sections for categories' bool to the asset picker config
- Added identifier to the expanded category (previously None)

#jira none
#rb trivial

[CL 28707809 by Mateo Egey in ue5-main branch]
2023-10-12 09:10:34 -04:00
mateo egey
cee00f7328 Multitude of small changes and fixes to content browser & asset picker.
- Removed unused function

- Added 'FX' asset type category for Niagara purposes that maps to the FX asset category path for default expansion purposes

- Restored functionality for default filter category expansion. This code seemed abandoned. The category expansion could be specified in the asset picker config, but in the end was ignored and the Basic asset path was used instead. This uses a Convert function to go from AssetTypeCategory -> AssetCategoryPath. There is no 1:1 mapping, so it falls back to Basic if necessary. Changing the type in the asset picker config would be cleaner, but isn't straight forward due to FAssetCategoryPath needing to be exposed to all modules that include the content browser module

- Tweaked OnExtendAddFilterMenu delegate. It's now a global delegate, making it unnecessary to handle template shenanigans to access it.
AssetPickerConfig has a new option to provide this OnExtendAddFilterMenu externally. As the 'Common' category still shows up if we expand the FX category (since Niagara System is part of Basic & FX), we can use this to remove unwanted filters
The delegate is called on the dynamic menu section before the widget generation

- Added PinAllFrontendFilters argument. This is useful if you have a small amount of filters available so that you want to display them all by default

Big code cleanup:
- MakeAddFilterMenu is now marked as final to help with API consistency.
- Added new 'CreateAssetFilterBarContext` virtual function. This is now the unified way of configuring your menu.
- The context now contains the FOnFilterAssetType delegate, and the OnExtendAddFilterMenu delegate. This allows subclasses to keep their original functionality, while having a central place to tweak it
- Removed the old content browser context as it's no longer used
- Exposed the menu name. Kept old names consistent. This allows to reuse menus, or create new ones.
- Moved the right click context filter UI of the content browser into the SAssetFilterBar. Now all SAssetFilterBars can do this. Removed the OnGetContextMenu delegate that was only used in one place
- Removed various functions that are no longer needed

#rb rex.hill, aditya.ravichandran

#ushell-cherrypick of 28538117 by Mateo.Egey

[CL 28705843 by mateo egey in ue5-main branch]
2023-10-12 07:03:37 -04:00
ben hoffman
f91d04e426 Editor | Add mechanism for extending the global status bar elements (Content Browser and Output Log buttons)
#rb sebastian.arleryd, aditya.ravichandran

#ushell-cherrypick of 28578790 by gabriel.wreczycki

[CL 28582153 by ben hoffman in ue5-main branch]
2023-10-09 10:34:07 -04:00
derek truong
c137ace85e Fixing missing header guard in DialogUtils header file (added in CL 28276965)
#rnx

[CL 28290380 by derek truong in ue5-main branch]
2023-09-27 16:23:37 -04:00
derek truong
a579907a04 Support for rich text messaging in SMessageDialog and utility for converting between message categories and Slate brushes
#rb jamie.dale

[CL 28282154 by derek truong in ue5-main branch]
2023-09-27 13:56:29 -04:00
robb surridge
b8fd678d2d Apply padding around the button row in confirmation dialogs in places where it had been removed by a previous fix to SWindow.
#jira UE-195462
#rb aditya.ravichandran

[CL 28224816 by robb surridge in ue5-main branch]
2023-09-26 09:36:52 -04:00
jeanmichel dignard
3016e17cc9 Don't close the content drawer if no new active tab is being set. This happens when closing a tab drawer where we won't have an active tab. Given that when we open the content drawer from a tab drawer, the tab drawer will lose focus and close itself, we don't want to also close the content drawer.
#jira UE-149309
#rb sebastian.arleryd

[CL 27962911 by jeanmichel dignard in ue5-main branch]
2023-09-18 12:41:13 -04:00
yoan stamant
a788975f6b Fixed type conversion warnings
#rb mikko.mononen

[CL 27890994 by yoan stamant in ue5-main branch]
2023-09-14 15:23:22 -04:00
olivier carrere
07f7614bc9 Fix incorrect SMessageDialog init params
[CL 27714980 by olivier carrere in ue5-main branch]
2023-09-08 12:21:41 -04:00
andrea botti
249f74e98a [ContentBrowser/ToolWidgets]
Moving SSearchToggleButton into ToolWidgets module to be reused externally.

#rb daren.cheng robert.seiver

[CL 27566135 by andrea botti in ue5-main branch]
2023-09-01 16:49:48 -04:00
ben hoffman
2e8245ed8c Add tokenized search support for Searchable Combo Box
#rb Vincent.Gauthier, sebastian.arleryd, aditya.ravichandran

#ushell-cherrypick of 26510073 by kristof.morva1

[CL 26512053 by ben hoffman in ue5-main branch]
2023-07-21 10:57:12 -04:00
robert millar
4301477ebd Provide telemetry to SAssetView. Telemetry is not sent to any endpoint for licensees.
#rb julien.st-jean,logan.buchy,wes.hunt

[CL 26301369 by robert millar in ue5-main branch]
2023-06-28 18:21:13 -04:00
dj schilens
b936fd22a9 SCheckBoxList Callback for when checkboxes are changed
[CL 25741742 by dj schilens in ue5-main branch]
2023-06-01 17:00:12 -04:00
Lauren Barnes
5c2dba3ee2 Creating a small text variant of SSimpleComboButton
#jira none
#rb Aditya.RaviChandran
#fyi Thomas.Sarkanen
#preflight 64419fbb434155a8f8619737

[CL 25144433 by Lauren Barnes in ue5-main branch]
2023-04-21 08:57:19 -04:00
Juan Portillo
49a7cc6362 Status Bar:
- Added option to unregister a Drawer

#jira none
#rb daren.cheng
#preflight 63fc8f13437ce3e7f31189ce

[CL 24421178 by Juan Portillo in ue5-main branch]
2023-02-27 06:21:40 -05:00
jamie dale
bf885a6446 Collapse the SMessageDialog icon padding when no icon is set and fixed content being right aligned
#rb aditya.ravichandran
#rnx

[CL 24071460 by jamie dale in ue5-main branch]
2023-02-08 08:22:37 -05:00
dave belanger
ac73460753 SWidgetDrawer: Collapse custom widget border if said widget is collapsed
#rb Patrick.Boutot
#preflight 63d44204be1970f8824451cc

[CL 23919189 by dave belanger in ue5-main branch]
2023-01-30 19:23:31 -05:00
nick darnell
58645cbc15 Editor Performance - Fixing a long standing issue with asset thumbnails, they've been loading the assets for a pretty long time now, because of the thumbnail editing mode. Note that thumbnail editing mode was not needed to be enabled and yet the asset would still load. This was a cause for a lot of hitches in the Content Browser.
AssetDefinition - Working on the asset definitions for blueprints/class types, iterating on the Merge API.  Bringing over more of the blueprint features into its asset definition, unregistered the Blueprint AssetType Actions.

Asset Filters - We now support categories per filter, this enables a single asset definition to correctly specify multiple filters.  For example, blueprints actually supply 4 filters, one for blueprints, but also blueprint interfaces, macros and function libraries.

[CL 23791489 by nick darnell in ue5-main branch]
2023-01-20 11:49:23 -05:00
Patrick Boutot
c78759f04a Fix uninitialized variable in WidgetDrawer.
#fyi nicole.keffer, antroine.guillo
#preflight none

[CL 23761868 by Patrick Boutot in ue5-main branch]
2023-01-18 14:48:27 -05:00
Patrick Boutot
6e02de5817 Fix memstomp with color picker. Prepare SColorPicker for API change. Update AssetViewUtilis::PathColors to use FLinearColor instead of shared pointer. The shared pointer was only needed for the SColorPicker.
#jira UE-173303, UE-173454
#review-23672715 23617361,23611673
#rb daren.cheng
#preflight 63c0b12b1a06fc61059f2fa3

[CL 23672712 by Patrick Boutot in ue5-main branch]
2023-01-12 20:33:08 -05:00
Andrew Rodham
4ff7bab147 Slate: Initial phase of FVector2D deprecation
- Expanded FDeprecateSlateVector2D to provide structs for parameters, return types and member variables that use FVector2f, while still allowing conversion to/from FVector2d with optional per-module deprecation mechanisms.
  - Many of the high-traffic SlateCore types like FSlateBrush, FGeometry and FSlateLayoutTransform have been converted to use these deprecation mechanisms.
  - Some legacy FGeometry::ToPaintGeometry and MakeChild overloads have been explicitly deprecated since they cause ambiguous overloads with FSlateLayoutTransform if it were to support implicit construction.
  - Deprecated ULocalPlayer::GetPixelBoundingBox and GetPixelPoint to prefer FVector2f for OptionalAllotedSize parameter since this parameter is expected to come from FGeometry
  - Exposed FVector2f members to blueprints

#jira none
#rb Andy.Davidson, Dave.Jones, Vincent.Gauthier, Patrick.Boutot
#preflight 63bc6fd068068a8bd6027c9f

[CL 23631073 by Andrew Rodham in ue5-main branch]
2023-01-10 14:46:43 -05:00
Thomas Sarkanen
0b8d93b31b Added option to display filter categories as sections rather than submenus to SBasicFilterBar
#rb Aditya.RaviChandran
#jira none
#preflight 6392106fc415e8dc783d022f

[CL 23447928 by Thomas Sarkanen in ue5-main branch]
2022-12-08 11:43:14 -05:00
bart hawthorne
b132f712df Add customizability of BeforeButton alignment for the SCustomDialog widget
#rb rex.hill
#preflight 638920b3b36822f1c34ee2db

[CL 23368153 by bart hawthorne in ue5-main branch]
2022-12-01 20:30:41 -05:00