AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.4k stars 289 forks source link

Rearrange List-Items in the Editor #759

Open ChristianGreiner opened 4 years ago

ChristianGreiner commented 4 years ago

Summary

It think at some points, it would be useful to rearrange (move up, move down) items in a list.

Example scenario: Creating a custom render setup: If you want to add a render step between existing render steps, you have to create a new list and do all the steps again. meh.

Here is a screenshot, how we could implement this. Adding two buttons (Up and Down) in the object inspector. As soon as the user selects an item in the list, the two buttons gets enabled.

image

ilexp commented 4 years ago

Let's skip the buttons and do proper dragdrop ("dot" handles, highlighting) instead, with additional insert and remove functionality as a bonus.

The place where this would be done is the IListPropertyEditor in the AdamsLair.WinForms project.