Search found 204 matches

by Therenas
Fri Dec 14, 2018 11:10 am
Forum: Modding help
Topic: Sprites won't accept size input?
Replies: 3
Views: 469

Re: Sprites won't accept size input?

Alright I just found out that when viewed on a 1080p monitor, all is fine. Previously I viewed it on my 4K screen. I assume, to fix this, it has something to do with the style.scaleable attribute, but I tried it out for a bit and couldn't work out what that really does, can anyone help? Thanks
by Therenas
Wed Dec 12, 2018 3:37 pm
Forum: Modding help
Topic: Sprites won't accept size input?
Replies: 3
Views: 469

Sprites won't accept size input?

I'm currently trying to get a GuiElement sprite to accept my style directions for height and width. When doing this with sprite-buttons, my size directions get through, like in this example: table.add{type="sprite-button", name="button_" .. id, sprite="item/" .. icon} t...
by Therenas
Tue Dec 11, 2018 9:52 pm
Forum: Modding help
Topic: Overlapping UI's
Replies: 3
Views: 510

Re: Overlapping UI's

You are looking for a choose-elem-button https://lua-api.factorio.com/latest/LuaGuiElement.html#LuaGuiElement.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...
by Therenas
Tue Dec 11, 2018 2:19 pm
Forum: Modding help
Topic: Overlapping UI's
Replies: 3
Views: 510

Overlapping UI's

Hi there! Is it possible for a mod to do overlapping windows as factorio itself does it in a couple places? i.e. https://i.imgur.com/95OkmDd.png 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...

Go to advanced search