I created a new branch and started working on making a single Python File for the Trade Screens, so far so good. I had to add extra dll functionally to pass arguments to Controls in the game as there was none. Now when the MainInterface is built it will have to loop through all the Trade Screens and place them according to their order in the Loop, placing an argument to let the Control functions know what Trade Screen is being passed to it. Once the Trade Screen is passed to python, python will then use that info to configure the Trade Screen's graphic as well as things like: can you purchase units, does it have a Docks, is there a Transaction screen, etc. We can potential setup any kind of Trade Screen Configuration in the XML by adding new tags.
When this is done adding new Trade Screens will be as easy as adding a new Unit... I want to add the Gold Coast, ok, just work up some graphics, add the Trade Screen to EuropeInfos, set up the XML, boom you got your Gold Coast. You can then set up Prices in YieldsInfo.
One question is; we should dedicate one part of the main screen to Trade Screen icons. The Left side is being taken over by Censure Icons, Upkeep info, etc, but we do have some room on the Right side available. However, the Toggle Scores Display also takes up some room on the right side. In my current game there are 13 Players, which would leave room for about 7 or 8 Trade Screen Buttons down the right side, not sure how it would look if there was say, 26 Players.
We could place the Icons under the Advisor Buttons on the Left Side or Right (I am partial to Right since that is where they have been). That way they will be less likely to underlap the Scores Display. Also, I've shrunk the buttons down a bit so that gives us more room as well. Any ideas?