public HudWindow(string title)
 {
     m_Title      = title;
     m_WindowID   = HudPanel.GetNextWindowID();
     m_IsActive   = true;
     m_AutoLayout = true;
 }
 public HudWindow(string title, Rect rect)
 {
     m_Title      = title;
     m_WindowID   = HudPanel.GetNextWindowID();
     m_IsActive   = true;
     m_AutoLayout = false;
     m_WindowRect = rect;
 }
 public void DrawWindow(HudPanel hud)
 {
     if (m_IsActive && m_GuiDrawer != null)
     {
         if (m_AutoLayout)
         {
             m_WindowRect = hud.GetFreeWindowRect();
             m_AutoLayout = false;
         }
         GUI.Window(m_WindowID, m_WindowRect, DrawWindowContents, m_Title);
     }
 }