Draggable GUIs

User avatar
DeltaNedas
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sun Jun 24, 2018 9:06 pm
Contact:

Draggable GUIs

Post by DeltaNedas »

TL;DR
Let us make our modded GUIs draggable like vanilla GUIs.
What ?
A simple boolean in the Lua API that would let us toggle if a GUI should be draggable or not. To see this in effect in vanilla, boot up the game and drag around the main menu or your inventory.
Why ?
I think it would help make modded GUIs feel more at home with the vanilla ones, as well as help players keep their screens free of clutter and more organised.
It shouldn't be too hard to implement and it would be a very nice feature to have.
User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 26, 2015 9:26 pm
Contact:

Re: Draggable GUIs

Post by theRustyKnife »

This please.

Regarding the implementation, I would suggest making the gui that's set to player.opened draggable, since that's probably what most mods would do.
eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: Draggable GUIs

Post by eduran »

You have my vote.

I find a boolean flag preferable over using player.opened, because it allows you to have multiple draggable windows at the same time and also have it separate from the close-on-ESC behavior. But that's details and any implementation would be great.

DeltaNedas wrote: Sat Apr 06, 2019 6:31 pm It shouldn't be too hard to implement and it would be a very nice feature to have.
Feature requests always look easy from the outside, but rarely when you are the one who has to implement them.
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 249
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Draggable GUIs

Post by Therenas »

I would like this too. I think it would be quite a big change though, as you currently can't have overlapping mod windows. They always appear side-to-side. If you make windows draggable, they will need to be able to overlap. Not sure how big of a challenge that is implementation-wise, as game windows can do this, but again those are implemented differently.
User avatar
Godmave
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Tue Nov 15, 2016 3:52 pm
Contact:

Re: Draggable GUIs

Post by Godmave »

On that note I would also love to be able to "dock" my own custom stuff to other, even vanilla, "windows".
cyfrov
Inserter
Inserter
Posts: 25
Joined: Thu May 03, 2018 7:09 pm
Contact:

Re: Draggable GUIs

Post by cyfrov »

+1
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Draggable GUIs

Post by bobingabout »

you'd be surprised how often I get "Can't you just..." requests about my GUIs.
"No, I can't, the game won't let me." is a standard answer, which usually gets a "Why not?" Then I have to explain that I can only choose "Left" which doesn't always even place on the left, or center.

so yeah, having more control over where a window is placed, and making it movable would be good.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Draggable GUIs

Post by steinio »

Like the Transport Tycoon GUI with movable and also pinable windows.
Image

Transport Belt Repair Man

View unread Posts
321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

Re: Draggable GUIs

Post by 321freddy »

Godmave wrote: Sat Apr 06, 2019 11:12 pm On that note I would also love to be able to "dock" my own custom stuff to other, even vanilla, "windows".
Yes please.

I want to attach a custom panel to like the inventory window or blueprint library window by specifying an anchor like top/left/right/bottom. It would move with the base game GUI and would silently be destroyed when the GUI is closed (like with player.opened).
Post Reply

Return to “Implemented mod requests”