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:
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:
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?
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?