Popup Holy Order - ilikegoodfood/CommunityLib GitHub Wiki

Popup Holy Order

The Popup Holy Order is the religion screen. In the base game, it is not possible to change what values are listed here, or how they are listed. The community Library introduces a number of changes and hooks that allow for great control over the contents of this UI element.

For details of the hooks, see the Hooks page.

These changes are as follows:

  • The Next and Previous buttons now check the HolyOrder's isGone() function, and will not cycle to a dead religion. If you are viewing the religion screen for a dead relgiion, both buttons will bring you to the screen of the first living relgion.
  • The 'Can Influence Holy Order' messages in the Threat tab of the right hand panel of the UI now checks the HolyOrder's isGone() function, and will not generate the message for a dead religion.
  • Divine Entities now check the HolyOrder's isGone() function, and will not take actions if belonging to a dead religion. This is the same as for an exiled Divine Entity.
  • The Popoup Holy Order will now check if the HolyOrder subclass has hidden the following inherited functions (using the new keyword), and call those preferentially: computeInfluenceDark, computeInfluenceHuman, and processIncome. Make sure to replace them if your religion's influence gain does not behave in the usual way.
  • Through the use of the onPopupHolyOrder_DisplayInfluenceElder and onPopupHolyOrder_DisplayInfluenceHuman hooks, you can also directly modify the string that displayes the summary of the elder and human influence gain.
  • The budget panel is now dynamically constructed from a combination of ReasonMsgs and CommunityLib.ReasonMsgMaxs. This allows items to be added, removed, or modified before display to the player, through the use of the onPopupHolyOrder_DisplayBudget hook.
  • The stats panel is now dynamically constructed from ReasonMsgs. This allows items to be added, removed, or modified before display to the player, through the use of the onPopupHolyOrder_DisplayStats hook.