Resize the Platforms List GUI?

Place to get help with not working mods / modding interface.
sarge945
Fast Inserter
Fast Inserter
Posts: 200
Joined: Wed Apr 26, 2023 9:45 am
Contact:

Resize the Platforms List GUI?

Post by sarge945 »

I'm trying to change the size of the Platforms list (that shows the planets and your platforms at the left hand side of the map screen)

I can change styles of other things, like the undelete_space_platforms_table as a test by setting their height to 0, but I can't seem to find the platforms table anywhere.

I can normally do something like this

Code: Select all

style.undelete_space_platforms_table.height = 0
But I've tried heaps of gui elements and I can't seem to find the platforms/planets list. Is it's size hard coded? Is it part of the default gui styles?
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 626
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Resize the Platforms List GUI?

Post by Silari »

Have you tried the Ctrl + F6 style debug option? Turning it on and hovering over a GUI element gives you information on the styles it uses, might have something useful there?
sarge945
Fast Inserter
Fast Inserter
Posts: 200
Joined: Wed Apr 26, 2023 9:45 am
Contact:

Re: Resize the Platforms List GUI?

Post by sarge945 »

Silari wrote: Thu Sep 17, 2026 1:27 pm Have you tried the Ctrl + F6 style debug option? Turning it on and hovering over a GUI element gives you information on the styles it uses, might have something useful there?
Thanks, this was mighty helpful and I didn't even know it existed!

Loooks like it uses the SurfaceList class

Interestingly, surfacelist is not mentioned anywhere in the docs or in data.raw

The issue is that it doesn't seem to be a "real" UI. The map screen doesn't send on_gui_opened events, nor does surfacelist appear in the default styles.
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 355
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Resize the Platforms List GUI?

Post by Osmo »

Mods don't have access to base game GUIs, and classes mean nothing to mods. You can only change styles. If there is a style that's used just for this element, which is rare, that's good. If not, you're out of luck.
Your best bet would be hiding it (using game view settings) and recreating it yourself, which might come at the cost of some functionality since not everything is exposed to lua.
sarge945
Fast Inserter
Fast Inserter
Posts: 200
Joined: Wed Apr 26, 2023 9:45 am
Contact:

Re: Resize the Platforms List GUI?

Post by sarge945 »

Osmo wrote: Fri Sep 18, 2026 10:00 pm Mods don't have access to base game GUIs, and classes mean nothing to mods. You can only change styles. If there is a style that's used just for this element, which is rare, that's good. If not, you're out of luck.
Your best bet would be hiding it (using game view settings) and recreating it yourself, which might come at the cost of some functionality since not everything is exposed to lua.
That seems like a lot of extra work for what is otherwise a very minor feature.
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 355
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Resize the Platforms List GUI?

Post by Osmo »

sarge945 wrote: Sat Sep 19, 2026 3:03 am That seems like a lot of extra work for what is otherwise a very minor feature.
Welcome to factorio modding. (the worse half of it)
Post Reply

Return to “Modding help”