예제 #1
0
        public GuiTextBox AddTextBox(Vector2 position, float width, int maxChars)
        {
            GuiTextBox gtb = new GuiTextBox(position, width, maxChars);

            components.Add(gtb);

            return(gtb);
        }
예제 #2
0
 public void Deselect(GuiTextBox other)
 {
     if (this != other)
     {
         selected            = false;
         selectingBox        = false;
         draggedFromPosition = markerPos;
         draggedFrom         = cursorPosition;
     }
 }