Commit Graph

195 Commits

Author SHA1 Message Date
jamie dale
bf2592e212 Replaced usage of FInternationalization::ForUseOnlyByLocMacroAndGraphNodeTextLiterals_CreateText with FText::AsLocalizable_Advanced
[FYI] Leon.Huang
#rnx

[CL 36759164 by jamie dale in 5.5 branch]
2024-10-01 19:45:55 -04:00
jamie dale
75569e5399 Updated FTextKey::GetChars() usage to FTextKey::ToString()
This is in preparation to deprecate FTextKey::GetChars() in the future

[FYI] Leon.Huang
#rnx

[CL 35880826 by jamie dale in ue5-main branch]
2024-08-28 17:07:19 -04:00
jamie dale
20fad02997 Implemented the concept of "internal" string tables
These are tables that shouldn't appear in any pickers, and also allow editing the source string of a referencing FText to "auto break" the FText's link to the string table. This is intended to be used for string tables that are automatically generated and referenced by custom code.

[FYI] Leon.Huang
#rnx

[CL 34548734 by jamie dale in ue5-main branch]
2024-06-20 18:25:39 -04:00
jamie dale
341dbc005a Improve "Multiple Values" editing for FText properties
[FYI] Leon.Huang
#rnx

[CL 34544157 by jamie dale in ue5-main branch]
2024-06-20 16:37:43 -04:00
logan buchy
a6a9edcdfb Fix crash if SAssetFilter destroyed and AssetDefinitionRegistry version changes
* SAssetFilterBar doesn't clean up the registered delegate, leaving a stale this pointer

[FYI] rob.krajcarski
#rb ronald.koppers
#jira UE-215763

[CL 33899015 by logan buchy in ue5-main branch]
2024-05-24 13:18:46 -04:00
logan buchy
f1fc87f369 Unregister AssetDefinitions from registry
* Sync function was not taking into account unregistered AssetDefinitions - the fix is to iterate the AssetTypeActions also and find corresponding AssetDefinitions and remove if there is none.
* SAssetFilterBar caches AssetDefinitions - added a notification for when the AssetDefinitionRegistry changes.  Put the broadcast on a one-shot ticker instead of directly calling as the Register/Unregister can occur frequently.  Breaks up the callback depth.
* Added a "Version" to AssetDefinitionRegistry as clients were using the number of assets as a version. This can fall over if there is an Add and Remove between two calls to GetAllAssetDefinitions.

#jira UE-213686
#rb aditya.ravichandran, jered.mcferron

[CL 33704087 by logan buchy in ue5-main branch]
2024-05-16 18:41:47 -04:00
patrick boutot
a2b5613488 Slate: Deprecate SListView::ItemHeight and STreeViewItemHeight. ItemHeight and ItemWidth are only used when the panel is is as a tile or both value are assigned. With TreeView and ListView, you can't assigned both. The function are protected, a subclass of those could but it's up to them to expose the ItemHeight and ItemWidth. This behavior changed was introduced with CL 7634094.
#jira UE-210415
#rb editor-ui-systems

[CL 33370360 by patrick boutot in ue5-main branch]
2024-05-01 08:05:39 -04:00
keith yerex
870033d9a6 Multi value enum column for choosers
#rb brooke.hubert, jose.villarroel

[CL 32219924 by keith yerex in ue5-main branch]
2024-03-13 13:39:35 -04:00
keith yerex
bb2e3826ec Asset Drag/Drop improvements in Chooser Table
#rb jose.villarroel

[CL 32103171 by keith yerex in ue5-main branch]
2024-03-07 17:24:58 -05:00
patrick boutot
c6ceae40a2 Localize Checkbox works with multiple values.
#jira UE-204015
#rb Jamie.Dale

[CL 30839347 by patrick boutot in ue5-main branch]
2024-01-24 07:19:44 -05:00
stu mckenna
0b2269679e - Experimental stateless emitters
- Enabled via a project cvar, data formats are not guaranteed to remain backwards compatible
- This is WIP lots of UI work, curves, etc, to come

#rb rob.krajcarski
#jira UE-192636

[CL 30822363 by stu mckenna in ue5-main branch]
2024-01-23 18:05:28 -05:00
max chen
770789d441 Sequencer: Fix transport control recording icon
#jira UE-203064
#rb andrew.rodham
#rnx

[CL 30407976 by max chen in ue5-main branch]
2023-12-19 22:17:15 -05:00
max chen
4c1339e965 Sequencer: UX changes for Playback Controls
- Change text "+Track" to "+Add"
- Move current frame widgets to playback controls, remove orange text on the current frame, frame counter is now in the tooltip
- Move clear in the status bar to the far left so it's easier to hit when you hover over the status bar
- Status bar changes - visible on hover of the info button, fades away/hides automatically on unhover after 2 seconds
- Add status bar and current frame to the curve editor playback controls

#jira UE-200158
#jira UE-200160
#jira UE-197844
#jira UE-201190
#rb andrew.rodham

[CL 30130942 by max chen in ue5-main branch]
2023-12-05 15:11:12 -05:00
jamie dale
827e849807 Added an API to edit the attributes of a text property, akin to what happens when editing it in a details panel
This is needed when upgrading localized text data in an editor-like environment via a BP, as any String -> Text conversion within a BP produces an invariant (unlocalizable) text

* Moved the implementation of IEditableTextProperty::StaticStableTextId to TextNamespaceUtil::GetTextIdForEdit.
* Added TextNamespaceUtil::EditTextProperty to safely edit a given text attribute to a given value.
* Added TextNamespaceUtil::GenerateDeterministicTextKey as a way to build deterministic text keys for a given object and property pair.
* Added UKismetTextLibrary::EditTextSourceString to expose the above to BPs in a way that can safely edit the source string of a text property.

[FYI] Leon.Huang
#rb alex.thomson

[CL 30090283 by jamie dale in ue5-main branch]
2023-12-04 14:15:25 -05:00
Mateo Egey
a34ad89f5e Added culture invariant identifier to expanded category section
#jira none
#rb trivial

[CL 28707973 by Mateo Egey in ue5-main branch]
2023-10-12 09:16:36 -04: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
steve robb
51f3ea53ae Removed ChooseClass.h includes.
#rb trivial

[CL 27823723 by steve robb in ue5-main branch]
2023-09-13 05:43:01 -04:00
ben zeigler
bbfa668871 Start showing the asset scan progress bar earlier so it doesn't jump to 50% when loading from the cache while still checking directories in the background
#rb matt.peters

[CL 27556294 by ben zeigler in ue5-main branch]
2023-09-01 11:18:00 -04:00
bryan sefcik
ecd9fa8a99 Removed dependencies that aren't needed by the modules that declare them. This is to help fix bad circular dependencies in the engine.
#preflight 647b5f919c5bac5c6f8be490
#jira

[CL 25782459 by bryan sefcik in ue5-main branch]
2023-06-03 15:25:01 -04:00
nat parkinson
b456e4e0fd [Backout] - CL25138024 to resolve UE CIS error
[FYI] Lauren.Barnes
Original CL Desc
-----------------------------------------------------------------
Moving SinglePropertyView and DetailsView to EditorWidgets
#preflight 64417104e71b8e1b4e059e93
#rb Vincent.Gauthier, Aditya.RaviChandran

[CL 25139783 by nat parkinson in ue5-main branch]
2023-04-20 19:10:03 -04:00
lauren barnes
af53e260b0 Moving SinglePropertyView and DetailsView to EditorWidgets
#preflight 64417104e71b8e1b4e059e93
#rb Vincent.Gauthier, Aditya.RaviChandran

[CL 25139734 by lauren barnes in ue5-main branch]
2023-04-20 19:08:52 -04:00
mateo egey
9de144b40f Added cache functionality to SDropTarget for very expensive AllowDrop operations.
Turned off by default.
By default, OnAllowDrop is called every frame, which is user bound. Setting "bUseAllowDropCache" to true will cache off AllowDrop the first time it is called.
The cache is cleared whenever a drag & drop operation starts.

#jira UE-176808
#rb Patrick.Boutot
#preflight 63eb8a3eb91ae11c1c33ebc0

[CL 24214083 by mateo egey in ue5-main branch]
2023-02-14 12:11:50 -05:00
scott nelson
51580ecb0b Update BP Filter in Content Browser to include Aliased Compiled BPs
#rb aditya.ravichandran
#preflight 63e143d59740e583f42f03ac

[CL 24040354 by scott nelson in ue5-main branch]
2023-02-06 18:03:38 -05:00
Nick Darnell
1de0a3f870 Editor - Fixing the asset definition filtering so that we correctly merge and then ignore unmerged filters so that Animation Blueprints when you filter for Blueprints.
#jira UE-175379
#preflight

[CL 23947628 by Nick Darnell in ue5-main branch]
2023-02-01 09:49:47 -05:00