Esempio n. 1
0
 private void AddStyleProperties()
 {
     StyleProperties = Rule.Style.Value.GetUIComponents(Rule.Line, this);
     if (StyleProperties.OfType <ColorPropertyPanel>().FirstOrDefault() is ColorPropertyPanel colorProperty)
     {
         colorProperty.OnValueChanged += (Color32 c) => Editor.RefreshSelectedItem();
     }
 }
Esempio n. 2
0
 private void AfterStyleChanged()
 {
     Editor.RefreshSelectedItem();
     StopLayout();
     ClearStyleProperties();
     AddStyleProperties();
     StartLayout();
 }