Resize the Platforms List GUI?

Place to get help with not working mods / modding interface.
sarge945
Fast Inserter
Fast Inserter
Posts: 196
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: 196
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.
Post Reply

Return to “Modding help”