Since we can do more things about UI in RM 2.0, I’m curious if I can make the game rule actually know which objective is being selected by player. Any solutions?
it’s not really a UI problem per-se, because any “normal” button can have an onClick function with which you can detect when the said button has been clicked/selected (it already existed in HW2C).
The problem here is that the elements in the objective list are being created in an harcoded way.
What we see in the UI file is only a template, cloned internally to populate the list as needed. So even if we add the onClick line in the said template, there is no way to know the objective associated to it, as far as I know
Unfortunately the same for build, research etc. too