Open GregoireDerrough opened 1 month ago
The unit editor, in its current form, doesn't use any kind of template. It's all hardcoded, which is why it hasn't been expanded much.
About the AK forms, they're in the TWADFORMDESCR files, but RPFM has no template system to use them. There was an old json-based template I made a while ago, but it got scraped and replaced with the currently hardcoded editors due to bugs and nobody using it.
Damn, shame. I'll try to see if I can't help with anything related to that, but looking at those ui files rpfm has, looks complicated as hell.
The ui files are not intended to be manually edited. They're created and edited using QtDesigner, which is a visual editor rather easy to use.
In the assembly kit for shogun 2, Rome 2, attila, and thrones of Britannia, there is something called a form launcher, which allows you to edit multiple linked tables in one window (eg new incidents/events). I think this feature is controlled by some of the TWAD files (there seems to be 2 kinds,
TWAD
andTWaD_
, but I'm not sure which one is used by the AK form launcher).Since RPFM has the unit editor for warhammer 2/3, I was wondering if it would be possible to add that sort of functionality but for the tables? And maybe for the other games as well? Does the rpfm unit editor use some sort of UI template?
I'll try to look into this more, add some screenshots and look into which TWaD files are used for the form launcher.