public GUIPluginComponent()
 {
     isComponentVisible = true;
     isVisibleInGame = true;
     windowId = GUIWindowId.Next;
     title = String.Empty;
     sectionMain = new GUISection();
 }
 public void addSection(GUISection section)
 {
     if (this.Direction == FlowDirection.VERTICAL)
     {
         tempFloatValue = this.ControlYPosition;
         while (this.ControlYPosition < tempFloatValue + section.Height) this.currentYIndex++;
         this.Y += this.ControlPadding;
     }
     else if (this.Direction == FlowDirection.HORIZONTAL)
     {
         tempFloatValue = this.ControlXPosition;
         while (this.ControlXPosition < tempFloatValue + section.Width) this.currentXIndex++;
         this.X += this.ControlPadding;
     }
 }