una-xiv / umbra

Umbra XIV - Adds quality of life improvements to the game and consolidates common UI elements and actions into a single uniform interface.
GNU Affero General Public License v3.0
83 stars 30 forks source link

[Feature Request] Ability to customize widget order. #38

Closed haroldiedema closed 5 months ago

haroldiedema commented 5 months ago

Initial proposal would involve an "edit mode". Once this mode is enabled, the user can drag widgets within their respective containers to reorder them as they see fit.

Keeping elements within their containers does mean that a widget that is currently on the right side of the toolbar, cannot be dragged all the way to the left side. Maybe I'll figure out some smart way to handle this, but as I see it right now, this won't be very trivial.

Since elements can be resized at any time by their source (DTR bar entries, location texts, etc.), enabling the edit mode will hide all widgets and show placeholders instead with a name inside them indicating what each element is.

Dragging these placeholders around will internally update the sort-indices of the elements.

Sort indices should be stored based on widget ID.

haroldiedema commented 5 months ago

Blocked by #47