public void DoUI(IObjectUIControl control)
 {
     foreach (var(linkName, link) in obj.Links)
     {
         if (control.Link(linkName))
         {
             scene.EnterList(link);
         }
     }
 }
 public void DoUI(IObjectUIControl control)
 {
     foreach ((string name, I3dWorldObject _obj) in obj.LinkDestinations)
     {
         if (control.Link($"{_obj.ToString()} ({name})"))
         {
             scene.FocusOn(_obj);
         }
     }
 }
Exemplo n.º 3
0
 public void DoUI(IObjectUIControl control)
 {
     foreach (KeyValuePair <string, List <I3dWorldObject> > keyValuePair in obj.Links)
     {
         if (control.Link(keyValuePair.Key))
         {
             scene.EnterList(keyValuePair.Value);
         }
     }
 }
Exemplo n.º 4
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");
            }