コード例 #1
0
ファイル: Gui.cs プロジェクト: albinmartin/monostrategy
        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;
     }
 }