コード例 #1
0
 public HudWindow(string title)
 {
     m_Title      = title;
     m_WindowID   = HudPanel.GetNextWindowID();
     m_IsActive   = true;
     m_AutoLayout = true;
 }
コード例 #2
0
 public HudWindow(string title, Rect rect)
 {
     m_Title      = title;
     m_WindowID   = HudPanel.GetNextWindowID();
     m_IsActive   = true;
     m_AutoLayout = false;
     m_WindowRect = rect;
 }
コード例 #3
0
 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);
     }
 }