• 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
68 Badges
Sep 11, 2016
12
0
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
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: