Implement custom ruleset config.

This commit is contained in:
2023-07-31 15:15:07 +08:00
parent 440581261e
commit e34a9cc868
5 changed files with 123 additions and 1 deletions

View File

@@ -16,6 +16,9 @@ namespace Cryville.Crtr.Config {
[SerializeField]
PropertyMasterPanel m_genericConfigPanel;
[SerializeField]
PropertyMasterPanel m_rulesetConfigPanel;
[SerializeField]
InputConfigPanel m_inputConfigPanel;
@@ -57,6 +60,7 @@ namespace Cryville.Crtr.Config {
}
m_genericConfigPanel.Adapter = new DefaultPropertyMasterAdapter(_rscfg.generic);
m_rulesetConfigPanel.Adapter = new RulesetConfigPropertyMasterAdapter(ruleset.Root.configs, _rscfg.configs);
var proxy = new InputProxy(ruleset.Root, null, new Vector2(Screen.width, Screen.height));
proxy.LoadFrom(_rscfg.inputs);