Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
Added an Icon
Browse files Browse the repository at this point in the history
And fixed some minor issues
  • Loading branch information
AndyFilter committed Mar 4, 2021
1 parent 0f2487e commit 11f3883
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
8 changes: 7 additions & 1 deletion DialogueMaker.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31019.35
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DialogueMaker", "DialogueMaker\DialogueMaker.csproj", "{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DialogueMaker", "DialogueMaker\DialogueMaker.csproj", "{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}.Debug|x64.ActiveCfg = Debug|x64
{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}.Debug|x64.Build.0 = Debug|x64
{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}.Release|Any CPU.Build.0 = Release|Any CPU
{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}.Release|x64.ActiveCfg = Release|x64
{22055CDA-3FA8-45E1-86F6-15C933BDB7A6}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
14 changes: 13 additions & 1 deletion DialogueMaker/DialogueMaker.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ApplicationIcon>media\dialoguemaker.ico</ApplicationIcon>
<Platforms>AnyCPU;x64</Platforms>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
</PropertyGroup>

<ItemGroup>
<None Remove="media\dialoguemaker.ico" />
<None Remove="media\DialogueMaker.png" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="WinCopies.WindowsAPICodePack.Shell" Version="2.1.1" />
</ItemGroup>

<ItemGroup>
<Resource Include="media\dialoguemaker.ico" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion DialogueMaker/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DialogueMaker"
mc:Ignorable="d"
Title="MainWindow" Height="500" Width="800" MinWidth="750" MinHeight="450">
Title="Dialogue Maker" Height="500" Width="800" MinWidth="750" MinHeight="450" Icon="/media/DialogueMaker.ico">
<Grid>
<TabControl x:Name="TabCrl">
<TabItem Header="Project">
Expand Down
2 changes: 1 addition & 1 deletion DialogueMaker/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,8 @@ private void SaveClicked(object sender, RoutedEventArgs e)
{
if (CurrentProject == null)
{
return;
CreateNotification("Please create/select a project first");
return;
}

File.WriteAllText(Utils.GetProjectPath(CurrentProject.Name), JsonSerializer.Serialize(GetCurrentProject()));
Expand Down
Binary file added DialogueMaker/media/DialogueMaker.ico
Binary file not shown.

0 comments on commit 11f3883

Please sign in to comment.