private void AddHeader() { Header = ComponentPool.Get <StyleHeaderPanel>(this, nameof(Header)); Header.Init(Rule.Style.Value.Type, OnSelectTemplate, Line.IsSupportRules); Header.OnDelete += () => Editor.DeleteRule(this); Header.OnSaveTemplate += OnSaveTemplate; Header.OnCopy += CopyStyle; Header.OnPaste += PasteStyle; }
private void AddHeader() { var header = AddUIComponent <StyleHeaderPanel>(); header.Init(Rule.Style.Type, Editor.CanDivide); header.OnDelete += () => Editor.DeleteRule(this); header.OnSaveTemplate += OnSaveTemplate; header.OnSelectTemplate += OnSelectTemplate; }
private void AddHeader() { var header = AddUIComponent <StyleHeaderPanel>(); header.Init(Rule.Style.Type, Editor.SupportRules); header.OnDelete += () => Editor.DeleteRule(this); header.OnSaveTemplate += OnSaveTemplate; header.OnSelectTemplate += OnSelectTemplate; header.OnCopy += CopyStyle; header.OnPaste += PasteStyle; }