Esempio n. 1
0
            public void DoUI(IObjectUIControl control)
            {
                obj.mName = control.FullWidthTextInput(obj.mName, "Camera Name");
                obj.mType = control.DropDownTextInput("Camera Type", obj.mEntry.Get <string>("camtype"), cameraTypes, false);

                control.VerticalSeperator();
                control.Spacing(2);
                obj.mFields["woffset.X"] = control.NumberInput((float)obj.mFields["woffset.X"], "World Offset X");
                obj.mFields["woffset.Y"] = control.NumberInput((float)obj.mFields["woffset.Y"], "World Offset Y");
                obj.mFields["woffset.Z"] = control.NumberInput((float)obj.mFields["woffset.Z"], "World Offset Z");

                obj.mFields["loffset"]  = control.NumberInput((float)obj.mFields["loffset"], "loffset");
                obj.mFields["loffsetv"] = control.NumberInput((float)obj.mFields["loffsetv"], "loffsetv");
                obj.mFields["roll"]     = control.NumberInput((float)obj.mFields["roll"], "roll");
                obj.mFields["fovy"]     = control.NumberInput((float)obj.mFields["fovy"], "fovy");
                obj.mFields["camint"]   = Convert.ToInt32(control.NumberInput((int)obj.mFields["camint"], "camint"));
                obj.mFields["upper"]    = control.NumberInput((float)obj.mFields["upper"], "upper");
                obj.mFields["lower"]    = control.NumberInput((float)obj.mFields["lower"], "lower");

                obj.mFields["gndint"] = Convert.ToInt32(control.NumberInput((int)obj.mFields["gndint"], "gndint"));
                obj.mFields["uplay"]  = control.NumberInput((float)obj.mFields["uplay"], "uplay");
                obj.mFields["lplay"]  = control.NumberInput((float)obj.mFields["lplay"], "lplay");

                obj.mFields["pushdelay"]    = Convert.ToInt32(control.NumberInput((int)obj.mFields["pushdelay"], "pushdelay"));
                obj.mFields["pushdelaylow"] = Convert.ToInt32(control.NumberInput((int)obj.mFields["pushdelaylow"], "pushdelaylow"));

                obj.mFields["udown"]   = Convert.ToInt32(control.NumberInput((int)obj.mFields["udown"], "udown"));
                obj.mFields["vpanuse"] = Convert.ToInt32(control.NumberInput((int)obj.mFields["vpanuse"], "vpanuse"));

                obj.mFields["vpanaxis.X"] = control.NumberInput((float)obj.mFields["vpanaxis.X"], "Pan Axis X");
                obj.mFields["vpanaxis.Y"] = control.NumberInput((float)obj.mFields["vpanaxis.Y"], "Pan Axis Y");
                obj.mFields["vpanaxis.Z"] = control.NumberInput((float)obj.mFields["vpanaxis.Z"], "Pan Axis Z");
            }
Esempio n. 2
0
            public void DoUI(IObjectUIControl control)
            {
                lightID   = Convert.ToInt32(control.NumberInput(obj.mEntry.Get <int>("LightID"), "LightID"));
                lightName = control.FullWidthTextInput(obj.mEntry.Get <string>("AreaLightName"), "AreaLightName");

                if (control.Button("View Light Attributes"))
                {
                    LightAttribEditor l = new LightAttribEditor(lightName);
                    l.Show();
                }
            }
Esempio n. 3
0
            public void DoUI(IObjectUIControl control)
            {
                text     = control.TextInput(text, "TextInput");
                longText = control.FullWidthTextInput(longText, "Long Text Input");
                number   = control.NumberInput(number, "Number Input");
                control.Link("Just some Link");

                control.DoubleButton("Add", "Remove");
                control.TripleButton("Add", "Remove", "Insert");
                control.QuadripleButton("+", "-", "*", "/");
                enemyType  = (EnemyType)control.ChoicePicker("Enemy1 Type", enemyType, Enum.GetValues(typeof(EnemyType)));
                enemyType2 = (EnemyType)control.ChoicePicker("Enemy2 Type", enemyType2, Enum.GetValues(typeof(EnemyType)));
                control.VerticalSeperator();
                objectType = control.AdvancedTextInput("Object Type", objectType, objectTypes);

                control.Spacing(30);
                control.PlainText("Some Text");
            }
Esempio n. 4
0
            public void DoUI(IObjectUIControl control)
            {
                obj.attributes[2] = control.FullWidthTextInput(obj.attributes[2], "Events");

                control.Spacing(20);

                control.Heading("Normal Exit");
                obj.attributes[3] = control.FullWidthTextInput(obj.attributes[3], "Unlock Levels");
                obj.attributes[4] = control.FullWidthTextInput(obj.attributes[4], "Unlock Routes");

                control.Spacing(20);

                control.Heading("Secret Exit");
                obj.attributes[5] = control.FullWidthTextInput(obj.attributes[5], "Events");
                obj.attributes[6] = control.FullWidthTextInput(obj.attributes[6], "Unlock Levels");
                obj.attributes[7] = control.FullWidthTextInput(obj.attributes[7], "Unlock Routes");
            }