Example #1
0
 public void SetSingleSelectedControl(Control control)
 {
     SelectedEntity2DList.Clear();
     SelectedControlNamesInList.Clear();
     SelectedEntity2DList.Add(control);
     SelectedControlNamesInList.Add(control.Name);
 }
Example #2
0
 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]);
 }
Example #3
0
 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);
 }