Expose drag-and-drop list to Lua
Expose drag-and-drop list to Lua
What I am asking for is for LuaGuiElement to support a rearrangeable list, like the one used by the game to display train schedule.
Re: Expose drag-and-drop list to Lua
i too would like to see this
Re: Expose drag-and-drop list to Lua
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.
Re: Expose drag-and-drop list to Lua
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.
And then again, if there isn't one currently, doesn't mean there can't be one. Even when it will take some doing.
- Cooldude2606
- Fast Inserter
- Posts: 104
- Joined: Sat Sep 16, 2017 9:04 pm
- Contact:
Re: Expose drag-and-drop list to Lua
+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.
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
Re: Expose drag-and-drop list to Lua
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.
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.