public void SetSingleSelectedControl(Control control) { SelectedEntity2DList.Clear(); SelectedControlNamesInList.Clear(); SelectedEntity2DList.Add(control); SelectedControlNamesInList.Add(control.Name); }
private void SetNewControlAfterDelete(int index) { SelectedEntity2DList.Clear(); if (Scene.Controls.Count == 0) { return; } SelectedEntity2DList.Add(Scene.Controls.Count == index ? Scene.Controls[index - 1] : Scene.Controls[index]); }
private void UpdateUIControlAndLists(Control control) { SelectedControlNamesInList.Add(control.Name); if (!SelectedEntity2DList.Contains(control)) { SelectedEntity2DList.Add(control); } IsSelectingControl = true; uiControl.SetMaterials(SelectedEntity2DList); Messenger.Default.Send(SelectedControlNamesInList, "SetSelectedName"); Messenger.Default.Send(uiControl.Index, "SetSelectedIndex"); ControlProcessor.UpdateOutlines(SelectedEntity2DList); controlChanger.SetControlLayer(control.RenderLayer, this); }