diff --git a/.editorconfig b/.editorconfig index 547bde6fc9..5f8a76c5c5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,7 @@ indent_style = space csharp_new_line_before_members_in_object_initializers = false [*.{proj, csproj, targets}] -indent_size = 2 +indent_size = 4 insert_final_newline = true [App.config] diff --git a/Directory.Build.props b/Directory.Build.props index 859b2e9a97..f53eae0e6c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -20,7 +20,7 @@ true - + true diff --git a/Nitrox.Launcher/.gitignore b/Nitrox.Launcher/.gitignore new file mode 100644 index 0000000000..77d500f11f --- /dev/null +++ b/Nitrox.Launcher/.gitignore @@ -0,0 +1,456 @@ +### File was provided by Avalonia MVVM template + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# Tye +.tye/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +## +## Visual studio for Mac +## + + +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# Mac bundle stuff +*.dmg +*.app + +# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# JetBrains Rider +.idea/ +*.sln.iml + +## +## Visual Studio Code +## +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json diff --git a/Nitrox.Launcher/App.axaml b/Nitrox.Launcher/App.axaml new file mode 100644 index 0000000000..9ef6eae7e2 --- /dev/null +++ b/Nitrox.Launcher/App.axaml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + diff --git a/Nitrox.Launcher/App.axaml.cs b/Nitrox.Launcher/App.axaml.cs new file mode 100644 index 0000000000..e3c39e52e7 --- /dev/null +++ b/Nitrox.Launcher/App.axaml.cs @@ -0,0 +1,26 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; +using Nitrox.Launcher.ViewModels; +using Nitrox.Launcher.Views; + +namespace Nitrox.Launcher +{ + public partial class App : Application + { + public override void Initialize() + { + AvaloniaXamlLoader.Load(this); + } + + public override void OnFrameworkInitializationCompleted() + { + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + { + desktop.MainWindow = new MainWindow { DataContext = new MainWindowViewModel(), }; + } + + base.OnFrameworkInitializationCompleted(); + } + } +} diff --git a/Nitrox.Launcher/Assets/Fonts/Apache License.txt b/Nitrox.Launcher/Assets/Fonts/Apache License.txt new file mode 100644 index 0000000000..989e2c59e9 --- /dev/null +++ b/Nitrox.Launcher/Assets/Fonts/Apache License.txt @@ -0,0 +1,201 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-Black.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-Black.ttf new file mode 100644 index 0000000000..d9739227e8 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-Black.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-BlackItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-BlackItalic.ttf new file mode 100644 index 0000000000..13768cd63e Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-BlackItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-Bold.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-Bold.ttf new file mode 100644 index 0000000000..7e1deec31e Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-Bold.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-BoldItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-BoldItalic.ttf new file mode 100644 index 0000000000..bc7f292199 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-BoldItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-ExtraBold.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-ExtraBold.ttf new file mode 100644 index 0000000000..b18b0118c0 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-ExtraBold.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-ExtraBoldItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-ExtraBoldItalic.ttf new file mode 100644 index 0000000000..12286586df Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-ExtraBoldItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-ExtraLight.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-ExtraLight.ttf new file mode 100644 index 0000000000..f5399e3eec Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-ExtraLight.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-ExtraLightItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-ExtraLightItalic.ttf new file mode 100644 index 0000000000..c694f244b1 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-ExtraLightItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-Italic.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-Italic.ttf new file mode 100644 index 0000000000..e1afbe7edd Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-Italic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-Light.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-Light.ttf new file mode 100644 index 0000000000..ebaa005740 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-Light.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-LightItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-LightItalic.ttf new file mode 100644 index 0000000000..e7ba98429d Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-LightItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-Medium.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-Medium.ttf new file mode 100644 index 0000000000..7e573f6498 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-Medium.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-MediumItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-MediumItalic.ttf new file mode 100644 index 0000000000..54607cb285 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-MediumItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-Regular.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-Regular.ttf new file mode 100644 index 0000000000..012d1b470d Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-Regular.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-SemiBold.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-SemiBold.ttf new file mode 100644 index 0000000000..4be54399d6 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-SemiBold.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-SemiBoldItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-SemiBoldItalic.ttf new file mode 100644 index 0000000000..66fddf1a5a Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-SemiBoldItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-Thin.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-Thin.ttf new file mode 100644 index 0000000000..9b91bc13cf Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-Thin.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Inter-ThinItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Inter-ThinItalic.ttf new file mode 100644 index 0000000000..407bdfa17e Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Inter-ThinItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/InterLICENSE.txt b/Nitrox.Launcher/Assets/Fonts/InterLICENSE.txt new file mode 100644 index 0000000000..ff80f8c615 --- /dev/null +++ b/Nitrox.Launcher/Assets/Fonts/InterLICENSE.txt @@ -0,0 +1,94 @@ +Copyright (c) 2016-2020 The Inter Project Authors. +"Inter" is trademark of Rasmus Andersson. +https://github.com/rsms/inter + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/Nitrox.Launcher/Assets/Fonts/LICENSE.txt b/Nitrox.Launcher/Assets/Fonts/LICENSE.txt new file mode 100644 index 0000000000..d645695673 --- /dev/null +++ b/Nitrox.Launcher/Assets/Fonts/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-Bold.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-Bold.ttf new file mode 100644 index 0000000000..fd79d43bea Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-Bold.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-BoldItalic.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-BoldItalic.ttf new file mode 100644 index 0000000000..9bc800958a Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-BoldItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-ExtraBold.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-ExtraBold.ttf new file mode 100644 index 0000000000..21f6f84a07 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-ExtraBold.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-ExtraBoldItalic.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-ExtraBoldItalic.ttf new file mode 100644 index 0000000000..31cb688340 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-ExtraBoldItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-Italic.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-Italic.ttf new file mode 100644 index 0000000000..c90da48ff3 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-Italic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-Light.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-Light.ttf new file mode 100644 index 0000000000..0d381897da Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-Light.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-LightItalic.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-LightItalic.ttf new file mode 100644 index 0000000000..68299c4bc6 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-LightItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-Regular.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-Regular.ttf new file mode 100644 index 0000000000..db433349b7 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-Regular.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-Semibold.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-Semibold.ttf new file mode 100644 index 0000000000..1a7679e394 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-Semibold.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/OpenSans-SemiboldItalic.ttf b/Nitrox.Launcher/Assets/Fonts/OpenSans-SemiboldItalic.ttf new file mode 100644 index 0000000000..59b6d16b06 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/OpenSans-SemiboldItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-Black.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-Black.ttf new file mode 100644 index 0000000000..51c71bbe2d Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-Black.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-BlackItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-BlackItalic.ttf new file mode 100644 index 0000000000..ca20ca3999 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-BlackItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-Bold.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-Bold.ttf new file mode 100644 index 0000000000..e612852d25 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-Bold.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-BoldItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-BoldItalic.ttf new file mode 100644 index 0000000000..677bc045e5 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-BoldItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-Italic.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-Italic.ttf new file mode 100644 index 0000000000..5fd05c3b64 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-Italic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-Light.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-Light.ttf new file mode 100644 index 0000000000..4f1fb5805f Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-Light.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-LightItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-LightItalic.ttf new file mode 100644 index 0000000000..eec0ae9be8 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-LightItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-Medium.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-Medium.ttf new file mode 100644 index 0000000000..86d1c52ed5 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-Medium.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-MediumItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-MediumItalic.ttf new file mode 100644 index 0000000000..66aa174f05 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-MediumItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-Regular.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-Regular.ttf new file mode 100644 index 0000000000..cb8ffcf1ad Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-Regular.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-Thin.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-Thin.ttf new file mode 100644 index 0000000000..a85eb7c295 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-Thin.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/Roboto-ThinItalic.ttf b/Nitrox.Launcher/Assets/Fonts/Roboto-ThinItalic.ttf new file mode 100644 index 0000000000..ac77951b80 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/Roboto-ThinItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-Bold.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Bold.ttf new file mode 100644 index 0000000000..482f028aba Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Bold.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-BoldItalic.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-BoldItalic.ttf new file mode 100644 index 0000000000..6419a44c74 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-BoldItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-Italic.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Italic.ttf new file mode 100644 index 0000000000..8281794243 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Italic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-Light.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Light.ttf new file mode 100644 index 0000000000..3c845d424b Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Light.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-LightItalic.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-LightItalic.ttf new file mode 100644 index 0000000000..aa3cc9ae0b Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-LightItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-Medium.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Medium.ttf new file mode 100644 index 0000000000..c496725e61 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Medium.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-MediumItalic.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-MediumItalic.ttf new file mode 100644 index 0000000000..caadad68f2 Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-MediumItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-Regular.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Regular.ttf new file mode 100644 index 0000000000..5919b5d1bf Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Regular.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-Thin.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Thin.ttf new file mode 100644 index 0000000000..65bf26affb Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-Thin.ttf differ diff --git a/Nitrox.Launcher/Assets/Fonts/RobotoMono-ThinItalic.ttf b/Nitrox.Launcher/Assets/Fonts/RobotoMono-ThinItalic.ttf new file mode 100644 index 0000000000..171913a4de Binary files /dev/null and b/Nitrox.Launcher/Assets/Fonts/RobotoMono-ThinItalic.ttf differ diff --git a/Nitrox.Launcher/Assets/Images/PlayBoxImage.png b/Nitrox.Launcher/Assets/Images/PlayBoxImage.png new file mode 100644 index 0000000000..6cbef0eb95 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/PlayBoxImage.png differ diff --git a/Nitrox.Launcher/Assets/Images/PlayGameImage.png b/Nitrox.Launcher/Assets/Images/PlayGameImage.png new file mode 100644 index 0000000000..1735041cf4 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/PlayGameImage.png differ diff --git a/Nitrox.Launcher/Assets/Images/SubnauticaMain.png b/Nitrox.Launcher/Assets/Images/SubnauticaMain.png new file mode 100644 index 0000000000..6548920ea8 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/SubnauticaMain.png differ diff --git a/Nitrox.Launcher/Assets/Images/communityHeader.png b/Nitrox.Launcher/Assets/Images/communityHeader.png new file mode 100644 index 0000000000..b866755e78 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/communityHeader.png differ diff --git a/Nitrox.Launcher/Assets/Images/loadingSmall.png b/Nitrox.Launcher/Assets/Images/loadingSmall.png new file mode 100644 index 0000000000..710e0052bc Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/loadingSmall.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/LICENSE.txt b/Nitrox.Launcher/Assets/Images/material-design-icons/LICENSE.txt new file mode 100644 index 0000000000..7a4a3ea242 --- /dev/null +++ b/Nitrox.Launcher/Assets/Images/material-design-icons/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/baseline_send_white_24dp.png b/Nitrox.Launcher/Assets/Images/material-design-icons/baseline_send_white_24dp.png new file mode 100644 index 0000000000..5ff5b2b829 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/baseline_send_white_24dp.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/baseline_stop_white_24dp.png b/Nitrox.Launcher/Assets/Images/material-design-icons/baseline_stop_white_24dp.png new file mode 100644 index 0000000000..9f6dc9ef5e Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/baseline_stop_white_24dp.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/blog.png b/Nitrox.Launcher/Assets/Images/material-design-icons/blog.png new file mode 100644 index 0000000000..40a1c43670 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/blog.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/close-w-10.png b/Nitrox.Launcher/Assets/Images/material-design-icons/close-w-10.png new file mode 100644 index 0000000000..b6c10650aa Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/close-w-10.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/close.png b/Nitrox.Launcher/Assets/Images/material-design-icons/close.png new file mode 100644 index 0000000000..5f958c3cab Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/close.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/community.png b/Nitrox.Launcher/Assets/Images/material-design-icons/community.png new file mode 100644 index 0000000000..10fa70e9a3 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/community.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/download.png b/Nitrox.Launcher/Assets/Images/material-design-icons/download.png new file mode 100644 index 0000000000..254fb531cc Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/download.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/downloadDot.png b/Nitrox.Launcher/Assets/Images/material-design-icons/downloadDot.png new file mode 100644 index 0000000000..c906fb59a1 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/downloadDot.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/library.png b/Nitrox.Launcher/Assets/Images/material-design-icons/library.png new file mode 100644 index 0000000000..10548a7636 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/library.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/max-w-10.png b/Nitrox.Launcher/Assets/Images/material-design-icons/max-w-10.png new file mode 100644 index 0000000000..edb4249d51 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/max-w-10.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/min-w-10.png b/Nitrox.Launcher/Assets/Images/material-design-icons/min-w-10.png new file mode 100644 index 0000000000..3eba9a9a93 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/min-w-10.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/minimise.png b/Nitrox.Launcher/Assets/Images/material-design-icons/minimise.png new file mode 100644 index 0000000000..cd71a9ecb3 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/minimise.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/options.png b/Nitrox.Launcher/Assets/Images/material-design-icons/options.png new file mode 100644 index 0000000000..3777ee40ec Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/options.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/play.png b/Nitrox.Launcher/Assets/Images/material-design-icons/play.png new file mode 100644 index 0000000000..0c273b0f7e Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/play.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/restore-w-10.png b/Nitrox.Launcher/Assets/Images/material-design-icons/restore-w-10.png new file mode 100644 index 0000000000..9262191f5e Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/restore-w-10.png differ diff --git a/Nitrox.Launcher/Assets/Images/material-design-icons/server.png b/Nitrox.Launcher/Assets/Images/material-design-icons/server.png new file mode 100644 index 0000000000..a66ad3922e Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/material-design-icons/server.png differ diff --git a/Nitrox.Launcher/Assets/Images/nitroxGallery.png b/Nitrox.Launcher/Assets/Images/nitroxGallery.png new file mode 100644 index 0000000000..3d0fbd04f0 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/nitroxGallery.png differ diff --git a/Nitrox.Launcher/Assets/Images/nitroxIco.png b/Nitrox.Launcher/Assets/Images/nitroxIco.png new file mode 100644 index 0000000000..476892401e Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/nitroxIco.png differ diff --git a/Nitrox.Launcher/Assets/Images/nitroxLogo.png b/Nitrox.Launcher/Assets/Images/nitroxLogo.png new file mode 100644 index 0000000000..e5040675d6 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/nitroxLogo.png differ diff --git a/Nitrox.Launcher/Assets/Images/old/Vines.png b/Nitrox.Launcher/Assets/Images/old/Vines.png new file mode 100644 index 0000000000..4e44b6f1b3 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/old/Vines.png differ diff --git a/Nitrox.Launcher/Assets/Images/old/icon.ico b/Nitrox.Launcher/Assets/Images/old/icon.ico new file mode 100644 index 0000000000..03f15b71df Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/old/icon.ico differ diff --git a/Nitrox.Launcher/Assets/Images/old/oldNitroxLogo.png b/Nitrox.Launcher/Assets/Images/old/oldNitroxLogo.png new file mode 100644 index 0000000000..98dfd85c34 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/old/oldNitroxLogo.png differ diff --git a/Nitrox.Launcher/Assets/Images/serverIllustration.png b/Nitrox.Launcher/Assets/Images/serverIllustration.png new file mode 100644 index 0000000000..17c6ffbbee Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/serverIllustration.png differ diff --git a/Nitrox.Launcher/Assets/Images/social/discord.png b/Nitrox.Launcher/Assets/Images/social/discord.png new file mode 100644 index 0000000000..ef59e9c732 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/social/discord.png differ diff --git a/Nitrox.Launcher/Assets/Images/social/discordIco.png b/Nitrox.Launcher/Assets/Images/social/discordIco.png new file mode 100644 index 0000000000..97ed45912f Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/social/discordIco.png differ diff --git a/Nitrox.Launcher/Assets/Images/social/github.png b/Nitrox.Launcher/Assets/Images/social/github.png new file mode 100644 index 0000000000..a5e32e2ffc Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/social/github.png differ diff --git a/Nitrox.Launcher/Assets/Images/social/githubIco.png b/Nitrox.Launcher/Assets/Images/social/githubIco.png new file mode 100644 index 0000000000..b86c503834 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/social/githubIco.png differ diff --git a/Nitrox.Launcher/Assets/Images/social/reddit.png b/Nitrox.Launcher/Assets/Images/social/reddit.png new file mode 100644 index 0000000000..e8c77f2997 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/social/reddit.png differ diff --git a/Nitrox.Launcher/Assets/Images/social/redditIco.png b/Nitrox.Launcher/Assets/Images/social/redditIco.png new file mode 100644 index 0000000000..ffaf832705 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/social/redditIco.png differ diff --git a/Nitrox.Launcher/Assets/Images/social/twitter.png b/Nitrox.Launcher/Assets/Images/social/twitter.png new file mode 100644 index 0000000000..30c861d802 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/social/twitter.png differ diff --git a/Nitrox.Launcher/Assets/Images/social/twitterIco.png b/Nitrox.Launcher/Assets/Images/social/twitterIco.png new file mode 100644 index 0000000000..cc14239d4a Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/social/twitterIco.png differ diff --git a/Nitrox.Launcher/Assets/Images/social/website.png b/Nitrox.Launcher/Assets/Images/social/website.png new file mode 100644 index 0000000000..efcea7283a Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/social/website.png differ diff --git a/Nitrox.Launcher/Assets/Images/store-icons/discord-2x.png b/Nitrox.Launcher/Assets/Images/store-icons/discord-2x.png new file mode 100644 index 0000000000..bd95614f0f Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/store-icons/discord-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/store-icons/epic-2x.png b/Nitrox.Launcher/Assets/Images/store-icons/epic-2x.png new file mode 100644 index 0000000000..23bfa04698 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/store-icons/epic-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/store-icons/missing-2x.png b/Nitrox.Launcher/Assets/Images/store-icons/missing-2x.png new file mode 100644 index 0000000000..ab84372c39 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/store-icons/missing-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/store-icons/pirated-2x.png b/Nitrox.Launcher/Assets/Images/store-icons/pirated-2x.png new file mode 100644 index 0000000000..17fa6edbca Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/store-icons/pirated-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/store-icons/steam-2x.png b/Nitrox.Launcher/Assets/Images/store-icons/steam-2x.png new file mode 100644 index 0000000000..730f946308 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/store-icons/steam-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/store-icons/xbox-2x.png b/Nitrox.Launcher/Assets/Images/store-icons/xbox-2x.png new file mode 100644 index 0000000000..e69f4616aa Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/store-icons/xbox-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/subnauticaIcon.png b/Nitrox.Launcher/Assets/Images/subnauticaIcon.png new file mode 100644 index 0000000000..06518cf1d8 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/subnauticaIcon.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/back-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/back-2x.png new file mode 100644 index 0000000000..24043b38d0 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/back-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/cog-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/cog-2x.png new file mode 100644 index 0000000000..c46ce9f75b Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/cog-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/delete-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/delete-2x.png new file mode 100644 index 0000000000..773214fca0 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/delete-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/details-horizontal-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/details-horizontal-2x.png new file mode 100644 index 0000000000..cfa8653fcb Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/details-horizontal-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/details-vertical-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/details-vertical-2x.png new file mode 100644 index 0000000000..540ebccdcd Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/details-vertical-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/export-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/export-2x.png new file mode 100644 index 0000000000..b3bcfadab6 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/export-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/import-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/import-2x.png new file mode 100644 index 0000000000..0a0d3bc67f Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/import-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/plus-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/plus-2x.png new file mode 100644 index 0000000000..2024559acc Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/plus-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/reload-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/reload-2x.png new file mode 100644 index 0000000000..08cd49bdc8 Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/reload-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/window-external-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/window-external-2x.png new file mode 100644 index 0000000000..d460b94ecc Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/window-external-2x.png differ diff --git a/Nitrox.Launcher/Assets/Images/world-manager/window-launcher-2x.png b/Nitrox.Launcher/Assets/Images/world-manager/window-launcher-2x.png new file mode 100644 index 0000000000..4efbfb389c Binary files /dev/null and b/Nitrox.Launcher/Assets/Images/world-manager/window-launcher-2x.png differ diff --git a/Nitrox.Launcher/Models/Converters/BitmapAssetValueConverter.cs b/Nitrox.Launcher/Models/Converters/BitmapAssetValueConverter.cs new file mode 100644 index 0000000000..ec57d85ccd --- /dev/null +++ b/Nitrox.Launcher/Models/Converters/BitmapAssetValueConverter.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Reflection; +using Avalonia; +using Avalonia.Data.Converters; +using Avalonia.Markup.Xaml; +using Avalonia.Media.Imaging; +using Avalonia.Platform; + +namespace Nitrox.Launcher.Models.Converters; + +public class BitmapAssetValueConverter : MarkupExtension, IValueConverter +{ + private static readonly string assemblyName = Assembly.GetEntryAssembly()?.GetName().Name ?? throw new Exception("Unable to get Assembly name"); + private static readonly Dictionary assetCache = new(); + + public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) + { + if (value == null) + { + return null; + } + if (value is not string rawUri || !targetType.IsAssignableFrom(typeof(Bitmap))) + { + throw new NotSupportedException(); + } + if (assetCache.TryGetValue(rawUri, out Bitmap bitmap)) + { + return bitmap; + } + + Uri uri; + // Allow for assembly overrides + if (rawUri.StartsWith("avares://")) + { + uri = new Uri(rawUri); + } + else + { + uri = new Uri($"avares://{assemblyName}{rawUri}"); + } + + IAssetLoader? assets = AvaloniaLocator.Current.GetService(); + if (assets != null) + { + bitmap = new Bitmap(assets.Open(uri)); + assetCache.Add(rawUri, bitmap); + return bitmap; + } + + return null; + } + + public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) + { + throw new NotSupportedException(); + } + + public override object ProvideValue(IServiceProvider serviceProvider) + { + return this; + } +} diff --git a/Nitrox.Launcher/Models/Design/INavigationItem.cs b/Nitrox.Launcher/Models/Design/INavigationItem.cs new file mode 100644 index 0000000000..def8c17e8a --- /dev/null +++ b/Nitrox.Launcher/Models/Design/INavigationItem.cs @@ -0,0 +1,6 @@ +namespace Nitrox.Launcher.Models.Design; + +public interface INavigationItem +{ + public string Text { get; } +} diff --git a/Nitrox.Launcher/Models/Design/MultiDataTemplate.cs b/Nitrox.Launcher/Models/Design/MultiDataTemplate.cs new file mode 100644 index 0000000000..783928cc3f --- /dev/null +++ b/Nitrox.Launcher/Models/Design/MultiDataTemplate.cs @@ -0,0 +1,47 @@ +using System.Collections.Generic; +using Avalonia.Collections; +using Avalonia.Controls; +using Avalonia.Controls.Templates; +using Avalonia.Markup.Xaml.Templates; +using Avalonia.Metadata; + +namespace Nitrox.Launcher.Models.Design; + +/// +/// Selects a based on its . +/// +public class MultiDataTemplate : AvaloniaList, IDataTemplate +{ + [Content] + public List Content { get; set; } = new(); + + public bool Match(object data) + { + if (data is not INavigationItem navItem) + { + return false; + } + foreach (DataTemplate template in Content) + { + if (template.DataType.IsInstanceOfType(data)) + { + return true; + } + } + + return false; + } + + public IControl Build(object param) + { + foreach (DataTemplate template in Content) + { + if (template.DataType.IsInstanceOfType(param)) + { + return template.Build(param); + } + } + + return new TextBlock { Text = param.ToString() }; + } +} diff --git a/Nitrox.Launcher/Models/Design/NavigationHeader.cs b/Nitrox.Launcher/Models/Design/NavigationHeader.cs new file mode 100644 index 0000000000..ee85aca566 --- /dev/null +++ b/Nitrox.Launcher/Models/Design/NavigationHeader.cs @@ -0,0 +1,11 @@ +namespace Nitrox.Launcher.Models.Design; + +public class NavigationHeader : INavigationItem +{ + public string Text { get; } + + public NavigationHeader(string text) + { + Text = text; + } +} diff --git a/Nitrox.Launcher/Models/Design/NavigationItem.cs b/Nitrox.Launcher/Models/Design/NavigationItem.cs new file mode 100644 index 0000000000..778050de5a --- /dev/null +++ b/Nitrox.Launcher/Models/Design/NavigationItem.cs @@ -0,0 +1,24 @@ +using System.Windows.Input; +using ReactiveUI; + +namespace Nitrox.Launcher.Models.Design; + +internal class NavigationItem : INavigationItem +{ + private readonly string? icon; + public ICommand ClickCommand { get; init; } + public string? ToolTipText { get; init; } + public string Text { get; } + + public string? Icon + { + get => icon; + init => icon = value ?? ""; + } + + public NavigationItem(string text) + { + Text = text; + ClickCommand = ReactiveCommand.Create(() => { }); + } +} diff --git a/Nitrox.Launcher/Nitrox.Launcher.csproj b/Nitrox.Launcher/Nitrox.Launcher.csproj new file mode 100644 index 0000000000..1af7696d37 --- /dev/null +++ b/Nitrox.Launcher/Nitrox.Launcher.csproj @@ -0,0 +1,36 @@ + + + WinExe + net6.0 + enable + + copyused + true + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Nitrox.Launcher/Program.cs b/Nitrox.Launcher/Program.cs new file mode 100644 index 0000000000..c0af65a427 --- /dev/null +++ b/Nitrox.Launcher/Program.cs @@ -0,0 +1,29 @@ +using Avalonia; +using Avalonia.ReactiveUI; +using System; + +namespace Nitrox.Launcher +{ + class Program + { + // Initialization code. Don't use any Avalonia, third-party APIs or any + // SynchronizationContext-reliant code before AppMain is called: things aren't initialized + // yet and stuff might break. + [STAThread] + public static void Main(string[] args) => BuildAvaloniaApp() + .StartWithClassicDesktopLifetime(args); + + // Avalonia configuration, don't remove; also used by visual designer. + public static AppBuilder BuildAvaloniaApp() + => AppBuilder.Configure() + .UsePlatformDetect() + .LogToTrace() + .UseReactiveUI() + .With(new X11PlatformOptions + { + // The Wayland renderer on Linux using GPU rendering is not supported by Avalonia. + // Waiting on PR: https://github.com/AvaloniaUI/Avalonia/pull/8352 to enable rendering on GPU. + UseGpu = Environment.GetEnvironmentVariable("WAYLAND_DISPLAY") is null + }); + } +} diff --git a/Nitrox.Launcher/ViewLocator.cs b/Nitrox.Launcher/ViewLocator.cs new file mode 100644 index 0000000000..fd384a5ba6 --- /dev/null +++ b/Nitrox.Launcher/ViewLocator.cs @@ -0,0 +1,15 @@ +using System; +using Nitrox.Launcher.ViewModels; +using Nitrox.Launcher.Views; +using ReactiveUI; + +namespace Nitrox.Launcher; + +public class AppViewLocator : IViewLocator +{ + public IViewFor ResolveView(T viewModel, string? contract = null) => viewModel switch + { + PlayViewModel context => new PlayView { DataContext = context }, + _ => throw new ArgumentOutOfRangeException(nameof(viewModel)) + }; +} diff --git a/Nitrox.Launcher/ViewModels/Abstract/RoutableViewModelBase.cs b/Nitrox.Launcher/ViewModels/Abstract/RoutableViewModelBase.cs new file mode 100644 index 0000000000..82de99c5ec --- /dev/null +++ b/Nitrox.Launcher/ViewModels/Abstract/RoutableViewModelBase.cs @@ -0,0 +1,30 @@ +using System; +using System.Security.Cryptography; +using System.Text; +using ReactiveUI; + +namespace Nitrox.Launcher.ViewModels.Abstract; + +public abstract class RoutableViewModelBase : ReactiveObject, IRoutableViewModel +{ + /// + /// Gets the unique URL for the view. + /// + public string UrlPathSegment + { + get + { + using MD5 md5 = MD5.Create(); + byte[] inputBytes = Encoding.ASCII.GetBytes(GetType().Name); + byte[] hashBytes = md5.ComputeHash(inputBytes); + return Convert.ToHexString(hashBytes); + } + } + + public IScreen HostScreen { get; } + + protected RoutableViewModelBase(IScreen hostScreen) + { + HostScreen = hostScreen; + } +} diff --git a/Nitrox.Launcher/ViewModels/MainWindowViewModel.cs b/Nitrox.Launcher/ViewModels/MainWindowViewModel.cs new file mode 100644 index 0000000000..6932e0a51c --- /dev/null +++ b/Nitrox.Launcher/ViewModels/MainWindowViewModel.cs @@ -0,0 +1,68 @@ +using System.Collections.Generic; +using System.Windows.Input; +using Nitrox.Launcher.Models; +using Nitrox.Launcher.Models.Design; +using ReactiveUI; + +namespace Nitrox.Launcher.ViewModels; + +public class MainWindowViewModel : ReactiveObject, IScreen +{ + public string NavHeaderImage => "/Assets/Images/nitroxLogo.png"; + public RoutingState Router { get; } = new(); + public List NavigationHeaderItems { get; } + public List NavigationFooterItems { get; } + + public MainWindowViewModel() + { + NavigationHeaderItems = new List + { + new NavigationHeader("PLAY"), + new NavigationItem("Play game") + { + ToolTipText = "Play the game", + Icon = "/Assets/Images/material-design-icons/play.png", + ClickCommand = ReactiveCommand.CreateFromObservable(() => Router.Navigate.Execute(new PlayViewModel(this))) + }, + new NavigationItem("Servers") + { + ToolTipText = "Configure and start the server", + Icon = "/Assets/Images/material-design-icons/server.png", + ClickCommand = ReactiveCommand.CreateFromObservable(() => Router.Navigate.Execute(new PlayViewModel(this))) + }, + new NavigationItem("Library") + { + ToolTipText = "Configure your setup", + Icon = "/Assets/Images/material-design-icons/library.png", + ClickCommand = ReactiveCommand.CreateFromObservable(() => Router.Navigate.Execute(new PlayViewModel(this))) + }, + new NavigationHeader("EXPLORE"), + new NavigationItem("Community") + { + ToolTipText = "Join the Nitrox community", + Icon = "/Assets/Images/material-design-icons/community.png", + ClickCommand = ReactiveCommand.CreateFromObservable(() => Router.Navigate.Execute(new PlayViewModel(this))) + }, + new NavigationItem("Blog") + { + ToolTipText = "Read the latest from the Dev Blog", + Icon = "/Assets/Images/material-design-icons/blog.png", + ClickCommand = ReactiveCommand.CreateFromObservable(() => Router.Navigate.Execute(new PlayViewModel(this))) + } + }; + + NavigationFooterItems = new List + { + new NavigationItem("Updates") + { + Icon = "/Assets/Images/material-design-icons/download.png", + ClickCommand = ReactiveCommand.CreateFromObservable(() => Router.Navigate.Execute(new PlayViewModel(this))) + }, + new NavigationItem("Options") + { + Icon = "/Assets/Images/material-design-icons/options.png", + ClickCommand = ReactiveCommand.CreateFromObservable(() => Router.Navigate.Execute(new PlayViewModel(this))) + } + }; + } +} diff --git a/Nitrox.Launcher/ViewModels/PlayViewModel.cs b/Nitrox.Launcher/ViewModels/PlayViewModel.cs new file mode 100644 index 0000000000..777f1adc59 --- /dev/null +++ b/Nitrox.Launcher/ViewModels/PlayViewModel.cs @@ -0,0 +1,14 @@ +using Nitrox.Launcher.ViewModels.Abstract; +using ReactiveUI; + +namespace Nitrox.Launcher.ViewModels +{ + public class PlayViewModel : RoutableViewModelBase + { + public string Greeting => "Hi, I'm the first view!"; + + public PlayViewModel(IScreen hostScreen) : base(hostScreen) + { + } + } +} diff --git a/Nitrox.Launcher/Views/Abstract/RoutableViewBase.cs b/Nitrox.Launcher/Views/Abstract/RoutableViewBase.cs new file mode 100644 index 0000000000..7c59f75909 --- /dev/null +++ b/Nitrox.Launcher/Views/Abstract/RoutableViewBase.cs @@ -0,0 +1,16 @@ +using System; +using Avalonia.ReactiveUI; +using Nitrox.Launcher.ViewModels.Abstract; +using ReactiveUI; + +namespace Nitrox.Launcher.Views.Abstract; + +public abstract class RoutableViewBase : ReactiveUserControl where TViewModel : RoutableViewModelBase +{ + protected RoutableViewBase() + { + this.WhenActivated(RegisterDispose); + } + + protected abstract void RegisterDispose(Action disposables); +} diff --git a/Nitrox.Launcher/Views/MainWindow.axaml b/Nitrox.Launcher/Views/MainWindow.axaml new file mode 100644 index 0000000000..2e565347d9 --- /dev/null +++ b/Nitrox.Launcher/Views/MainWindow.axaml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Nitrox.Launcher/Views/MainWindow.axaml.cs b/Nitrox.Launcher/Views/MainWindow.axaml.cs new file mode 100644 index 0000000000..63b68c88b8 --- /dev/null +++ b/Nitrox.Launcher/Views/MainWindow.axaml.cs @@ -0,0 +1,19 @@ +using Avalonia.Markup.Xaml; +using Avalonia.ReactiveUI; +using Nitrox.Launcher.ViewModels; +using ReactiveUI; + +namespace Nitrox.Launcher.Views +{ + public partial class MainWindow : ReactiveWindow + { + public MainWindow() + { + this.WhenActivated(_ => + { + // TODO: Handle disposables + }); + AvaloniaXamlLoader.Load(this); + } + } +} diff --git a/Nitrox.Launcher/Views/PlayView.axaml b/Nitrox.Launcher/Views/PlayView.axaml new file mode 100644 index 0000000000..523f0a2eaf --- /dev/null +++ b/Nitrox.Launcher/Views/PlayView.axaml @@ -0,0 +1,13 @@ + + + + + + + \ No newline at end of file diff --git a/Nitrox.Launcher/Views/PlayView.axaml.cs b/Nitrox.Launcher/Views/PlayView.axaml.cs new file mode 100644 index 0000000000..70b6bfc1d1 --- /dev/null +++ b/Nitrox.Launcher/Views/PlayView.axaml.cs @@ -0,0 +1,18 @@ +using System; +using Avalonia.Markup.Xaml; +using Nitrox.Launcher.ViewModels; +using Nitrox.Launcher.Views.Abstract; + +namespace Nitrox.Launcher.Views; + +public partial class PlayView : RoutableViewBase +{ + public PlayView() + { + AvaloniaXamlLoader.Load(this); + } + + protected override void RegisterDispose(Action disposables) + { + } +} diff --git a/Nitrox.sln b/Nitrox.sln index e69b1d74c6..9e0331b08e 100644 --- a/Nitrox.sln +++ b/Nitrox.sln @@ -30,6 +30,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nitrox.Test", "Nitrox.Test\ EndProject Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Nitrox.Assets.Subnautica", "Nitrox.Assets.Subnautica\Nitrox.Assets.Subnautica.shproj", "{79E92B6D-5D25-4254-AC9F-FA9A1CD3CBC6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nitrox.Launcher", "Nitrox.Launcher\Nitrox.Launcher.csproj", "{566544A7-2A0D-4C75-A491-7F7AE1F44461}" +EndProject Global GlobalSection(SharedMSBuildProjectFiles) = preSolution Nitrox.Assets.Subnautica\Nitrox.Assets.Subnautica.projitems*{79e92b6d-5d25-4254-ac9f-fa9a1cd3cbc6}*SharedItemsImports = 13 @@ -75,6 +77,10 @@ Global {E4D8C360-34E4-4BE6-909F-3791DD9169B5}.Debug|Any CPU.Build.0 = Debug|Any CPU {E4D8C360-34E4-4BE6-909F-3791DD9169B5}.Release|Any CPU.ActiveCfg = Release|Any CPU {E4D8C360-34E4-4BE6-909F-3791DD9169B5}.Release|Any CPU.Build.0 = Release|Any CPU + {566544A7-2A0D-4C75-A491-7F7AE1F44461}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {566544A7-2A0D-4C75-A491-7F7AE1F44461}.Debug|Any CPU.Build.0 = Debug|Any CPU + {566544A7-2A0D-4C75-A491-7F7AE1F44461}.Release|Any CPU.ActiveCfg = Release|Any CPU + {566544A7-2A0D-4C75-A491-7F7AE1F44461}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE