diff --git a/TouchyTickets/Assets.cs b/TouchyTickets/Assets.cs index b175e3e..db0db28 100644 --- a/TouchyTickets/Assets.cs +++ b/TouchyTickets/Assets.cs @@ -5,13 +5,14 @@ using MLEM.Font; using MLEM.Startup; using MLEM.Textures; -namespace TouchyTickets; +namespace TouchyTickets; public static class Assets { public static UniformTextureAtlas TilesTexture { get; private set; } public static UniformTextureAtlas AttractionTexture { get; private set; } public static UniformTextureAtlas UiTexture { get; private set; } + public static TextureRegion LogoTexture { get; private set; } public static SoundEffect ClickSound { get; private set; } public static SoundEffect PlaceSound { get; private set; } @@ -25,6 +26,7 @@ public static class Assets { Assets.TilesTexture = new UniformTextureAtlas(MlemGame.LoadContent("Textures/Tiles"), 16, 16); Assets.AttractionTexture = new UniformTextureAtlas(MlemGame.LoadContent("Textures/Attractions"), 16, 16); Assets.UiTexture = new UniformTextureAtlas(MlemGame.LoadContent("Textures/Ui"), 16, 16); + Assets.LogoTexture = new TextureRegion(MlemGame.LoadContent("Textures/EllpeckGames")); Assets.ClickSound = MlemGame.LoadContent("Sounds/Click"); Assets.PlaceSound = MlemGame.LoadContent("Sounds/Place"); diff --git a/TouchyTickets/Content/Content.mgcb b/TouchyTickets/Content/Content.mgcb index 572642c..56436c3 100644 --- a/TouchyTickets/Content/Content.mgcb +++ b/TouchyTickets/Content/Content.mgcb @@ -118,3 +118,8 @@ #begin Localization/News.fr.json /copy:Localization/News.fr.json +#begin Textures/EllpeckGames.png +/importer:TextureImporter +/processor:TextureProcessor +/build:Textures/EllpeckGames.png + diff --git a/TouchyTickets/Content/Textures/EllpeckGames.png b/TouchyTickets/Content/Textures/EllpeckGames.png new file mode 100644 index 0000000..09218cc Binary files /dev/null and b/TouchyTickets/Content/Textures/EllpeckGames.png differ diff --git a/TouchyTickets/Content/Textures/Ui.aseprite b/TouchyTickets/Content/Textures/Ui.aseprite index a269a90..e8d56b7 100644 Binary files a/TouchyTickets/Content/Textures/Ui.aseprite and b/TouchyTickets/Content/Textures/Ui.aseprite differ diff --git a/TouchyTickets/Content/Textures/Ui.png b/TouchyTickets/Content/Textures/Ui.png index 4428b2f..7396100 100644 Binary files a/TouchyTickets/Content/Textures/Ui.png and b/TouchyTickets/Content/Textures/Ui.png differ diff --git a/TouchyTickets/Ui.cs b/TouchyTickets/Ui.cs index 3997d5c..f660008 100644 --- a/TouchyTickets/Ui.cs +++ b/TouchyTickets/Ui.cs @@ -528,9 +528,9 @@ public class Ui { OnDrawn = (e, _, batch, alpha) => batch.Draw(batch.GetBlankTexture(), e.DisplayArea, Color.Black * alpha) }; var content = splash.AddChild(new Group(Anchor.TopLeft, Vector2.One, false) {DrawAlpha = 0}); - var center = content.AddChild(new Group(Anchor.Center, new Vector2(0.5F, 0.5F), false)); - center.AddChild(new Image(Anchor.AutoCenter, new Vector2(1, -1), Assets.UiTexture[4, 0])); - center.AddChild(new Paragraph(Anchor.AutoCenter, 10000, Localization.Get("AGameByEllpeck"), true)); + content.AddChild(new Image(Anchor.Center, new Vector2(0.8F, -1), Assets.LogoTexture) { + PositionOffset = new Vector2(0, -30) + }); content.AddChild(new Paragraph(Anchor.BottomCenter, 1, Localization.Get("TranslationBy"), true) { PositionOffset = new Vector2(0, 15), TextScale = 0.08F