public void Render() { Life.Render(); Oxygen.Render(); LifeText.SetTextAndPosition(text: " Life " + Status.ShowLife + @" / " + Status.GetLifeMax(), position: Constants.LIFE_CHARACTER_TEXT_POSITION); OxygenText.SetTextAndPosition(text: " O₂ " + Status.ShowOxygen + @" / " + Status.GetOxygenMax(), position: Constants.OXYGEN_CHARACTER_TEXT_POSITION); LifeText.Render(); OxygenText.Render(); }
public void Render() { LifeShark.Render(); LifeSharkText.Render(); }
public void Render() { if (ShowHelp) { InstructionText.Render(); } else { HelpText.Render(); } if (!ActiveInventory) { if (ShowSharkLife) { Shark.Render(); } Character.Render(); Pointer.Render(); if (ShowInfoExitShip) { ShipText.Text = Constants.SHIP_EXIT_TEXT; ShipText.Render(); } if (ShowInfoEnterShip) { ShipText.Text = Constants.SHIP_ENTER_TEXT; ShipText.Render(); } if (NearObjectForSelect) { CollectText.Render(); } if (ShowInfoItemCollect) { var index = 0; ItemHistory.ForEach(item => { index++; ItemsHistoryText.Text = "COLLECTED " + item + " + 1"; ItemsHistoryText.Position = new TGCVector2(Constants.COLLECT_TEXT_POSITION.X, Constants.COLLECT_TEXT_POSITION.Y + index * 20); ItemsHistoryText.Render(); }); } if (ShowIndicatorShip) { ShipLocationIndicator.Render(); DistanceShipLocation.Text = DistanceWithShip.ToString(); DistanceShipLocation.Render(); } } else { if (CanCraft) { Crafting.Render(); } else { Inventory.Render(); if (ActiveWeapon) { Crafting.RenderItemWeapon(); } } RenderMousePointer(); } }