Make the crafting queue arrow size adjustable by mods

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 232
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Make the crafting queue arrow size adjustable by mods

Post by Therenas »

Now this request might sound really dumb, but bear with me. I've been having the issue of the crafting queue overlapping with my modded window (Only the crafting queue does this under some circumstances, the other vanilla elements seem to play nice):

Image

Now as the .screen windowing system is explicitly not designed to deal with overlapping windows, so this probably won't be resolved by being able to bring a window to the front or similar. Now the solution that springs to mind is to make the crafting queue physically smaller so it interferes way less. Looking at the styles, I seemed to succeed at first, as the crafting queue buttons have their own style ("crafting_queue_slot"):

Image

However, as you can see, the up-arrow-button to expand the crafting queue is not influenced by this. This is because it uses the pretty general "slot_button" style that a ton of other buttons use. So you can't change that without significant side effects. The solution I propose is to give that button a custom style, that just has "slot_button" as it's parent. This wouldn't change anything for the base game, but allow modders to change it's style.

Again, I'm sorry for this, it's stupid, but I'd really appreciate it.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Make the crafting queue arrow size adjustable by mods

Post by eradicator »

-1

I think mods should not mess up vanilla gui elements. Making the crafting icons permanently smaller just because they might occasionally be in the way of a mod window is bad practice and unexpected behavior. If a user is already playing at the smallest gui scale they're comfortable with then your mod shouldn't override this.

As far as i understand you're saying that the quickbar/shortcut bar is "below" your gui which to my knowledge is not something you're allowed to rely on. It's just "random" order as far as i know and might change in a future update without notice.

Maybe if GameViewSettings allowed to temporarily hide the queue while your mod window is active?
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Make the crafting queue arrow size adjustable by mods

Post by darkfrei »

Vanilla GUI scaling must be possible with vanilla game options, but not with mods.

Post Reply

Return to “Modding interface requests”