From abd267408f318cb7126378f44db1b482558c8a1b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 8 Jul 2020 14:43:54 +0200 Subject: [PATCH] removed management ui again --- Ideas.md | 3 +- .../Content/Localization/Localization.json | 2 -- TouchyTickets/Ui.cs | 28 +------------------ 3 files changed, 2 insertions(+), 31 deletions(-) diff --git a/Ideas.md b/Ideas.md index ad63526..223604e 100644 --- a/Ideas.md +++ b/Ideas.md @@ -20,8 +20,7 @@ - Upgrade that increases the amount of modifiers on each ride - Advanced version that adds modifiers to each ride automatically, regardless of whether they already contain them -# Park management -- ~~Shows statistics on how much each ride type generates in the park~~ +# Gameplay options - Edit park templates - Set the minimum amount of tickets required for auto-buyers of any kind to take effect - Set the amount of time between auto-buy attempts \ No newline at end of file diff --git a/TouchyTickets/Content/Localization/Localization.json b/TouchyTickets/Content/Localization/Localization.json index 4512712..347ceb1 100644 --- a/TouchyTickets/Content/Localization/Localization.json +++ b/TouchyTickets/Content/Localization/Localization.json @@ -20,10 +20,8 @@ "KeepScreenOn": "Keep Screen On", "RateInfo": "You've been playing the game for a while now, which probably means you're enjoying it.\nPlease rate the game, it really helps out! Thanks <3", "Rate": "Rate", - "ParkManagement": "Park Management", "Attractions": "Attractions", "Modifiers": "Modifiers", - "RideStats": "Sales per Ride", "----- Tutorial -----": "", "Tutorial1": "Hi! Welcome to Touchy Tickets. To start the game, simply tap the ticket booth to sell a . Start by racking up 50!", "Tutorial2": "Great! Now, you can buy your first attraction. Access the menu on the right by swiping and purchase a carousel.", diff --git a/TouchyTickets/Ui.cs b/TouchyTickets/Ui.cs index 5203552..1f7680e 100644 --- a/TouchyTickets/Ui.cs +++ b/TouchyTickets/Ui.cs @@ -410,33 +410,7 @@ namespace TouchyTickets { }); this.uiSystem.Add("Options", optionsUi); - var managementUi = new Group(Anchor.TopLeft, Vector2.One, false) { - IsHidden = true, - OnDrawn = (e, time, batch, alpha) => batch.Draw(batch.GetBlankTexture(), e.DisplayArea, ColorExtensions.FromHex(0xff86bccf) * alpha) - }; - managementUi.AddChild(new Paragraph(Anchor.AutoCenter, 1, Localization.Get("ParkManagement"), true) {TextScale = 0.15F}); - var managementList = managementUi.AddChild(new Panel(Anchor.AutoLeft, new Vector2(1), Vector2.Zero, false, true, new Point(10, 30), false) { - ChildPadding = new Padding(5, 15, 5, 5), - PreventParentSpill = true - }); - managementList.AddChild(new Paragraph(Anchor.AutoCenter, 1, Localization.Get("RideStats"), true) { - PositionOffset = new Vector2(0, 4), - TextScale = 0.12F - }); - foreach (var type in AttractionType.Attractions.Values) { - var group = managementList.AddChild(new Group(Anchor.AutoCenter, new Vector2(1)) { - OnUpdated = (e, time) => e.IsHidden = !GameImpl.Instance.Map.TicketsPerRide.ContainsKey(type), - PositionOffset = new Vector2(0, 1) - }); - group.AddChild(new Image(Anchor.AutoLeft, new Vector2(20), Assets.AttractionTexture[type.TextureRegion])); - group.AddChild(new Paragraph(Anchor.CenterLeft, 1, p => { - GameImpl.Instance.Map.TicketsPerRide.TryGetValue(type, out var tickets); - return tickets.ToString("#,0.##") + "/s"; - }, true) {PositionOffset = new Vector2(24, 0)}); - } - this.uiSystem.Add("Management", managementUi); - - this.swipeRelations = new Element[] {optionsUi, upgradeUi, managementUi, main, buyUi, modifierUi}; + this.swipeRelations = new Element[] {optionsUi, upgradeUi, main, buyUi, modifierUi}; var swipeTimer = 0D; var swipeInfo = new Group(Anchor.BottomCenter, Vector2.One) {