public override void Render(MyWindow window) { Focus = true; window.Draw(Background); window.Draw(ok); window.Draw(back); window.Draw(Info); NameInput.Draw(); }
public override void Render(MyWindow window) { window.SetView(UserLeftSite); UserInterface.Render(); UserInterface.CheckEvents(); window.SetView(MapRightSite); MyMap.TilesOnWindow(MapRightSite); MyMap.TilesToCheckColision(MapRightSite); MyMap.Render(); CollisionRectangle.Rotation = User.UserShip.shape.Rotation; CollisionRectangle.Position = User.UserShip.shape.Position; if (User != null) { User.UserShip.UpdateView(MapRightSite); window.Draw(User.UserShip); window.Draw(CollisionRectangle); // pink rectangle shape for colision need to hide this after testing } window.SetView(window.DefaultView); window.Draw(settings); WindRose.Update(-1 * MapRightSite.Rotation); window.Draw(WindRose); if (ListOfPopingUpInfo.Count != 0) { if (ListOfPopingUpInfo[0].SendToThread == false) { ListOfPopingUpInfo[0].StartDisplaying();// send methot to thread } window.Draw(ListOfPopingUpInfo[0]); } }