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

Shaka_Zulu

Private
70 Badges
Sep 11, 2016
13
0
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings III
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III: Royal Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Europa Universalis IV
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: El Dorado
  • 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: Rajas of India
Hi Paradox,

I don't know if you answer questions related to mods, but I'm stuck on something and thought if anybody knew it would be you guys. I'm trying to set up a button that when pressed pins every character in a variable list. I went to the modding co-op and I've been told that it would be only possible by modifying animation states. Do you guys have any recommendations on this front?
 
Pretty much as Tobbzn described it, I would only add a check that the character isn't already pinned, because the function is a toggle
in an item in your variable list:
Code:
widget = {
  visible = "[Not(Scope.GetCharacter.IsPinned)]"
  state = {
    name = pinme
    on_finish = "[Scope.GetCharacter.ToggleCharacterPinned]"
  }
}
and the button:
Code:
button_standard = {
  raw_text = "Pin all"
  onclick = "[PdxGuiTriggerAllAnimations('pinme')]"
}
 
  • 1
Reactions: