kookehs / risk-of-raindrops

💧 mods for Risk of Rain 2
MIT License
5 stars 4 forks source link

Settings GUI in mod manager #11

Open ToyDragon opened 5 years ago

ToyDragon commented 5 years ago

Hey, love the mod. I've been working on this GUI for the settings so they can be easily changed while the game is running: https://i.imgur.com/Kq9wXo0.png https://i.imgur.com/HiQCdPx.png

It adds a soft dependency on my shitty mod manager, so it'll continue to work great for your users who don't have the manager. Feel free to make whatever changes you want, or even to just copy paste the code out into your own UI.

kookehs commented 5 years ago

This is awesome! Definitely looking forward to adding this. I'm trying to build your branch, and I'm getting SetFieldValue reference or assembly not found. Did you write some extension methods, am I missing some package, or does this require the latest .NET framework?

ToyDragon commented 5 years ago

I'm out of town ATM so I can't verify, but I think that's a new feature added in https://github.com/risk-of-thunder/R2API/commit/c3683d1759f32dca6ec7d0b146f3dc9cce5508a8. You'd either have to update the mod to required a development release of R2API, or replace those calls with the normal reflection calls. My bad, I should have done that in the initial PR.