Page 1 of 1

Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 7:58 am
by z498279401
Snipaste_2021-07-07_15-52-39.png
Snipaste_2021-07-07_15-52-39.png (2.73 MiB) Viewed 4368 times
Please, can you add a miniaturization function of the category icon in the manufacturing bar? It's too inconvenient for the players who use laptops.

Re: Version 1.1.35

Posted: Wed Jul 07, 2021 8:28 am
by Qon
z498279401 wrote:
Wed Jul 07, 2021 7:58 am
Please, can you add a miniaturization function of the category icon in the manufacturing bar? It's too inconvenient for the players who use laptops.
Does your laptop mean the minimum requirement specs (screen resolution) for Factorio?
Consider asking the mod authors that caused the problem to not add so many categories (and items?) or uninstalling mods that don't work very well on your laptop.

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 8:33 am
by Koub
[Koub] Split from the 1.1.35 update thread into a suggestion of its own

Re: Version 1.1.35

Posted: Wed Jul 07, 2021 8:34 am
by z498279401
Qon wrote:
Wed Jul 07, 2021 8:28 am
z498279401 wrote:
Wed Jul 07, 2021 7:58 am
Please, can you add a miniaturization function of the category icon in the manufacturing bar? It's too inconvenient for the players who use laptops.
Does your laptop mean the minimum requirement specs (screen resolution) for Factorio?
Consider asking the mod authors that caused the problem to not add so many categories (and items?) or uninstalling mods that don't work very well on your laptop.
This has nothing to do with my configuration. It's a GUI problem. My laptop has a 15.6-inch screen. It's Bob mod

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 8:39 am
by z498279401
If I adjust the zoom size, it will affect the font size, which makes it difficult for me to read the text
Snipaste_2021-07-07_16-12-00.png
Snipaste_2021-07-07_16-12-00.png (2.76 MiB) Viewed 4341 times

Re: Version 1.1.35

Posted: Wed Jul 07, 2021 9:31 am
by Qon
z498279401 wrote:
Wed Jul 07, 2021 8:34 am
This has nothing to do with my configuration. It's a GUI problem. My laptop has a 15.6-inch screen. It's Bob mod
I didn't ask how big your screen was, I asked what resolution your screen is.
https://www.factorio.com/support/faq#q-minimal-pc-requirements wrote:The Minimum system requirements for running the game are:
1920x1080 screen resolution
The screenshot is 1363 x 698 so I guess that's your screen resolution then.

Your laptop does not meet the minimum requirements for Factorio.

The GUI problem doesn't exist in vanilla Factorio.
The GUI problem doesn't exist for computers that meet the minimum requirements for Factorio.

Your issue is not going to be a priority for Wube.

Wube supports mods for Factorio, but a quicker way to fix a problem that exists because a mod decided to add an unreasonably large amount of categories is to ask Bob to fix their mods. That interface wasn't meant to have 25 categories. Maybe in the future Factorio can have a scrollable category button view or something, but if you want something fixed now instead of hoping something maybe happens in a year then ask Bob for some solution.

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 9:37 am
by boskid
This can be easily changed by mods as the size of those buttons is defined by the `filter_group_tab` style which takes its default values of minimal_width=64 and height=64 from core/prototypes/style.lua

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 3:28 pm
by z498279401
Image
boskid wrote:
Wed Jul 07, 2021 9:37 am
This can be easily changed by mods as the size of those buttons is defined by the `filter_group_tab` style which takes its default values of minimal_width=64 and height=64 from core/prototypes/style.lua
A kind-hearted person helped me make a mod, and I think my problem has been solved

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 3:29 pm
by z498279401
boskid wrote:
Wed Jul 07, 2021 9:37 am
This can be easily changed by mods as the size of those buttons is defined by the `filter_group_tab` style which takes its default values of minimal_width=64 and height=64 from core/prototypes/style.lua
https://mods.factorio.com/mod/smaller_filter_icons

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 3:33 pm
by Qon
boskid wrote:
Wed Jul 07, 2021 9:37 am
This can be easily changed by mods as the size of those buttons is defined by the `filter_group_tab` style which takes its default values of minimal_width=64 and height=64 from core/prototypes/style.lua
In the mod that uses those styles (I haven't verified), is Factorio supposed to layout the icons with the same number of icons per row as the default styling? Seems like a bug in Factorio in how it handles custom styling that the reduced sized icons use the same number of rows instead of fewer rows with more category icons on them, with a styled size where that fits and would make sense as shown in the images.

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 3:44 pm
by boskid
Qon wrote:
Wed Jul 07, 2021 3:33 pm
is Factorio supposed to layout the icons with the same number of icons per row as the default styling?
Unfortunately the amount of buttons in a row is defined by a hardcoded named constant `selectGroupRowCount` with value of 6.

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 3:50 pm
by eradicator
@OP: If you have serious space issues you can also completely disable the buttons:

Code: Select all

/c game.player.disable_recipe_groups()
/c game.player.disable_recipe_subgroups()

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 3:52 pm
by Qon
boskid wrote:
Wed Jul 07, 2021 3:44 pm
Qon wrote:
Wed Jul 07, 2021 3:33 pm
is Factorio supposed to layout the icons with the same number of icons per row as the default styling?
Unfortunately the amount of buttons in a row is defined by a hardcoded named constant `selectGroupRowCount` with value of 6.
That's unfortunate, yes. Well I don't play with mods that introduce so many categories that I would need this at least, so it doesn't really matter to me that much. I do have Editor Extensions, Creative Mod, Capsule Ammo (adds category depending on mod settings), Circuit Group that each define their own groups, but that's just 5 extra (I have many mods and one unknown adds another extra category) so I can deal with it...

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 5:14 pm
by boskid
In 1.1.36 this constant will be exposed to utility constants under name `select_group_row_count` (=6). There will be also 7 more constants exposed, from which i may expect 4 to be usable by mods (select_slot_row_count=10, inventory_width=10, module_inventory_width=10, flying_text_ttl=80)

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 07, 2021 5:31 pm
by Qon
That's awesome! Thanks! :D

Re: Option to miniaturize the category icon in the crafting window

Posted: Thu Jul 08, 2021 12:36 am
by z498279401
boskid wrote:
Wed Jul 07, 2021 5:14 pm
In 1.1.36 this constant will be exposed to utility constants under name `select_group_row_count` (=6). There will be also 7 more constants exposed, from which i may expect 4 to be usable by mods (select_slot_row_count=10, inventory_width=10, module_inventory_width=10, flying_text_ttl=80)
:D :D :D :D :D :D

Re: Option to miniaturize the category icon in the crafting window

Posted: Thu Jul 08, 2021 6:40 am
by ssilk
moving to implemented

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 14, 2021 1:15 am
by z498279401
boskid wrote:
Wed Jul 07, 2021 5:14 pm
In 1.1.36 this constant will be exposed to utility constants under name `select_group_row_count` (=6). There will be also 7 more constants exposed, from which i may expect 4 to be usable by mods (select_slot_row_count=10, inventory_width=10, module_inventory_width=10, flying_text_ttl=80)
In version 1.1.36, I didn't find "select_ group_ row_ count” :?:

Re: Option to miniaturize the category icon in the crafting window

Posted: Wed Jul 14, 2021 6:29 am
by boskid
z498279401 wrote:
Wed Jul 14, 2021 1:15 am
In version 1.1.36, I didn't find "select_ group_ row_ count” :?:
Eh... i forgot to add those constants to be listed in the prototype explorer gui.

But they are there and they work. I made a really simple mod with only those changes:

Code: Select all

data.raw["utility-constants"]["default"].select_group_row_count = 2
data.raw["utility-constants"]["default"].select_slot_row_count = 4
data.raw["utility-constants"]["default"].inventory_width = 7
And sure it looks as expected from those values:
99149-gui_check.png
99149-gui_check.png (107.94 KiB) Viewed 4071 times