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"); }
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"); }
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"); }