Ejemplo n.º 1
0
        private void DoWindow(int id)
        {
            GUILayout.Label("X scale");
            x = NuterraGUI.NumberField(x, 0.1f);
            //float.TryParse(GUILayout.TextField(x.ToString()), out x);

            GUILayout.Label("Y scale");
            y = NuterraGUI.NumberField(y, 0.1f);
            //float.TryParse(GUILayout.TextField(y.ToString()), out y);

            GUILayout.Label("Z scale");
            z = NuterraGUI.NumberField(z, 0.1f);
            //float.TryParse(GUILayout.TextField(z.ToString()), out z);
            if (GUILayout.Button("Close"))
            {
                visible = false;
                block   = null;
            }
            GUI.DragWindow();
        }
Ejemplo n.º 2
0
        private void DoWindow(int id)
        {
            GUILayout.Label("X rotation");
            x = NuterraGUI.NumberField(x, 15f);
            //float.TryParse(GUILayout.TextField(x.ToString()),out x);

            GUILayout.Label("Y rotation");
            y = NuterraGUI.NumberField(y, 15f);
            //float.TryParse(GUILayout.TextField(y.ToString()), out y);

            GUILayout.Label("Z rotation");
            z = NuterraGUI.NumberField(z, 15f);
            //float.TryParse(GUILayout.TextField(z.ToString()), out z);

            //GUILayout.Label(block.cachedLocalRotation.ToString());

            if (GUILayout.Button("Close"))
            {
                visible = false;
                block   = null;
            }
            GUI.DragWindow();
        }
Ejemplo n.º 3
0
        private void DoWindow(int id)
        {
            GUILayout.Label("X position");
            x = NuterraGUI.NumberField(x, 0.125f);
            //float.TryParse(GUILayout.TextField(x.ToString()), out x);

            GUILayout.Label("Y position");
            y = NuterraGUI.NumberField(y, 0.125f);
            //float.TryParse(GUILayout.TextField(y.ToString()), out y);

            GUILayout.Label("Z position");
            z = NuterraGUI.NumberField(z, 0.125f);
            //float.TryParse(GUILayout.TextField(z.ToString()), out z);

            //GUILayout.Label(((IntVector3)block.trans.localPosition).ToString());

            if (GUILayout.Button("Close"))
            {
                visible = false;
                block   = null;
            }
            GUI.DragWindow();
        }