AinaVT / LethalConfig

A mod configuration menu for Lethal Company
https://thunderstore.io/c/lethal-company/p/AinaVT/LethalConfig/
GNU General Public License v3.0
15 stars 6 forks source link

Implementing mod menu both in the main menu and in-game quick menu #6

Closed AinaVT closed 9 months ago

AinaVT commented 9 months ago

Needed to write a few new things:

Also added a couple of animations for opening and closing the menu and notifications (yes, i did get distracted).

All that is left is to add it to both places now.

AinaVT commented 9 months ago

Lethal_Company_M5RMJYqHXN

AinaVT commented 9 months ago

Both menus are working, but there is a bug right now where if you close the in-game quick menu with the escape key while the mod menu is open, the quick menu becomes unclickable. Fixing it.

AinaVT commented 9 months ago

Important detail about Harmony: Turns out that the 0Harmony.dll that comes with BepInEx is what crashes unity, even when it's stripped. Trying to use the 0Harmony20.dll doesn't crash unity, but the patching simply does not work and I can't really explain why. So until I figured out a way to not make it crash OR i change the project's structure to separate the project into both a unity project or assets and VS solution for the plugin code, I'll keep a stripped version of version 2.3.0.0 of the original Harmony releases. There are some API differences, like Harmony2 not having CreateAndPatchAll, but for this project it should do just fine, at least for now. Tested and worked fine with the published mod.

AinaVT commented 9 months ago

ezgif com-optimize (2)

AinaVT commented 9 months ago

Everything seems fine during test, so I'll just call it.