Quote:
|
Originally posted by Martin Gühmann
CityClicked is an event and it works if you click on the city on the map, if you want to have access cia the GUI you should try the event CitySelected. The syntax you have to use should look like this:
Code:
|
city_t MGCity;
HandleEvent(CitySelected)'MG_CitySelected'post{
MGCity = city[0];
} |
And that will save the selected city into a global city variable for use somewhere else in the script. BTW don't forget the semicolons. 
-Martin
|
Thanks, Martin. It doesn't sound like either of those commands will work for what I am trying to do.
What I am trying to do is have the City Manager screen open for a city selected in the national manager. I've added a new button to the National manager for this. The code works for OpenTrade or OpenScience commands, but it does not work for the OpenCity command because I don't know how to tell CTP2 what city I have highlighted in the Nat Man. Therefore, it doesn't know which city to open. CTP2 reads the highlighting when you click the Build Manager button, but I don't know how to do this in SLIC.