I've been working on a UI mod that includes a lot of tweaks and things that I think are missing, taking some inspiration from the UI changes suggestion thread that's floating around. I'm running into a problem though.
Right now I'm trying to add a simple Protected By: line for city states to the Relations screen of the Diplomacy popup. It's working fine, except that a copy of the Relationships panel never disappears anymore. Not if I click close, not even when the game is freshly loaded so that it was never open in the first place. If I open the Diplomacy popup again later, when I've met some city states say, and then close it again the panel disappears as it should, but the old (stuck) copy of it is there forever. I've attached a screenshot of the problem.
Question is, when I'm changing parts of the UI like this what's the proper way to convey those changes to the game? Do I need to copy-paste the entire .xml file into a new file in my mod, then make my changes there? Can I do a database update instead like you can for units or resources?
Right now I've copy-pasted the entire DiploRelationships .lua and .xml files, made the changes, then added a "InGameUIAddin" pointing to the .lua only.
The logs aren't showing anything out of the ordinary either
Right now I'm trying to add a simple Protected By: line for city states to the Relations screen of the Diplomacy popup. It's working fine, except that a copy of the Relationships panel never disappears anymore. Not if I click close, not even when the game is freshly loaded so that it was never open in the first place. If I open the Diplomacy popup again later, when I've met some city states say, and then close it again the panel disappears as it should, but the old (stuck) copy of it is there forever. I've attached a screenshot of the problem.
Question is, when I'm changing parts of the UI like this what's the proper way to convey those changes to the game? Do I need to copy-paste the entire .xml file into a new file in my mod, then make my changes there? Can I do a database update instead like you can for units or resources?
Right now I've copy-pasted the entire DiploRelationships .lua and .xml files, made the changes, then added a "InGameUIAddin" pointing to the .lua only.
The logs aren't showing anything out of the ordinary either
