In current implementation i can add to XML fight class additional C# code like this and use settings window:
[Serializable]
public class ShadowPriestSettings : Settings{
...bla bla bla
}
this works with settings class name exactly equals [FightClass]Settings where [FightClass] is name, declared in "General Settings" -> "Fight Class Name". It would be nice to use any name, with additional C# code like this:
public void ShowConfiguration() {
InnerSettings.Load();
InnerSettings.CurrentSetting.ToForm();
InnerSettings.CurrentSetting.Save();
}
[Serializable]
public class InnerSettings : Settings{
... bla bla bla
}
For now, it not works, robot says "Type 'Main' already defines a member called 'ShowConfiguration' with the same parameter types"
Is there any legal option to use settings with XML fight class?
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now