How to show effects effecting empire meter

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Vacuum Dragon
Posts: 505
Joined: Tue Sep 30, 2014 10:01 am

How to show effects effecting empire meter

#1 Post by Ophiuchus » Fri Jan 27, 2017 9:56 am

I added an empire meter for the imperial supply yield, which I show in the tooltip of the overproduction warning (i.e. when you do not use all your industry PP).

How to show the effects resulting in the meter value?
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12247
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: How to show effects effecting empire meter

#2 Post by Geoff the Medio » Fri Jan 27, 2017 10:28 am

Assuming you mean technically how to get that information, not how to display it: Effect accounting is, I think, only implemented for basic meters (not part meters) in universeobjects, and not for empire meters. So to show a breakdown of the effects that determine an empire meter's value on a given turn, you'd need to implement effect accounting for them.

Post Reply