Tradition Modding using positionType; How do I get to spriteType?

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

FawltyPlay

Recruit
10 Badges
Apr 28, 2018
2
0
  • Cities: Skylines
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2
  • Stellaris
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Apocalypse
  • Crusader Kings II
  • Magicka
I am wondering how it is that objects drawn using positionType hook into their respective .gfx files. In any instance in which I see positionType used to any effect, I do not see a corresponding spriteType the references the name of the positionType. For instance;

In the interface files for the traditions tree in Stellaris there is a list of positionTypes that place the tradition picks within their respective traditions windows. One of these may be called "tr_<tradition-key>". When I check the corresponding .gfx to the .gui, I will see "GFX_tr_<tradition-key>" and its corresponding .dds icon file. It is obvious these two work together, as breaking one causes the icon to not appear, but nowhere else in the code (using Agent Ransack) do I find "GFX_tr_<tradition-key>". As a result I have no idea how to link these two in my own mod in order to add more traditions.

How does positionType interact with spriteType?