CitiesSkylinesModding / CS2-AssetPacksManager

2 stars 3 forks source link

Add UI mod with UDK Cooperative Preloading #9

Closed toverux closed 1 month ago

toverux commented 1 month ago

As discussed, this adds a UI mod for APM to support UDK's Cooperative Preloading :)

This is an adaptation of the standard UI Mod template, but simplified (removed useless code, deps and files), to keep it as simple as possible (well not totally, I wanted to keep sane defaults, but it could be made simpler by removing TypeScript -- but I kept it in case you want to make more UI things in the future so you have a good starting point).

Just run npm i at the root of the project once, and then hitting Build in the IDE will compile the UI mod. You can also npm run build it separately.

I'll let you integrate the .NET feature if you want, so you can get a grasp of it. As you have a multi-step load process, be careful about how and when you dispose the preloading operation(s) ;)