• 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.

binaryferret

Private
47 Badges
May 16, 2012
10
0
www.binaryferret.com
  • Crusader Kings II: Charlemagne
  • Pillars of Eternity
  • Crusader Kings II
  • Sword of the Stars
  • Europa Universalis IV: Res Publica
  • Magicka
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Synthetic Dawn
  • BATTLETECH
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
I've found how to change gui via the interface folder by looking at the files held there .gui and .gfx.

I can't seem to find any reference to attaching custom behavior to these buttons. I was hoping someone might point me in the right direction.

Example:

interface/planet_view.gui
Code:
        buttonType = {
            name = "purge"
            quadTextureSprite = "GFX_standard_button_142_34_button"
            position = { x = -171 y = -108  }
            Orientation = "LOWER_RIGHT"
            buttonFont = "cg_16b"
            text = "POP_ACTION_PURGE"
            font = "cg_16b"
        }

I was expecting to find something that might point to a behavior on click, but no luck.
 
Well either they hardcoded the buttons in the game code itself or they made it over the names. Like name = "purge" maybe something happens when you change to something else? Because the Text for the button is under text = "POP_ACTION_PURGE" so that should have no other meaning than just displaying the name for it.
 
  • 1
Reactions:
I thought they might be using the "name" field as a key value but I couldn't find anywhere in the files that refers to purge as some type of selector.

The closest I've come is finding a on_purge_begun in 00_on_actions.txt but I can't see a way the system relates to clicking the button. I actually wanted to add a new button, rather than change purge. I was using purge as an example.

Cheers tho!
 
Disappointing to hear this isn't in. Was wanting to make some UI improvements but they depend on being to able to modify actions on buttons. One example being I wanted to mod in shift+click to give 1000 resources to sector because going by 100 is too low for late game.
 
Disappointing to hear this isn't in. Was wanting to make some UI improvements but they depend on being to able to modify actions on buttons. One example being I wanted to mod in shift+click to give 1000 resources to sector because going by 100 is too low for late game.

Yeah it is disappointing. That's actually one of the things I wanted to do as I thought it'd be an easy foot in the door mod to get more of a feel for modding Stellaris.

I hope they make it possible soon, as it seems weird to me to have all the interface stuff easily expandable but not being able to actually attach behavior to it.