Page 1 of 1

Overlapping UI's

Posted: Tue Dec 11, 2018 2:19 pm
by Therenas
Hi there!
Is it possible for a mod to do overlapping windows as factorio itself does it in a couple places? i.e. Image

Also, I'm pretty sure it's not possible, but we can't get windows that are draggable right? Also, the API doesn't provide a way to get the signal-selection-view in that image or does it? I have to pretty much do it myself right?

Thanks!

Re: Overlapping UI's

Posted: Tue Dec 11, 2018 7:00 pm
by Klonan
Therenas wrote: Tue Dec 11, 2018 2:19 pmAlso, the API doesn't provide a way to get the signal-selection-view in that image or does it?
You are looking for a choose-elem-button
https://lua-api.factorio.com/latest/Lua ... lement.add
' "choose-elem-button": A button that lets the player pick one of an: item, entity, tile, or signal similar to the filter-select window.'

Re: Overlapping UI's

Posted: Tue Dec 11, 2018 9:52 pm
by Therenas
You are looking for a choose-elem-button
https://lua-api.factorio.com/latest/Lua ... lement.add
' "choose-elem-button": A button that lets the player pick one of an: item, entity, tile, or signal similar to the filter-select window.'
Right, thank you, that is very useful! But I take it that I can't make and layout a window like that on my own? So when I want to do a 'popup' dialog, I have to first destroy the view already present, and rebuild it afterwards? Thanks.

Re: Overlapping UI's

Posted: Mon Dec 17, 2018 9:22 pm
by Klonan
Therenas wrote: Tue Dec 11, 2018 9:52 pm
Right, thank you, that is very useful! But I take it that I can't make and layout a window like that on my own? So when I want to do a 'popup' dialog, I have to first destroy the view already present, and rebuild it afterwards? Thanks.
Yes, currently its not supported to have specifically placed or overlapping mod GUI's