diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-12-04 20:50:58 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-12-04 20:50:58 +0100 |
| commit | 9e1efb1d577ac8037df3f4d1ebb029a9ea589c26 (patch) | |
| tree | 332f4db07c9658d340c98abe28f6ada522bd9b3c | |
| parent | 5125389566305127d505ed78782fd4f9929a128c (diff) | |
save commit
| -rw-r--r-- | data/chess.blend | bin | 9299940 -> 9295452 bytes | |||
| -rw-r--r-- | src/VkChess.cs | 28 | ||||
| -rw-r--r-- | ui/chess.crow | 4 | ||||
| -rw-r--r-- | ui/chess.style | 10 | ||||
| -rw-r--r-- | ui/debug.crow | 2 | ||||
| -rw-r--r-- | vkChess.net.csproj | 24 |
6 files changed, 21 insertions, 47 deletions
diff --git a/data/chess.blend b/data/chess.blend Binary files differindex 7238e77..0b46f0e 100644 --- a/data/chess.blend +++ b/data/chess.blend diff --git a/src/VkChess.cs b/src/VkChess.cs index 604a628..088c418 100644 --- a/src/VkChess.cs +++ b/src/VkChess.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020-2021 Jean-Philippe Bruyère <jp_bruyere@hotmail.com> +// +// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) + +using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; @@ -9,8 +13,6 @@ using vke; using vke.glTF; using Glfw; using Vulkan; -using System.Reflection; -using System.Net; using System.Runtime.InteropServices; using Window = Crow.Window; using System.Text; @@ -23,26 +25,6 @@ namespace vkChess public enum PieceType { Pawn, Rook, Knight, Bishop, King, Queen }; public class VkChess : CrowWindow { -#if NETCOREAPP - static IntPtr resolveUnmanaged (Assembly assembly, String libraryName) { - - switch (libraryName) - { - case "cairo": - return System.Runtime.InteropServices.NativeLibrary.Load("cairo-2", assembly, null); - case "glfw3": - return System.Runtime.InteropServices.NativeLibrary.Load("glfw", assembly, null); - case "rsvg-2.40": - return System.Runtime.InteropServices.NativeLibrary.Load("rsvg-2", assembly, null); - } - Console.WriteLine ($"[UNRESOLVE] {assembly} {libraryName}"); - return IntPtr.Zero; - } - - static VkChess () { - System.Runtime.Loader.AssemblyLoadContext.Default.ResolvingUnmanagedDll+=resolveUnmanaged; - } -#endif VkChess(){} static void Main (string [] args) { //Instance.VALIDATION = true; diff --git a/ui/chess.crow b/ui/chess.crow index 5616f45..719ee5d 100644 --- a/ui/chess.crow +++ b/ui/chess.crow @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="UTF-8"?> <HorizontalStack Height="Fit" Background="${MenusBackground}" VerticalAlignment="Bottom" Margin="4"> <Menu Data="{Commands}" Height="Stretched" Width="Fit"> <Template> @@ -13,7 +13,7 @@ </ItemTemplate> </Menu> <Label Text="Restart required..." Font="droid bold, 14" Visible="{RestartRequired}" Margin="3" - Background="#100101" Foreground="White" /> + Background="DarkRed" Foreground="White" /> <Widget Width="Stretched"/> <VerticalStack Style="hsStatus" Width="160"> diff --git a/ui/chess.style b/ui/chess.style index 3198ae7..8a31b9c 100644 --- a/ui/chess.style +++ b/ui/chess.style @@ -1,11 +1,11 @@ //ControlHighlight = "0.2,0.3,0.8,0.9"; -ControlHighlight = "MidnightBlue"; +ControlHighlight = "RoyalBlue"; ControlForeground = "Grey"; LogFont = "consolas, 10"; -WindowBackground = "0.01,0.01,0.02,0.8"; -WindowTitleBarBackground = "0.01,0.1,0.4,0.8"; -ContainerBackground = "0.2,0.2,0.21,0.9"; -StateCtrlInactiveBackground = "0.02,0.02,0.02,0.9"; +WindowBackground = "0.1,0.1,0.2,0.7"; +WindowTitleBarBackground = "0.1,0.2,0.4,0.8"; +ContainerBackground = "0.3,0.3,0.4,0.9"; +StateCtrlInactiveBackground = "0.2,0.2,0.2,0.9"; StateCtrlInactiveForeground = "White"; StateCtrlHighlightForeground = "Black"; StatusElementBackground = "#040404"; diff --git a/ui/debug.crow b/ui/debug.crow index bc2aaa4..e1d34e5 100644 --- a/ui/debug.crow +++ b/ui/debug.crow @@ -16,7 +16,7 @@ <HorizontalStack Height="Fit"> <Label Text="Fps:" Width="80"/> <Label Text="{fps}" Width="Stretched" TextAlignment="Center"/> - </HorizontalStack> + </HorizontalStack> <EnumSelector Margin="20" EnumValue="{²CurrentDebugView}" /> </VerticalStack> </Expandable> diff --git a/vkChess.net.csproj b/vkChess.net.csproj index 131c5e8..697e621 100644 --- a/vkChess.net.csproj +++ b/vkChess.net.csproj @@ -2,8 +2,11 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <!--<TargetFrameworks>netcoreapp3.1</TargetFrameworks>--> <TargetFramework>netcoreapp3.1</TargetFramework> + <AssemblyVersion>0.2.0</AssemblyVersion> + <License>MIT</License> + <Authors>Jean-Philippe Bruyère</Authors> + <Description>Vulkan Stockfish client</Description> <EnableDefaultNoneItems>false</EnableDefaultNoneItems> <EnableDefaultCompileItems>false</EnableDefaultCompileItems> @@ -28,18 +31,13 @@ <Compile Include="src\**\*.cs" /> </ItemGroup> - <ItemGroup> - <!--<PackageReference Include="Crow" Version="0.9.7-beta" />--> - - <PackageReference Include="VkCrowWindow" Version="0.3.6-beta" /> - <PackageReference Include="vke" Version="0.2.1-beta" /> - <PackageReference Include="SpirVTasks" Version="0.1.44" /> - <PackageReference Include="vke.EnvironmentPipeline" Version="0.2.1-beta" /> - <PackageReference Include="vke.gltfLoader" Version="0.2.1-beta" /> + <PackageReference Include="VkCrowWindow" Version="0.3.8" /> + <PackageReference Include="SpirVTasks" Version="0.1.45" /> + <PackageReference Include="vke.EnvironmentPipeline" Version="0.2.2-beta" /> + <PackageReference Include="vke.gltfLoader" Version="0.2.2-beta" /> </ItemGroup> - <PropertyGroup> <TestProperty>notset</TestProperty> </PropertyGroup> @@ -48,11 +46,5 @@ <CreateProperty Value="$(TargetPath)"> <Output TaskParameter="Value" PropertyName="TestProperty"/> </CreateProperty> - - <!--<ItemGroup> - <TestItemGroup> - <TestProperty>this is a test string</TestProperty> - </TestItemGroup> - </ItemGroup>--> </Target> </Project> |