Skip to content

Commit

Permalink
Bare minimum in terms of presentation 🎊
Browse files Browse the repository at this point in the history
  • Loading branch information
Difegue committed Apr 13, 2022
1 parent 4aa3fd4 commit a8ac54e
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 2 deletions.
2 changes: 2 additions & 0 deletions LCDonald/LCDonald.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<!--Avalonia doesen't support TrimMode=link currently,but we are working on that https://github.com/AvaloniaUI/Avalonia/issues/6892 -->
<TrimMode>copyused</TrimMode>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<PublishTrimmed>true</PublishTrimmed>
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
Expand Down
8 changes: 7 additions & 1 deletion LCDonald/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Icon="/Assets/avalonia-logo.ico"
Width="1588"
Height="1080"
Title="LCDonald">
Title="McD's Sonic Simulator 0.1 Alpha">

<Design.DataContext>
<vm:MainWindowViewModel/>
Expand Down Expand Up @@ -161,6 +161,12 @@
</Grid>
</ui:NavigationView.Content>

<ui:NavigationView.PaneFooter>
<StackPanel Name="FooterStackPanel" Orientation="Vertical" IsVisible="True">
<ui:NavigationViewItem Icon="More" Content="About..." PointerPressed="Open_About"/>
</StackPanel>
</ui:NavigationView.PaneFooter>

</ui:NavigationView>

</Window>
26 changes: 25 additions & 1 deletion LCDonald/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
using Avalonia.Controls;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using Avalonia;
using Avalonia.Input;
using FluentAvalonia.UI.Controls;
using System.Diagnostics;

namespace LCDonald.Views
{
Expand All @@ -18,7 +21,28 @@ private void InitializeComponent()
#if DEBUG
this.AttachDevTools();
#endif
}

private async void Open_About(object sender, PointerPressedEventArgs e)
{
// TODO slappy implementation, should go in settings later
var dialog = new ContentDialog()
{
Title = "About McD's Sonic Simulator",
Content = "A monument to the everlasting symbiotic relationship between Sonic the Hedgehog and ultracapitalist fast food joints. 🏛\n\nPowered by Avalonia and the LCDonald engine. \nFeel free to contribute to the project on GitHub!",
PrimaryButtonText = "Ok",
SecondaryButtonText = "View Source Code"
};

var result = await dialog.ShowAsync();

// Open URL if secondary
if (result == ContentDialogResult.Secondary)
{
ProcessStartInfo psi = new ProcessStartInfo("https://github.com/Difegue/LCDonald");
psi.UseShellExecute = true;
Process.Start(psi);
}
}
}
}
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<img src="cover.png" width="196">

LCDonald
===========

Simulator engine for reproducing LCD games made by McDonald's in the 2000's.
Mostly focused on simulating the [McDonald's Sonic LCD games](http://info.sonicretro.org/McDonald%27s_Sonic_LCD_games).

You can read more details about the technical stack [here](https://tvc-16.science/lcdonald.html).

Feel free to look at the [issues](https://github.com/Difegue/LCDonald/issues) if you want to help on a game!

## Features

* SVG-based rendering for LCD elements
* Uses the well-known [MAMELayout](https://docs.mamedev.org/techspecs/layout_files.html) format for screen positioning
* [AvaloniaUI](http://avaloniaui.net/)-based frontend, runs on Windows/Mac/Linux -- Backend is pure .NET and can run on (mostly)anything!

All scanned/photographied materials in this repository are ©️SEGA, 2004/2005/2006.
Binary file added cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a8ac54e

Please sign in to comment.