Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumzhao committed Aug 24, 2020
1 parent fe82f3f commit 16d200d
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 24 deletions.
6 changes: 1 addition & 5 deletions GUESS/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@
<Style Selector="Border[Tag=MainSection]">
<Setter Property="BoxShadow" Value="0 5 30 0 #33000000"/>
</Style>
<Style Selector="TextBlock.Comment">
<Setter Property="FontFamily" Value="Segoe UI"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="Foreground" Value="#ff000000"/>
</Style>
<Style Selector="ripple|RippleEffect">
<Setter Property="RippleFill" Value="#fff0f0f0"/>
<Setter Property="RippleOpacity" Value="0.25"/>
Expand All @@ -82,5 +77,6 @@
</Application.Styles>

<Application.Resources>
<FontFamily x:Key="PierSans">resm:GUESS.Assets.Fonts.PIER-REGULAR.OTF</FontFamily>
</Application.Resources>
</Application>
File renamed without changes.
File renamed without changes.
Binary file removed GUESS/Assets/GUESS_Design.png
Binary file not shown.
Binary file added GUESS/Assets/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed GUESS/Fonts/PIER-BOLD-ITALIC.OTF
Binary file not shown.
Binary file removed GUESS/Fonts/PIER-ITALIC.OTF
Binary file not shown.
18 changes: 10 additions & 8 deletions GUESS/GUESS.csproj
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>

</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
<AvaloniaResource Include="Assets\Fonts\*" />
</ItemGroup>
<ItemGroup>
<None Remove="Assets\ball.png" />
<None Remove="Assets\header.png" />
<None Remove="Assets\highlight.png" />
<None Remove="Assets\info_bar.png" />
<None Remove="Assets\peg.png" />
<None Remove="Assets\submit.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.0-preview3" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-preview3" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.9.12" />
<PackageReference Include="Dotnet.Bundle" Version="*" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.0-preview3" />
<PackageReference Include="Dotnet.Bundle" Version="0.9.13" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Ripple\Ripple.csproj" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Assets\Fonts\PIER-BOLD.OTF" />
<EmbeddedResource Include="Assets\Fonts\PIER-REGULAR.OTF" />
</ItemGroup>
<PropertyGroup>
<CFBundleName>Guess</CFBundleName>
<!-- Also defines .app file name -->
<CFBundleExecutable>GUESS</CFBundleExecutable>
<CFBundleDisplayName>Guess</CFBundleDisplayName>
<CFBundleIdentifier>com.example</CFBundleIdentifier>
<CFBundleIdentifier>com.guess</CFBundleIdentifier>
<CFBundleVersion>1.0.0</CFBundleVersion>
<CFBundlePackageType>AAPL</CFBundlePackageType>
<!-- Will be copied from output directory -->
<NSPrincipalClass>NSApplication</NSPrincipalClass>
<NSHighResolutionCapable>true</NSHighResolutionCapable>
<CFBundleShortVersionString>1.0.0</CFBundleShortVersionString>
Expand Down
12 changes: 6 additions & 6 deletions GUESS/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
Icon="/Assets/avalonia-logo.ico"
Title="GUESS"
SizeToContent="WidthAndHeight"
WindowStartupLocation="CenterScreen"
ExtendClientAreaToDecorationsHint="True"
ExtendClientAreaChromeHints="NoChrome"
ExtendClientAreaTitleBarHeightHint="40"
ExtendClientAreaToDecorationsHint="True">
WindowStartupLocation="CenterScreen">

<Design.DataContext>
<vm:MainWindowViewModel/>
Expand Down Expand Up @@ -48,8 +48,8 @@
<Grid>
<TextBlock
FontFamily="Pier Sans"
FontSize="40"
FontWeight="Bold"
FontSize="40"
Margin="32 32 0 0"
DockPanel.Dock="Top"
HorizontalAlignment="Left"
Expand Down Expand Up @@ -166,15 +166,15 @@
</Border>
</ripple:RippleEffect>
<TextBlock
FontFamily="Pier Sans"
FontWeight="Regular"
Text="{Binding TrialsRemainingCount}"
DockPanel.Dock="Right"
TextAlignment="Right"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Margin="0 20 21 0"
FontFamily="Pier Sans"
FontSize="25"
FontWeight="Regular"
Foreground="{Binding TrialsRemainingCount, Converter={x:Static
converters:RemainingTrialsToBrushConverter.Singleton}}">
</TextBlock>
Expand All @@ -186,8 +186,8 @@
HorizontalAlignment="Right"
VerticalAlignment="Center"
FontFamily="Pier Sans"
FontSize="25"
FontWeight="Regular"
FontSize="25"
Foreground="#353535">
</TextBlock>
<ripple:RippleEffect
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

It is a reproduction of the simple game *Guess*, being developed using Avalonia UI. Which also means it's cross-platform.

## Artistic Illustration

![GUESS_Design](GUESS_Design.png)

> Note this is only a concept, which might differ from the final outcome
## ## Screenshot<img src="GUESS/Assets/screenshot.jpg" alt="screenshot" style="zoom:50%;" />

## Game Rules

Expand Down

0 comments on commit 16d200d

Please sign in to comment.