Expose drag-and-drop list to Lua

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
curiosity
Filter Inserter
Filter Inserter
Posts: 496
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Expose drag-and-drop list to Lua

Post by curiosity »

What I am asking for is for LuaGuiElement to support a rearrangeable list, like the one used by the game to display train schedule.
asiomido
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon May 30, 2022 2:55 am
Contact:

Re: Expose drag-and-drop list to Lua

Post by asiomido »

i too would like to see this
Rseding91
Factorio Staff
Factorio Staff
Posts: 14475
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Expose drag-and-drop list to Lua

Post by Rseding91 »

Unfortunately there is no generic drag-and-drop list. Every one you see in the base game is a custom implementation based off the way it needs to be used in that GUI.
If you want to get ahold of me I'm almost always on Discord.
curiosity
Filter Inserter
Filter Inserter
Posts: 496
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Expose drag-and-drop list to Lua

Post by curiosity »

Even exposing the train schedule list may be enough for some cases. Though, IMO, maybe not at the cost of having to maintain it for backward compatibility if/when a proper drag-and-drop list is added.

And then again, if there isn't one currently, doesn't mean there can't be one. Even when it will take some doing.
User avatar
Cooldude2606
Fast Inserter
Fast Inserter
Posts: 104
Joined: Sat Sep 16, 2017 9:04 pm
Contact:

Re: Expose drag-and-drop list to Lua

Post by Cooldude2606 »

+1 for this request.

I am currently attempting to recreate the effect used for the toolbar shortcuts selection window.
But I had to compromise with "up/down" buttons because there is no way to drag an element within another.
I have seen other mods, such as factory planner, which have also required this compromise.

My best efforts
--- Developer for Explosive Gaming and Clusterio. Please contact me via our Discord. ---
User avatar
Sharparam
Inserter
Inserter
Posts: 25
Joined: Sat Mar 25, 2023 11:21 pm
Contact:

Re: Expose drag-and-drop list to Lua

Post by Sharparam »

I want to revive this request since this is even more important now in 2.0.

I want to reimplement the logistic sections UI for my custom combinator, but to do that there has to be some way to implement the drag and drop mechanic.

I don't mind if it ends up needing a bunch of custom code, but we need some kind of API to make it possible.
Post Reply

Return to “Modding interface requests”