Ejemplo n.º 1
0
        private void ShowMainGUI()
        {
            GUILayout.Space(10);

            EditorGUILayout.BeginHorizontal();
            HedraEditor.SetButton("Specific", delegate { rangedOption = false; });
            HedraEditor.SetButton("Ranged", delegate { rangedOption = true; });
            EditorGUILayout.EndHorizontal();

            GUILayout.Space(20);

            targetOption   = (TargetOptions)EditorGUILayout.EnumPopup("Affect: ", targetOption);
            rotationOption = (RotationOptions)EditorGUILayout.EnumPopup("Rotate: ", rotationOption);

            GUILayout.Space(10);

            if (rangedOption)
            {
                ShowRangedGUI();
            }
            else
            {
                ShowSpecificGUI();
            }
        }
Ejemplo n.º 2
0
        private void ShowSpecificGUI()
        {
            HedraEditor.InspectorView(this, "rotations");
            GUILayout.Space(20);

            HedraEditor.SetButton("Randomize!", SpecificRandomization);
        }
Ejemplo n.º 3
0
 private void ShowMainGUI()
 {
     GUILayout.Space(10);
     targetOption = (TargetOptions)EditorGUILayout.EnumPopup("Affect: ", targetOption);
     GUILayout.Space(20);
     HedraEditor.InspectorView(this, "materials");
     GUILayout.Space(20);
     HedraEditor.SetButton("Randomize!", RandomizeMaterial);
 }
Ejemplo n.º 4
0
 private void ShowMainGUI()
 {
     GUILayout.Space(10);
     GUILayout.Label("Root");
     nameRoot = GUILayout.TextField(nameRoot);
     GUILayout.Label("Separator");
     separator = GUILayout.TextField(separator);
     GUILayout.Space(20);
     HedraEditor.SetButton("Apply", GiveName);
 }
Ejemplo n.º 5
0
        private void ShowRangedGUI()
        {
            HedraEditor.SetToggle("X", ref X, xRange.Show);
            GUILayout.Space(10);
            HedraEditor.SetToggle("Y", ref Y, yRange.Show);
            GUILayout.Space(10);
            HedraEditor.SetToggle("Z", ref Z, zRange.Show);

            GUILayout.Space(20);
            percentage = EditorGUILayout.FloatField("Percentage", percentage);
            GUILayout.Space(20);


            HedraEditor.SetButton("Randomize!", RangedRandomization);
        }