Open DarkLiKally opened 9 years ago
First of all, I think it is best to use the Colossal UI framework. This way we can make mods fit in with the rest of the game. I think it would also be wise to have modders use a single wrapper around the Colossal UI framework, so any problems with UI (think updates) only need to be fixed once. We could also expose the existing UI framework through our wrapper, so developers who want some more advanced features can still access them. Using a wrapper, it is also easier to hook in to some existing components (MainMenu, OptionsPanel, etc.) which would be incredibly useful.
What do you need reflection for in 4? So far I have only used it to list the UI templates. And if it is only things like that for which you could need reflection, we might just provide the tools for the modders.
So, let's write a wrapper. Yes, the full existing UI framework should be accessible trough the SkylineToolkit API. But it also should allow modders to stay independent from ColossalManaged.
If you start working on that, I will work on a way to allow developers to add buttons to existing panels and button strips. So different mods don't place buttons in the same position as each other.
Sounds good. I've finished the basic wrapper for UIComponent already. It should be able to handle the basic interaction of every element which is derived from UIComponent. Next up on my list is, cleaning up the code a bit and creating a wrapper for UIPanel and derive a custom Window panel.
There are a few ways implementing a gui framework.
Things that should be considered anyway: