-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
By default, all classes shown in the editor are represented by their .ToString return value:

These are less than ideal for a user trying to tell list entries apart. They need to have their string representations changed to something easier to understand.
Some classes have overridden ToString values that make them more readable. However, we should not override ToString in this case, as we are specifically trying to get an editor-relevant string that may differ from ToString's use case.
Instead, we should use the editor-specific way of retrieving a string representation:
- Create a class that inherits from Editor in RogueEssence.Editor.Avalonia, where T is the type you wish to change the string representation to.
- Override GetString(MapItem obj, Type type, object[] attributes).
- Add this new class to DataEditor's editors, by calling the AddEditor function in Program.cs
An example of this can be found in MapItemEditor.cs
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers