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: 177
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
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 532
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
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
curiosity
Filter Inserter
Filter Inserter
Posts: 728
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: 177
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: 728
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.
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 335
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.
User avatar
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 180
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!
Subject314159
Inserter
Inserter
Posts: 20
Joined: Thu Oct 12, 2023 8:53 pm
Contact:

Re: Support drag to reorder for GUI Elements

Post by Subject314159 »

+1! I see so many mods which use arrow buttons that could benefit from this functionality, and with the 2.0 updates it just feels a lot more integrated.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 532
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Support drag to reorder for GUI Elements

Post by protocol_1903 »

Another +1: Caravans from pYmods. It already has all of the train features implemented, including stop conditions and interrupts, but the sheer UX of making a schedule properly prevents it from being a good scaleable option.
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
User avatar
KiwiHawk
Filter Inserter
Filter Inserter
Posts: 358
Joined: Thu Jul 05, 2018 9:48 am
Contact:

Re: Support drag to reorder for GUI Elements

Post by KiwiHawk »

+1 ! This would allow us to make the UI of Helmod so much nicer!!
Dev for Bob's mods, Angel's mods, Sea Block, Circuit Processing, Science Cost Tweaker. Contributor to Helmod.

Buy me a coffee
Ashier
Burner Inserter
Burner Inserter
Posts: 15
Joined: Sun Jan 26, 2025 11:03 pm
Contact:

Re: Support drag to reorder for GUI Elements

Post by Ashier »

+1 please!
User avatar
Meddleman
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Mon Jun 26, 2017 7:39 pm
Contact:

Re: Support drag to reorder for GUI Elements

Post by Meddleman »

+1

Right now I'm attempting an incredibly hacky workaround by using item-elements similar how one might drag and drop elements within the Constant Combinator logistic-group signals menu, but no promises.

Arrow-Button based reordering is fine for maybe 5-10 list elements, but beyond that it becomes an asinine interaction with obtusely repetitive ui-elements that could be replaced with the minimal sleek vertical-line drag-drop handle-zone already present and peppered about core.
Post Reply

Return to “Modding interface requests”