Skip to content

Commit a8ac54e

Browse files
committed
Bare minimum in terms of presentation 🎊
1 parent 4aa3fd4 commit a8ac54e

File tree

5 files changed

+53
-2
lines changed

5 files changed

+53
-2
lines changed

LCDonald/LCDonald.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<!--Avalonia doesen't support TrimMode=link currently,but we are working on that https://github.com/AvaloniaUI/Avalonia/issues/6892 -->
77
<TrimMode>copyused</TrimMode>
88
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
9+
<PublishTrimmed>true</PublishTrimmed>
10+
<InvariantGlobalization>true</InvariantGlobalization>
911
</PropertyGroup>
1012
<ItemGroup>
1113
<Folder Include="Models\" />

LCDonald/Views/MainWindow.axaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Icon="/Assets/avalonia-logo.ico"
1212
Width="1588"
1313
Height="1080"
14-
Title="LCDonald">
14+
Title="McD's Sonic Simulator 0.1 Alpha">
1515

1616
<Design.DataContext>
1717
<vm:MainWindowViewModel/>
@@ -161,6 +161,12 @@
161161
</Grid>
162162
</ui:NavigationView.Content>
163163

164+
<ui:NavigationView.PaneFooter>
165+
<StackPanel Name="FooterStackPanel" Orientation="Vertical" IsVisible="True">
166+
<ui:NavigationViewItem Icon="More" Content="About..." PointerPressed="Open_About"/>
167+
</StackPanel>
168+
</ui:NavigationView.PaneFooter>
169+
164170
</ui:NavigationView>
165171

166172
</Window>

LCDonald/Views/MainWindow.axaml.cs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
using Avalonia.Controls;
1+
using Avalonia.Controls;
22
using Avalonia.Markup.Xaml;
33
using Avalonia;
4+
using Avalonia.Input;
5+
using FluentAvalonia.UI.Controls;
6+
using System.Diagnostics;
47

58
namespace LCDonald.Views
69
{
@@ -18,7 +21,28 @@ private void InitializeComponent()
1821
#if DEBUG
1922
this.AttachDevTools();
2023
#endif
24+
}
25+
26+
private async void Open_About(object sender, PointerPressedEventArgs e)
27+
{
28+
// TODO slappy implementation, should go in settings later
29+
var dialog = new ContentDialog()
30+
{
31+
Title = "About McD's Sonic Simulator",
32+
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!",
33+
PrimaryButtonText = "Ok",
34+
SecondaryButtonText = "View Source Code"
35+
};
36+
37+
var result = await dialog.ShowAsync();
2138

39+
// Open URL if secondary
40+
if (result == ContentDialogResult.Secondary)
41+
{
42+
ProcessStartInfo psi = new ProcessStartInfo("https://github.com/Difegue/LCDonald");
43+
psi.UseShellExecute = true;
44+
Process.Start(psi);
45+
}
2246
}
2347
}
2448
}

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<img src="cover.png" width="196">
2+
3+
LCDonald
4+
===========
5+
6+
Simulator engine for reproducing LCD games made by McDonald's in the 2000's.
7+
Mostly focused on simulating the [McDonald's Sonic LCD games](http://info.sonicretro.org/McDonald%27s_Sonic_LCD_games).
8+
9+
You can read more details about the technical stack [here](https://tvc-16.science/lcdonald.html).
10+
11+
Feel free to look at the [issues](https://github.com/Difegue/LCDonald/issues) if you want to help on a game!
12+
13+
## Features
14+
15+
* SVG-based rendering for LCD elements
16+
* Uses the well-known [MAMELayout](https://docs.mamedev.org/techspecs/layout_files.html) format for screen positioning
17+
* [AvaloniaUI](http://avaloniaui.net/)-based frontend, runs on Windows/Mac/Linux -- Backend is pure .NET and can run on (mostly)anything!
18+
19+
All scanned/photographied materials in this repository are ©️SEGA, 2004/2005/2006.

cover.png

125 KB
Loading

0 commit comments

Comments
 (0)