Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
nacrt committed Nov 26, 2020
1 parent 6ce5b7b commit 0ffc172
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 9 deletions.
4 changes: 2 additions & 2 deletions SkyblockClient/Config/ModConfigWorkers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public override async Task Work()
string source = await helper.DownloadFileByte("mainmenu.json");
helper.Move(source, Path.Combine(Globals.skyblockConfigLocation, "CustomMainMenu/mainmenu.json"));

string[] files = new string[] { "background.png", "discord.png", "discordbutton.png", "skyclient.png" };
string[] files = new string[] { "background.png", "skyclient.png", "bg_menu.png" };
foreach (var file in files)
{
source = await helper.DownloadFileByte(file);
helper.Move(source, Path.Combine(Globals.skyblockConfigLocation, $"CustomMainMenu/{file}"));
helper.Move(source, Path.Combine(Globals.gameDirectory, "resources", "mainmenu", file));
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions SkyblockClient/Json/LauncherProfiles.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace SkyblockClient.Json
{
class LauncherProfiles
{
public ProfilesJson profiles { get; set; }
}
}
13 changes: 13 additions & 0 deletions SkyblockClient/Json/ProfilesJson.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SkyblockClient.Json
{
class ProfilesJson
{

}
}
10 changes: 10 additions & 0 deletions SkyblockClient/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
using System.Windows;
using System.Windows.Controls;
using SkyblockClient.Option;
using Newtonsoft.Json;
using SkyblockClient.Json;

namespace SkyblockClient
{
Expand Down Expand Up @@ -63,6 +65,14 @@ public MainWindow()
{
InitializeComponent();
PostConstruct();


if (Globals.isDebugEnabled)
{
string text = File.ReadAllText(Path.Combine(Globals.minecraftRootLocation, "launcher_profiles.json"));
var launcherProfiles = JsonConvert.DeserializeObject<LauncherProfiles>(text);

}
}

public async void PostConstruct()
Expand Down
6 changes: 0 additions & 6 deletions SkyblockClient/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("SkyblockClient")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SkyblockClient")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
Expand Down
7 changes: 6 additions & 1 deletion SkyblockClient/SkyblockClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ProjectGuid>{2DEA9CD8-419E-4F59-82D9-D089DC282BB7}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>SkyblockClient</RootNamespace>
<AssemblyName>SkyblockClient-0.7.6.3</AssemblyName>
<AssemblyName>SkyblockClient-0.7.6.4</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
Expand Down Expand Up @@ -54,6 +54,9 @@
<Reference Include="Microsoft.WindowsAPICodePack.ShellExtensions, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.WindowsAPICodePack-Shell.1.1.0.0\lib\Microsoft.WindowsAPICodePack.ShellExtensions.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Numerics" />
Expand Down Expand Up @@ -105,6 +108,8 @@
<SubType>Code</SubType>
</Compile>
<Compile Include="Globals.cs" />
<Compile Include="Json\LauncherProfiles.cs" />
<Compile Include="Json\ProfilesJson.cs" />
<Compile Include="MainWindow.triggers.cs" />
<Compile Include="Option\IOption.cs" />
<Compile Include="Option\OptionHelper.cs" />
Expand Down

0 comments on commit 0ffc172

Please sign in to comment.