I'm currently working on a mod where I want to close windows without modifying the lua file for the popup. So far it works except for one popup window - TechPopup.lua.
This is the window that opens on the left side either when you have to choose a new research or if you click on the InfoCorner/TechPanel heading button.
The commands I used to close some windows is
UIManager : DequeuePopup(LookUpControl( "InGame/GoodyHutPopup"));
This works for all popups I've tested except for CityView, ProductionPopup and TechPopup. I solved CityView and ProductionPopup by using the following
LookUpControl("InGame/ProductionPopup"):SetHide (true);
Events.SerialEventExitCityScreen();
I have yet to find a command that closes the TechPopup. "InGame/TechPopup" isn't the correct context reference for the window and so far none of the following work:
"InfoCorner/TechPopup"
"InfoCorner/TechPanel/TechPopup"
"TechPanel/TechPopup"
"TechPopup"
"UI/TechPopup"
Looking to see if anyone has dealt with a similar problem and knows the proper reference to use for TechPopup.
This is the window that opens on the left side either when you have to choose a new research or if you click on the InfoCorner/TechPanel heading button.
The commands I used to close some windows is
UIManager : DequeuePopup(LookUpControl( "InGame/GoodyHutPopup"));
This works for all popups I've tested except for CityView, ProductionPopup and TechPopup. I solved CityView and ProductionPopup by using the following
LookUpControl("InGame/ProductionPopup"):SetHide (true);
Events.SerialEventExitCityScreen();
I have yet to find a command that closes the TechPopup. "InGame/TechPopup" isn't the correct context reference for the window and so far none of the following work:
"InfoCorner/TechPopup"
"InfoCorner/TechPanel/TechPopup"
"TechPanel/TechPopup"
"TechPopup"
"UI/TechPopup"
Looking to see if anyone has dealt with a similar problem and knows the proper reference to use for TechPopup.