public void Draw(Gui.Graphics g, GameTime gt) { g.PushClipRectangle(new Rectangle(0, 0, currentRoom.Size.X, currentRoom.Size.Y)); g.Begin(); g.Draw(DiverGame.White, new Rectangle(0, 0, currentRoom.Size.X, currentRoom.Size.Y), new Color(143, 198, 255)); g.End(); currentRoom.Draw(g, gt); g.PopClipRectangle(); g.PushClipRectangle(new Rectangle(0, currentRoom.Size.Y, 400, 300 - currentRoom.Size.Y)); g.Begin(); g.Draw(panel, new Point(0, 0), Color.White); g.Draw(DiverGame.White, new Rectangle(16, 4, (122 * diver.Oxygen) / Diver.MaxOxygen, 4), new Color(199, 77, 77)); ITool tool1 = currentRoom.Diver.Tool1; ITool tool2 = currentRoom.Diver.Tool2; if(tool1 != null) g.Draw(tool1.Icon, new Point(151, 7), Color.White); if (tool2 != null) g.Draw(tool2.Icon, new Point(183, 7), Color.White); g.End(); g.PopClipRectangle(); if (isMiniMapShowing) { miniMap.Draw(g, currentRoom.SeaX, currentRoom.SeaY); } }