Skip to content

Commit c9c32ac

Browse files
committed
initial commit 1.1.1
1 parent 0d7ef79 commit c9c32ac

File tree

85 files changed

+12422
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+12422
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bin/
2+
/obj/

App.xaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Application x:Class="Challenges_App.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:Challenges_App"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
<Style x:Key="lblFont1" TargetType="{x:Type Control}" >
8+
<Setter Property="FontFamily" Value="Fonts/KGPrimaryItalics.ttf #KG Primary Italics"/>
9+
</Style>
10+
<Style x:Key="Minecraft" TargetType="{x:Type Control}">
11+
<Setter Property="FontFamily" Value="Fonts/MinecraftRegular-Bmg3.otf #Minecraft"/>
12+
</Style>
13+
</Application.Resources>
14+
</Application>

App.xaml.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System.Globalization;
2+
using System.Threading;
3+
using System.Windows;
4+
using System.Windows.Markup;
5+
6+
namespace Challenges_App
7+
{
8+
/// <summary>
9+
/// Interaction logic for App.xaml
10+
/// </summary>
11+
public partial class App : Application
12+
{
13+
protected override void OnStartup(StartupEventArgs e)
14+
{
15+
var vCulture = new CultureInfo("en-GB");
16+
17+
Thread.CurrentThread.CurrentCulture = vCulture;
18+
Thread.CurrentThread.CurrentUICulture = vCulture;
19+
CultureInfo.DefaultThreadCurrentCulture = vCulture;
20+
CultureInfo.DefaultThreadCurrentUICulture = vCulture;
21+
22+
FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
23+
24+
base.OnStartup(e);
25+
}
26+
}
27+
}

AssemblyInfo.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Windows;
2+
3+
[assembly: ThemeInfo(
4+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5+
//(used if a resource is not found in the page,
6+
// or application resource dictionaries)
7+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8+
//(used if a resource is not found in the page,
9+
// app, or any theme specific resource dictionaries)
10+
)]

Challenges_App.csproj

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<Nullable>enable</Nullable>
6+
<UseWPF>true</UseWPF>
7+
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
8+
<SignAssembly>False</SignAssembly>
9+
<Copyright>Luca008</Copyright>
10+
<ApplicationIcon>favicon.ico</ApplicationIcon>
11+
<TargetFramework>net6.0-windows</TargetFramework>
12+
<StartupObject>Challenges_App.App</StartupObject>
13+
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
14+
</PropertyGroup>
15+
16+
<ItemGroup>
17+
<Content Include="favicon.ico" />
18+
</ItemGroup>
19+
20+
<ItemGroup>
21+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
22+
</ItemGroup>
23+
<ItemGroup>
24+
<Resource Include="Fonts\KGPrimaryItalics.ttf">
25+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
26+
</Resource>
27+
<Resource Include="Fonts\MC_Bold\MinecraftBold-nMK1.otf">
28+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
29+
</Resource>
30+
<Resource Include="Fonts\MC_Bold_Italic\MinecraftBoldItalic-1y1e.otf">
31+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
32+
</Resource>
33+
<Resource Include="Fonts\MC_Italic\MinecraftItalic-R8Mo.otf">
34+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
35+
</Resource>
36+
<Resource Include="Fonts\MinecraftRegular-Bmg3.otf">
37+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
38+
</Resource>
39+
<Resource Include="LogManager.cs">
40+
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
41+
</Resource>
42+
</ItemGroup>
43+
44+
<ItemGroup>
45+
<Compile Update="Files\ResxFile.Designer.cs">
46+
<DesignTime>True</DesignTime>
47+
<AutoGen>True</AutoGen>
48+
<DependentUpon>ResxFile.resx</DependentUpon>
49+
</Compile>
50+
</ItemGroup>
51+
52+
<ItemGroup>
53+
<EmbeddedResource Update="Files\ResxFile.resx">
54+
<Generator>PublicResXFileCodeGenerator</Generator>
55+
<LastGenOutput>ResxFile.Designer.cs</LastGenOutput>
56+
</EmbeddedResource>
57+
</ItemGroup>
58+
59+
<ItemGroup>
60+
<Folder Include="Properties\" />
61+
</ItemGroup>
62+
</Project>

Challenges_App.csproj.user

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<_LastSelectedProfileId>C:\Users\lucad\Desktop\Dev\CSharp\Challenges\Challenges\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<ApplicationDefinition Update="App.xaml">
8+
<SubType>Designer</SubType>
9+
</ApplicationDefinition>
10+
</ItemGroup>
11+
<ItemGroup>
12+
<Compile Update="Pages\Attribute.xaml.cs">
13+
<SubType>Code</SubType>
14+
</Compile>
15+
<Compile Update="Pages\CategorySession.xaml.cs">
16+
<SubType>Code</SubType>
17+
</Compile>
18+
<Compile Update="Pages\ChallengeSession.xaml.cs">
19+
<SubType>Code</SubType>
20+
</Compile>
21+
<Compile Update="Pages\Connect.xaml.cs">
22+
<SubType>Code</SubType>
23+
</Compile>
24+
<Compile Update="Pages\Item.xaml.cs">
25+
<SubType>Code</SubType>
26+
</Compile>
27+
<Compile Update="Pages\ItemsManager.xaml.cs">
28+
<SubType>Code</SubType>
29+
</Compile>
30+
<Compile Update="Pages\MainMenu.xaml.cs">
31+
<SubType>Code</SubType>
32+
</Compile>
33+
<Compile Update="Pages\Meta\Book.xaml.cs">
34+
<SubType>Code</SubType>
35+
</Compile>
36+
<Compile Update="Pages\Meta\LeatherArmor.xaml.cs">
37+
<SubType>Code</SubType>
38+
</Compile>
39+
<Compile Update="Pages\Meta\Potion.xaml.cs">
40+
<SubType>Code</SubType>
41+
</Compile>
42+
<Compile Update="Pages\Meta\Skull.xaml.cs">
43+
<SubType>Code</SubType>
44+
</Compile>
45+
<Compile Update="Pages\Meta\TropicalFish.xaml.cs">
46+
<SubType>Code</SubType>
47+
</Compile>
48+
<Compile Update="Pages\Required\Island.xaml.cs">
49+
<SubType>Code</SubType>
50+
</Compile>
51+
<Compile Update="Pages\Required\Items.xaml.cs">
52+
<SubType>Code</SubType>
53+
</Compile>
54+
<Compile Update="Pages\Required\Others.xaml.cs">
55+
<SubType>Code</SubType>
56+
</Compile>
57+
<Compile Update="Pages\Required\Stats.xaml.cs">
58+
<SubType>Code</SubType>
59+
</Compile>
60+
<Compile Update="Pages\Reward.xaml.cs">
61+
<SubType>Code</SubType>
62+
</Compile>
63+
</ItemGroup>
64+
<ItemGroup>
65+
<Page Update="Controls\ButtonControl.xaml">
66+
<SubType>Designer</SubType>
67+
</Page>
68+
<Page Update="Pages\Attribute.xaml">
69+
<SubType>Designer</SubType>
70+
</Page>
71+
<Page Update="Pages\CategorySession.xaml">
72+
<SubType>Designer</SubType>
73+
</Page>
74+
<Page Update="Controls\Loading.xaml">
75+
<SubType>Designer</SubType>
76+
</Page>
77+
<Page Update="Controls\TitleBar.xaml">
78+
<SubType>Designer</SubType>
79+
</Page>
80+
<Page Update="MainWindow.xaml">
81+
<SubType>Designer</SubType>
82+
</Page>
83+
<Page Update="Pages\ChallengeSession.xaml">
84+
<SubType>Designer</SubType>
85+
</Page>
86+
<Page Update="Pages\Connect.xaml">
87+
<SubType>Designer</SubType>
88+
</Page>
89+
<Page Update="Pages\Item.xaml">
90+
<SubType>Designer</SubType>
91+
</Page>
92+
<Page Update="Pages\ItemsManager.xaml">
93+
<SubType>Designer</SubType>
94+
</Page>
95+
<Page Update="Pages\MainMenu.xaml">
96+
<SubType>Designer</SubType>
97+
</Page>
98+
<Page Update="Pages\Meta\Book.xaml">
99+
<SubType>Designer</SubType>
100+
</Page>
101+
<Page Update="Pages\Meta\LeatherArmor.xaml">
102+
<SubType>Designer</SubType>
103+
</Page>
104+
<Page Update="Pages\Meta\Potion.xaml">
105+
<SubType>Designer</SubType>
106+
</Page>
107+
<Page Update="Pages\Meta\Skull.xaml">
108+
<SubType>Designer</SubType>
109+
</Page>
110+
<Page Update="Pages\Meta\TropicalFish.xaml">
111+
<SubType>Designer</SubType>
112+
</Page>
113+
<Page Update="Pages\Required\Island.xaml">
114+
<SubType>Designer</SubType>
115+
</Page>
116+
<Page Update="Pages\Required\Items.xaml">
117+
<SubType>Designer</SubType>
118+
</Page>
119+
<Page Update="Pages\Required\Others.xaml">
120+
<SubType>Designer</SubType>
121+
</Page>
122+
<Page Update="Pages\Required\Stats.xaml">
123+
<SubType>Designer</SubType>
124+
</Page>
125+
<Page Update="Pages\Reward.xaml">
126+
<SubType>Designer</SubType>
127+
</Page>
128+
</ItemGroup>
129+
</Project>

Controls/ButtonControl.xaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<UserControl x:Class="Challenges_App.Controls.ButtonControl"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
mc:Ignorable="d"
7+
x:Name="design">
8+
<Grid x:Name="grid" Width="100" Height="30">
9+
<Rectangle x:Name="rectFont" RadiusY="20" RadiusX="20" Margin="2.5"/>
10+
<Label x:Name="lblName" Margin="2.5" Content="{Binding Text, ElementName=ButtonControl}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="14" Padding="0,0,0,4"/>
11+
<Rectangle x:Name="rectEvent" RadiusY="20" RadiusX="20" Margin="2.5" Fill="Transparent" Cursor="Hand" MouseEnter="EventMouseEnter" MouseLeave="EventMouseLeave" MouseUp="EventMouseUp"/>
12+
</Grid>
13+
</UserControl>

0 commit comments

Comments
 (0)