Dev Notes: Attempts to understand GUI things - openly-retro/stellaris-machine-robot-expansion GitHub Wiki

"potential"

image

Potential is whether it shows. Allow is whether you can click it 😄 https://discord.com/channels/378985949373399040/492401034573119488/926461616634089472

https://discord.com/channels/378985949373399040/492401034573119488/926107846641319986 image

https://discord.com/channels/378985949373399040/492401034573119488/1108740640088535070 image

How the subclass picker works

Note that 'GFX_xvcv_mdlc_leader_making_choose_subclass_box_bg' has no size. It is a sprite, sized to match the leader-making GUI window. No actual size is defined in the code. The subclass picker icons are simply spaced out across the black background of the sprite to make it look like they are inside it.

How tooltips are linked to trait buttons

xvcv_mdlc_leader_making_trait_pick_effect has a property,

custom_tooltip = xvcv_mdlc_leader_making_tooltip_$CLASS$_$ID$

looks for that pattern in the localisation :)