I am trying to code something but:
private static int MinDistance => Menu.Item("Dagger.MinDistance").GetValue().Value;
And i got Error 12 Invalid token ';' in class, struct, or interface member declaration
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If its slider then probably, this will work
private static int MinDistance => Menu.Item("Dagger.MinDistance").GetValue<Slider>().Value;
But i recommend using sdk MenuFactory, unless u are just trying to edit some assembly.