RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 175 forks source link

AngelScript improvements: ImGui, mouse position, script monitor UI + `loadscript` console command. #2931

Closed ohlidalp closed 2 years ago

ohlidalp commented 2 years ago

Separated out from #2930 to make things more manageable. These changes do not involve the refcounting redesign, so there is small chance for bugs. I tested races and vehicle removal, everything works.

New script features:

New game features:

Developers only: Tidy-up of AngelScript bindings:

I moved all AngelScript-registration code to a single location, a new directory 'scripting/bindings/'. Previously, those registrations were all over the place (some in ScriptEngine.cpp, some in LocalStorage.cpp, most in FoobarAngelscript.cpp files). I placed all in dedicated 'FoobarAngelscript.cpp' files. It will make future bindings better organized.

Code changes: