Page MenuHomeFeedback Tracker

Respect _WB_GetCustomTitle change on workbench attribute selection window
Closed, ResolvedPublic

Description

Right now implementing the _WB_GetCustomTitle method has no effect on the dropdown selection list name appearance and only on the display name after the selection. I would like this to be updated so the list already respects these names. In the example below the selection should already show [MODIFED] on all the available options.

class EL_TestComponentClass : ScriptComponentClass
{
}

class EL_TestComponent : ScriptComponent
{
    [Attribute(desc: "Filtered selection test")]
    ref array<ref EL_SelectionBase> m_aSelections;
}

[BaseContainerProps(), EL_CustomSelectionTitle()]
class EL_SelectionBase
{
}

[BaseContainerProps(), EL_CustomSelectionTitle()]
class EL_SelectionEntryA : EL_SelectionBase
{
}

[BaseContainerProps(), EL_CustomSelectionTitle()]
class EL_SelectionEntryB : EL_SelectionBase
{
}

class EL_CustomSelectionTitle: BaseContainerCustomTitle
{
    override bool _WB_GetCustomTitle(BaseContainer source, out string title)
    {
        title = source.GetClassName() + " [MODIFIED]";
        return true;
    }
}

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Feb 1 2023, 12:16 PM
Geez changed the task status from New to Assigned.Feb 2 2023, 10:14 AM
Geez closed this task as Resolved.Apr 17 2023, 1:55 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello Arkensor.
According to the devs: The feature of custom titles is designed only for changing custom names of individual config object instances that are visible in property grid. It's not for faking class names in a class list although in script it looks like it might work so. Something like that isn't currently possible and we think it's also generally bad idea to show some fake class names instead of real class names. That would lead to a chaos.