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

Oracel

Second Lieutenant
67 Badges
Jan 4, 2015
120
71
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Parklife
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Mount & Blade: Warband
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Steel Division: Normandy 44 -  Back to Hell
  • Europa Universalis IV: El Dorado
  • Stellaris: Ancient Relics
  • Imperator: Rome
  • Crusader Kings II: Holy Fury
  • Stellaris: Lithoids
  • Imperator: Rome Sign Up
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV
  • Cities: Skylines
  • War of the Roses
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Stellaris: Necroids
  • Battle for Bosporus
  • Victoria 2
  • Crusader Kings II: Jade Dragon
  • Stellaris: Megacorp
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Hey guys, I have a question regarding the gui and its access to data:

So for example in the "province window" we are getting the little face that indicates whether a pop is happe or not with the following line:

Code:
frame = "[ProvinceWindow.GetProvince.GetPopHappyFrame('citizen')]"

What is not shown is the actual happyness of the pops in percentage points (I know it's shown in the tooltip, but that's not the point here).

The percentage is shown however in the "view pops window" with the following lines:

Code:
[...]
datamodel = "[ViewPopsWindow.GetPops]"
[...]
text = "[PopItem.GetHappyness|0%]"

I am unable to access this percentage from the province_window.gui as the ViewPopsWindow-Prefix doesn't work there and the rest seems to rely on this prefix. So my question is, is there really no way to access this kind of information from another window or am I missing something?
 
Hi Magnar, thank you for your answer, this has been clear to me though :)

My question is whether I can access the "PopItem.GetHappyness" from within the province window and not from the view pops window as I have been unable to achieve that.