Support drag to reorder for GUI Elements

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 121
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Support drag to reorder for GUI Elements

Post by PennyJim »

There's a number of times people want to make a GUI with a fancy drag to reorder list, like replicating the train schedule menu for various other reasons.

I'm imagining it either being a new element like "reorderable-list" or maybe an argument like allow_reorder on the "scroll-pane", that lets the direct children be valid targets for drag_target.

This of course would need to come with at least one event, but I'm thinking two:
  • on_gui_reorder_start - So mods can possibly collapse elements like the train schedule?
    • I was remembering behavior from an entirely different application. Feel no obligation to actually add this one. I was already thinking of plenty of problems with it and latency
  • on_gui_reorder_finish - Which contains a reference to the element moved, the initial index, and the new index
protocol_1903
Fast Inserter
Fast Inserter
Posts: 234
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Support drag to reorder for GUI Elements

Post by protocol_1903 »

+1, would greatly help for train stop like UIs where reordering is a main use case
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
curiosity
Filter Inserter
Filter Inserter
Posts: 656
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Support drag to reorder for GUI Elements

Post by curiosity »

User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 121
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Re: Support drag to reorder for GUI Elements

Post by PennyJim »

curiosity wrote: Thu May 22, 2025 11:19 pm Duplicate of viewtopic.php?t=100481
Damnit, I tried looking for other requests. In my defense, mine actually has improvement details to limit the scope of the idea instead of just asking for it...
curiosity
Filter Inserter
Filter Inserter
Posts: 656
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Support drag to reorder for GUI Elements

Post by curiosity »

The risk of including implementation details is that it constrains possible implementations. I have seen requests denied because the dev couldn't do them exactly as asked. Which is why I made my request as open-ended as possible, in hope that maybe we finally get something.
Osmo
Long Handed Inserter
Long Handed Inserter
Posts: 64
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Support drag to reorder for GUI Elements

Post by Osmo »

+1, as someone who worked with replicas of this schedule-like system with buttons, and currently doing the same in a different mod, this would be very useful.
Even if the amount of work to make it will be the same or more, buttons are just much worse from end user perspective.
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 103
Joined: Sat Aug 05, 2023 1:20 am
Contact:

Re: Support drag to reorder for GUI Elements

Post by MrSmoothieHuman »

+1
coder? i hardly know her!
Post Reply

Return to “Modding interface requests”