Exemplo n.º 1
0
 private static void onClickedNodesButton(SleekButton button)
 {
     EditorEnvironmentLightingUI.close();
     EditorEnvironmentRoadsUI.close();
     EditorEnvironmentNavigationUI.close();
     EditorEnvironmentNodesUI.open();
 }
Exemplo n.º 2
0
 public static void close()
 {
     if (!EditorEnvironmentUI.active)
     {
         return;
     }
     EditorEnvironmentUI.active = false;
     EditorEnvironmentLightingUI.close();
     EditorEnvironmentRoadsUI.close();
     EditorEnvironmentNavigationUI.close();
     EditorEnvironmentNodesUI.close();
     EditorEnvironmentUI.container.lerpPositionScale(1f, 0f, ESleekLerp.EXPONENTIAL, 20f);
 }
Exemplo n.º 3
0
 // Token: 0x06001ED4 RID: 7892 RVA: 0x000A89C0 File Offset: 0x000A6DC0
 private static void select(Transform select)
 {
     if (EditorNodes.selection != null)
     {
         if (EditorNodes.node.type == ENodeType.SAFEZONE)
         {
             EditorNodes.selection.GetComponent <Renderer>().material = (Material)Resources.Load("Materials/Safezone");
         }
         else if (EditorNodes.node.type == ENodeType.PURCHASE)
         {
             EditorNodes.selection.GetComponent <Renderer>().material = (Material)Resources.Load("Materials/Purchase");
         }
         else if (EditorNodes.node.type == ENodeType.ARENA)
         {
             EditorNodes.selection.GetComponent <Renderer>().material = (Material)Resources.Load("Materials/Arena");
         }
         else if (EditorNodes.node.type == ENodeType.DEADZONE)
         {
             EditorNodes.selection.GetComponent <Renderer>().material = (Material)Resources.Load("Materials/Deadzone");
         }
         else if (EditorNodes.node.type == ENodeType.EFFECT)
         {
             EditorNodes.selection.GetComponent <Renderer>().material = (Material)Resources.Load("Materials/Effect");
         }
         else
         {
             EditorNodes.selection.GetComponent <Renderer>().material.color = Color.white;
         }
     }
     if (EditorNodes.selection == select || select == null)
     {
         EditorNodes.selection = null;
         EditorNodes._node     = null;
     }
     else
     {
         EditorNodes.selection = select;
         EditorNodes._node     = LevelNodes.getNode(EditorNodes.selection);
         if (EditorNodes.node.type == ENodeType.SAFEZONE || EditorNodes.node.type == ENodeType.PURCHASE || EditorNodes.node.type == ENodeType.ARENA || EditorNodes.node.type == ENodeType.DEADZONE || EditorNodes.node.type == ENodeType.EFFECT)
         {
             EditorNodes.selection.GetComponent <Renderer>().material = (Material)Resources.Load("Materials/Remove");
         }
         else
         {
             EditorNodes.selection.GetComponent <Renderer>().material.color = Color.red;
         }
     }
     EditorEnvironmentNodesUI.updateSelection(EditorNodes.node);
 }