Allow AI players to add debug information to the TerritoryDetailPanel #8475
Closed
trevan
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As part of my AI work, I'd like to be able to add the territory value to the TerritoryDetailPanel when I turn on debug. This way, I can visually see what the value is.
The code that generates the text in the TerritoryDetailPanel is in TerritoryDetailPanel#territoryChanged.
My thoughts is to add a getter for the details variable in TripleAFrame. Then add some methods to TerritoryDetailPanel to register/unregister methods that are called inside of TerritoryDetailPanel#territoryChanged to add additional text to the TerritoryDetailPanel.
Is this acceptable or is there a better way to allow adding additional details to the TerritoryDetailPanel?
Here's an example of what it would look like in the UI. The "Flow Field Value: 31" is the new data that is being added.
Beta Was this translation helpful? Give feedback.
All reactions