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(); } }
private void InitializerIndicatorShip() { ShipLocationIndicator.SetImage("fund_ship.png"); ShipLocationIndicator.SetInitialScallingAndPosition(Constants.SHIP_INDICATOR_SCALE, Constants.SHIP_INDICATOR_POSITION); DistanceShipLocation.SetTextAndPosition(text: DistanceWithShip.ToString(), position: Constants.SHIP_INDICATOR_TEXT_POSITION); }