Rewrite property panel to adapt to ruleset config.

This commit is contained in:
2023-07-27 22:07:20 +08:00
parent 9b091a0084
commit bc51a45df8
39 changed files with 825 additions and 298 deletions

View File

@@ -14,7 +14,7 @@ namespace Cryville.Crtr.Config {
Transform m_content;
[SerializeField]
SettingsPanel m_genericConfigPanel;
PropertyMasterPanel m_genericConfigPanel;
[SerializeField]
InputConfigPanel m_inputConfigPanel;
@@ -56,7 +56,7 @@ namespace Cryville.Crtr.Config {
}
}
m_genericConfigPanel.Target = _rscfg.generic;
m_genericConfigPanel.Adapter = new DefaultPropertyMasterAdapter(_rscfg.generic);
var proxy = new InputProxy(ruleset.Root, null, new Vector2(Screen.width, Screen.height));
proxy.LoadFrom(_rscfg.inputs);