diff --git a/AideDeJeu.sln b/AideDeJeu.sln index 9efb6edc..a5ddc534 100644 --- a/AideDeJeu.sln +++ b/AideDeJeu.sln @@ -21,11 +21,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AideDeJeuCmd", "AideDeJeu\A {C0597D88-5C09-4314-80A3-64712B02D0E9} = {C0597D88-5C09-4314-80A3-64712B02D0E9} EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AideDeJeuUnitTest", "AideDeJeu\AideDeJeuUnitTest\AideDeJeuUnitTest.csproj", "{443C655C-FDE9-48C9-95E4-630DD368ABDB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AideDeJeuUnitTest", "AideDeJeu\AideDeJeuUnitTest\AideDeJeuUnitTest.csproj", "{443C655C-FDE9-48C9-95E4-630DD368ABDB}" ProjectSection(ProjectDependencies) = postProject {C0597D88-5C09-4314-80A3-64712B02D0E9} = {C0597D88-5C09-4314-80A3-64712B02D0E9} EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AideDeJeu.GTK", "AideDeJeu\AideDeJeu.GTK\AideDeJeu.GTK.csproj", "{F3173507-0CED-44BB-92D2-9DB7832FF011}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Ad-Hoc|Any CPU = Ad-Hoc|Any CPU @@ -410,6 +412,54 @@ Global {443C655C-FDE9-48C9-95E4-630DD368ABDB}.Release|x64.Build.0 = Release|Any CPU {443C655C-FDE9-48C9-95E4-630DD368ABDB}.Release|x86.ActiveCfg = Release|Any CPU {443C655C-FDE9-48C9-95E4-630DD368ABDB}.Release|x86.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|ARM.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|x64.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Ad-Hoc|x86.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|Any CPU.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|Any CPU.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|ARM.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|ARM.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|iPhone.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|iPhone.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|x64.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|x64.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|x86.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.AppStore|x86.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|ARM.ActiveCfg = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|ARM.Build.0 = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|iPhone.Build.0 = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|x64.ActiveCfg = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|x64.Build.0 = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|x86.ActiveCfg = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Debug|x86.Build.0 = Debug|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|Any CPU.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|ARM.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|ARM.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|iPhone.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|iPhone.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|iPhoneSimulator.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|x64.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|x64.Build.0 = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|x86.ActiveCfg = Release|Any CPU + {F3173507-0CED-44BB-92D2-9DB7832FF011}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/AideDeJeu/AideDeJeu.Android/AideDeJeu.Android.csproj b/AideDeJeu/AideDeJeu.Android/AideDeJeu.Android.csproj index 7201f757..58462d3e 100644 --- a/AideDeJeu/AideDeJeu.Android/AideDeJeu.Android.csproj +++ b/AideDeJeu/AideDeJeu.Android/AideDeJeu.Android.csproj @@ -68,7 +68,7 @@ 1.60.3 - 3.2.0.839982 + 3.2.0.871581 diff --git a/AideDeJeu/AideDeJeu.GTK/AideDeJeu.GTK.csproj b/AideDeJeu/AideDeJeu.GTK/AideDeJeu.GTK.csproj new file mode 100644 index 00000000..f293cbbf --- /dev/null +++ b/AideDeJeu/AideDeJeu.GTK/AideDeJeu.GTK.csproj @@ -0,0 +1,170 @@ + + + + + + Debug + AnyCPU + {F3173507-0CED-44BB-92D2-9DB7832FF011} + WinExe + Properties + AideDeJeu.GTK + AideDeJeu.GTK + v4.7.1 + 512 + true + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + False + ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\atk-sharp.dll + + + False + ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\gdk-sharp.dll + + + False + ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\glade-sharp.dll + + + False + ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\glib-sharp.dll + + + False + ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\gtk-dotnet.dll + + + False + ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\gtk-sharp.dll + + + ..\..\packages\Markdig.0.15.3\lib\net40\Markdig.dll + + + ..\..\packages\Xamarin.Forms.Platform.GTK.3.2.0.871581\lib\net45\OpenTK.dll + + + False + ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\pango-sharp.dll + + + + + + + + + + + ..\..\packages\Xamarin.Forms.Platform.GTK.3.2.0.871581\lib\net45\webkit-sharp.dll + + + ..\..\packages\Xamarin.Forms.3.2.0.871581\lib\netstandard2.0\Xamarin.Forms.Core.dll + + + ..\..\packages\Xamarin.Forms.3.2.0.871581\lib\netstandard2.0\Xamarin.Forms.Platform.dll + + + ..\..\packages\Xamarin.Forms.Platform.GTK.3.2.0.871581\lib\net45\Xamarin.Forms.Platform.GTK.dll + + + ..\..\packages\Xamarin.Forms.3.2.0.871581\lib\netstandard2.0\Xamarin.Forms.Xaml.dll + + + + + + + + + + + + + + + {c0597d88-5c09-4314-80a3-64712b02d0e9} + AideDeJeu + + + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + + + + Ce projet fait référence à des packages NuGet qui sont manquants sur cet ordinateur. Utilisez l'option de restauration des packages NuGet pour les télécharger. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkID=322105. Le fichier manquant est : {0}. + + + + + + \ No newline at end of file diff --git a/AideDeJeu/AideDeJeu.GTK/NativeAPI.cs b/AideDeJeu/AideDeJeu.GTK/NativeAPI.cs new file mode 100644 index 00000000..f62e397e --- /dev/null +++ b/AideDeJeu/AideDeJeu.GTK/NativeAPI.cs @@ -0,0 +1,63 @@ +using AideDeJeu.Tools; +using System; +using System.IO; + +[assembly: Xamarin.Forms.Dependency(typeof(AideDeJeu.GTK.Version_GTK))] +namespace AideDeJeu.GTK +{ + public class Version_GTK : INativeAPI + { + public string GetVersion() + { + return ""; + //var context = global::Android.App.Application.Context; + + //PackageManager manager = context.PackageManager; + //PackageInfo info = manager.GetPackageInfo(context.PackageName, 0); + + //return info.VersionName; + } + + public int GetBuild() + { + return 0; + //var context = global::Android.App.Application.Context; + //PackageManager manager = context.PackageManager; + //PackageInfo info = manager.GetPackageInfo(context.PackageName, 0); + + //return info.VersionCode; + } + + public string GetDatabasePath(string databaseName) + { + return null; + //var documentsDirectoryPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); + //var path = Path.Combine(documentsDirectoryPath, databaseName); + + //// This is where we copy in our pre-created database + //if (!File.Exists(path)) + //{ + // using (var inStream = Android.App.Application.Context.Assets.Open(databaseName)) + // { + // using (var outStream = new FileStream(path, FileMode.Create)) + // { + // inStream.CopyTo(outStream); + // } + // } + // //using (var binaryReader = new BinaryReader(Android.App.Application.Context.Assets.Open(databaseName))) + // //{ + // // using (var binaryWriter = new BinaryWriter(new FileStream(path, FileMode.Create))) + // // { + // // byte[] buffer = new byte[2048]; + // // int length = 0; + // // while ((length = binaryReader.Read(buffer, 0, buffer.Length)) > 0) + // // { + // // binaryWriter.Write(buffer, 0, length); + // // } + // // } + // //} + //} + //return path; + } + } +} \ No newline at end of file diff --git a/AideDeJeu/AideDeJeu.GTK/OpenTK.dll.config b/AideDeJeu/AideDeJeu.GTK/OpenTK.dll.config new file mode 100644 index 00000000..7098d39e --- /dev/null +++ b/AideDeJeu/AideDeJeu.GTK/OpenTK.dll.config @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AideDeJeu/AideDeJeu.GTK/Program.cs b/AideDeJeu/AideDeJeu.GTK/Program.cs new file mode 100644 index 00000000..43dc0cbb --- /dev/null +++ b/AideDeJeu/AideDeJeu.GTK/Program.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xamarin.Forms; +using Xamarin.Forms.Platform.GTK; + +namespace AideDeJeu.GTK +{ + class MainClass + { + [STAThread] + public static void Main(string[] args) + { + Gtk.Application.Init(); + Forms.Init(); + + var app = new App(); + var window = new FormsWindow(); + window.LoadApplication(app); + window.SetApplicationTitle("Haches & Dés"); + window.Show(); + + Gtk.Application.Run(); + } + } +} diff --git a/AideDeJeu/AideDeJeu.GTK/Properties/AssemblyInfo.cs b/AideDeJeu/AideDeJeu.GTK/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..4506730d --- /dev/null +++ b/AideDeJeu/AideDeJeu.GTK/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Les informations générales relatives à un assembly dépendent de +// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations +// associées à un assembly. +[assembly: AssemblyTitle("AideDeJeu.GTK")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("AideDeJeu.GTK")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly +// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de +// COM, affectez la valeur true à l'attribut ComVisible sur ce type. +[assembly: ComVisible(false)] + +// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM +[assembly: Guid("f3173507-0ced-44bb-92d2-9db7832ff011")] + +// Les informations de version pour un assembly se composent des quatre valeurs suivantes : +// +// Version principale +// Version secondaire +// Numéro de build +// Révision +// +// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut +// en utilisant '*', comme indiqué ci-dessous : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AideDeJeu/AideDeJeu.GTK/battle_axe.png b/AideDeJeu/AideDeJeu.GTK/battle_axe.png new file mode 100644 index 00000000..22fa87eb Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/battle_axe.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/crystal_ball.png b/AideDeJeu/AideDeJeu.GTK/crystal_ball.png new file mode 100644 index 00000000..7699230e Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/crystal_ball.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/dragon_head.png b/AideDeJeu/AideDeJeu.GTK/dragon_head.png new file mode 100644 index 00000000..771180fd Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/dragon_head.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/funnel.png b/AideDeJeu/AideDeJeu.GTK/funnel.png new file mode 100644 index 00000000..bbf710a6 Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/funnel.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/ic_launcher.png b/AideDeJeu/AideDeJeu.GTK/ic_launcher.png new file mode 100644 index 00000000..4b40bb1a Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/ic_launcher.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/icon.png b/AideDeJeu/AideDeJeu.GTK/icon.png new file mode 100644 index 00000000..0bef109d Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/icon.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/packages.config b/AideDeJeu/AideDeJeu.GTK/packages.config new file mode 100644 index 00000000..e67e2ef3 --- /dev/null +++ b/AideDeJeu/AideDeJeu.GTK/packages.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AideDeJeu/AideDeJeu.GTK/plain_arrow_down.png b/AideDeJeu/AideDeJeu.GTK/plain_arrow_down.png new file mode 100644 index 00000000..8743fcf0 Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/plain_arrow_down.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/plain_arrow_up.png b/AideDeJeu/AideDeJeu.GTK/plain_arrow_up.png new file mode 100644 index 00000000..2c8a6e17 Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/plain_arrow_up.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/round_star.png b/AideDeJeu/AideDeJeu.GTK/round_star.png new file mode 100644 index 00000000..5b6982a2 Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/round_star.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/settings_knobs.png b/AideDeJeu/AideDeJeu.GTK/settings_knobs.png new file mode 100644 index 00000000..19140438 Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/settings_knobs.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/spell_book.png b/AideDeJeu/AideDeJeu.GTK/spell_book.png new file mode 100644 index 00000000..ece51feb Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/spell_book.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/stars_stack.png b/AideDeJeu/AideDeJeu.GTK/stars_stack.png new file mode 100644 index 00000000..6495e41f Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/stars_stack.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/trash_can.png b/AideDeJeu/AideDeJeu.GTK/trash_can.png new file mode 100644 index 00000000..ad3d836e Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/trash_can.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/webkit-sharp.dll.config b/AideDeJeu/AideDeJeu.GTK/webkit-sharp.dll.config new file mode 100644 index 00000000..a901fab8 --- /dev/null +++ b/AideDeJeu/AideDeJeu.GTK/webkit-sharp.dll.config @@ -0,0 +1,3 @@ + + + diff --git a/AideDeJeu/AideDeJeu.GTK/wooden_sign.png b/AideDeJeu/AideDeJeu.GTK/wooden_sign.png new file mode 100644 index 00000000..8f075d06 Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/wooden_sign.png differ diff --git a/AideDeJeu/AideDeJeu.GTK/xamarin_logo.png b/AideDeJeu/AideDeJeu.GTK/xamarin_logo.png new file mode 100644 index 00000000..b36d00ed Binary files /dev/null and b/AideDeJeu/AideDeJeu.GTK/xamarin_logo.png differ diff --git a/AideDeJeu/AideDeJeu.UWP/AideDeJeu.UWP.csproj b/AideDeJeu/AideDeJeu.UWP/AideDeJeu.UWP.csproj index 5b900df0..3fe1e357 100644 --- a/AideDeJeu/AideDeJeu.UWP/AideDeJeu.UWP.csproj +++ b/AideDeJeu/AideDeJeu.UWP/AideDeJeu.UWP.csproj @@ -200,7 +200,7 @@ - 3.2.0.839982 + 3.2.0.871581 diff --git a/AideDeJeu/AideDeJeu.iOS/AideDeJeu.iOS.csproj b/AideDeJeu/AideDeJeu.iOS/AideDeJeu.iOS.csproj index e5b278c9..451612dc 100644 --- a/AideDeJeu/AideDeJeu.iOS/AideDeJeu.iOS.csproj +++ b/AideDeJeu/AideDeJeu.iOS/AideDeJeu.iOS.csproj @@ -121,7 +121,7 @@ 1.60.3 - 3.2.0.839982 + 3.2.0.871581 diff --git a/AideDeJeu/AideDeJeu/AideDeJeu.csproj b/AideDeJeu/AideDeJeu/AideDeJeu.csproj index df58bbc5..bfa56335 100644 --- a/AideDeJeu/AideDeJeu/AideDeJeu.csproj +++ b/AideDeJeu/AideDeJeu/AideDeJeu.csproj @@ -28,11 +28,11 @@ - + - +