removed management ui again

This commit is contained in:
Ellpeck 2020-07-08 14:43:54 +02:00
parent d34fac03bc
commit abd267408f
3 changed files with 2 additions and 31 deletions

View file

@ -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

View file

@ -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 <c Yellow>rate</c> 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 <i ticket>. Start by racking up 50<i ticket>!",
"Tutorial2": "Great! Now, you can buy your first attraction. Access the menu on the right by swiping and purchase a carousel.",

View file

@ -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.##") + "<i ticket>/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) {