- Version: All
- Product: Fight Classes
- Type: Suggestion
- Status: Awaiting Feedback
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