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

Goldkilla

Corporal
54 Badges
May 14, 2016
37
13
  • Cities in Motion 2
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Pillars of Eternity
  • Magicka
  • Tyranny - Tales from the Tiers
  • Hearts of Iron IV: Expansion Pass
  • Tyranny: Archon Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Knights of Honor
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Hearts of Iron IV: Cadet
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: The Old Gods
  • Europa Universalis III
  • Divine Wind
  • Stellaris: Necroids
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Majesty 2 Collection
  • Semper Fi
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Magicka: Wizard Wars Founder Wizard
  • Mount & Blade: Warband
  • Battle for Bosporus
  • Europa Universalis IV: Common Sense
  • Stellaris: Federations
  • Knights of Pen and Paper 2
  • Stellaris
  • Tyranny: Archon Edition
  • Europa Universalis IV
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:

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 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!
 

Yazilliclick

Corporal
31 Badges
Jul 16, 2007
34
0
  • Victoria 2: Heart of Darkness
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Prison Architect
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Age of Wonders III
  • Tyranny - Tales from the Tiers
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Tyranny: Archon Edition
  • Stellaris
  • Pillars of Eternity
  • Europa Universalis IV: Pre-order
  • Cities: Skylines
  • 500k Club
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Victoria 2
  • Teleglitch: Die More Edition
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Europa Universalis III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
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.
 

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