Skip to content

Commit

Permalink
Update 3.13b
Browse files Browse the repository at this point in the history
  • Loading branch information
kresmes committed Jul 14, 2021
1 parent 0e86984 commit f74a5e2
Show file tree
Hide file tree
Showing 153 changed files with 24,603 additions and 0 deletions.
37 changes: 37 additions & 0 deletions YPBBT.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30002.166
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YPBBT", "YPBBT\YPBBT.csproj", "{2F9BF334-F3B1-4109-9A7A-31488850B97F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
AutoUpdate|Any CPU = AutoUpdate|Any CPU
AutoUpdate|x86 = AutoUpdate|x86
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.AutoUpdate|Any CPU.ActiveCfg = AutoUpdate|Any CPU
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.AutoUpdate|Any CPU.Build.0 = AutoUpdate|Any CPU
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.AutoUpdate|x86.ActiveCfg = Debug|x86
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.AutoUpdate|x86.Build.0 = Debug|x86
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.Debug|x86.ActiveCfg = Debug|x86
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.Debug|x86.Build.0 = Debug|x86
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.Release|Any CPU.Build.0 = Release|Any CPU
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.Release|x86.ActiveCfg = Release|x86
{2F9BF334-F3B1-4109-9A7A-31488850B97F}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5A129F52-B958-4FEE-916D-939C68EE97FA}
EndGlobalSection
EndGlobal
189 changes: 189 additions & 0 deletions YPBBT/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="YPBBT.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="x86" />
<dependentAssembly>
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Linq.Async" publicKeyToken="94bc3704cddfc263" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Syncfusion.Licensing" publicKeyToken="632609b4d040f6b4" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-18.1460.0.59" newVersion="18.1460.0.59" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Bcl.AsyncInterfaces" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<userSettings>
<YPBBT.Properties.Settings>
<setting name="DefaultRegion" serializeAs="String">
<value />
</setting>
<setting name="BossSpawnAlarmCheckBox" serializeAs="String">
<value />
</setting>
<setting name="NightTimeAlarmCheckBox" serializeAs="String">
<value />
</setting>
<setting name="ImperialResetCheckBox" serializeAs="String">
<value />
</setting>
<setting name="PlaySoundSetting" serializeAs="String">
<value />
</setting>
<setting name="OverlayTransparency" serializeAs="String">
<value />
</setting>
<setting name="OverlayState" serializeAs="String">
<value />
</setting>
<setting name="NTPlaySoundSetting" serializeAs="String">
<value />
</setting>
<setting name="IRPlaySoundSetting" serializeAs="String">
<value />
</setting>
<setting name="DisplayTimeTableSetting" serializeAs="String">
<value />
</setting>
<setting name="BSA1CM" serializeAs="String">
<value />
</setting>
<setting name="BSA2CM" serializeAs="String">
<value />
</setting>
<setting name="BSA3CM" serializeAs="String">
<value />
</setting>
<setting name="NTA1CM" serializeAs="String">
<value />
</setting>
<setting name="NTA2CM" serializeAs="String">
<value />
</setting>
<setting name="NTA3CM" serializeAs="String">
<value />
</setting>
<setting name="IRA1CM" serializeAs="String">
<value />
</setting>
<setting name="IRA2CM" serializeAs="String">
<value />
</setting>
<setting name="IRA3CM" serializeAs="String">
<value />
</setting>
<setting name="EditSpawnHoursSlider" serializeAs="String">
<value />
</setting>
<setting name="SettingKeepMessages" serializeAs="String">
<value />
</setting>
<setting name="AlarmonhoursCheckbox" serializeAs="String">
<value />
</setting>
<setting name="BRAlarmCheckBox" serializeAs="String">
<value />
</setting>
<setting name="ITRAlarmCheckBox" serializeAs="String">
<value />
</setting>
<setting name="ITRA1CM" serializeAs="String">
<value />
</setting>
<setting name="ITRA2CM" serializeAs="String">
<value />
</setting>
<setting name="ITRA3CM" serializeAs="String">
<value />
</setting>
<setting name="BRA1CM" serializeAs="String">
<value />
</setting>
<setting name="BRA2CM" serializeAs="String">
<value />
</setting>
<setting name="BRA3CM" serializeAs="String">
<value />
</setting>
<setting name="SelectedSource" serializeAs="String">
<value />
</setting>
<setting name="DefaultRegion1" serializeAs="String">
<value />
</setting>
<setting name="MainColor" serializeAs="String">
<value />
</setting>
<setting name="SubColor" serializeAs="String">
<value />
</setting>
<setting name="HeaderColor" serializeAs="String">
<value />
</setting>
<setting name="OriginBossList" serializeAs="String">
<value />
</setting>
<setting name="AnimatedBackgroundSource" serializeAs="String">
<value />
</setting>
<setting name="AnimatedBackgroundCheckbox" serializeAs="String">
<value />
</setting>
<setting name="BackgroundImageSource" serializeAs="String">
<value />
</setting>
<setting name="BackgroundImageCheckbox" serializeAs="String">
<value />
</setting>
<setting name="BRPlaySoundSetting" serializeAs="String">
<value />
</setting>
<setting name="ITRPlaySoundSetting" serializeAs="String">
<value />
</setting>
<setting name="Overlay_Position" serializeAs="String">
<value />
</setting>
<setting name="High_RenderQuality" serializeAs="String">
<value />
</setting>
<setting name="ScarletMode" serializeAs="String">
<value />
</setting>
<setting name="SelfRolling" serializeAs="String">
<value />
</setting>
<setting name="AutoUpdateTable" serializeAs="String">
<value />
</setting>
</YPBBT.Properties.Settings>
</userSettings>
</configuration>
11 changes: 11 additions & 0 deletions YPBBT/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Application x:Class="YPBBT.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:YPBBT"
StartupUri="DA_StartUp.xaml">
<Application.Resources>
<SolidColorBrush x:Key="MainColor" />
<SolidColorBrush x:Key="SubColor" />
<SolidColorBrush x:Key="HeaderColor" />
</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions YPBBT/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace YPBBT
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
82 changes: 82 additions & 0 deletions YPBBT/AutoUpdate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Animation;

namespace YPBBT
{
public class AutoUpdate
{
DA_MainWindow Public_MainWindow;
public void Check_For_Update(DA_MainWindow mainWindow)
{
Public_MainWindow = mainWindow;
Application.Current.Dispatcher.Invoke((Action)(() => { Public_MainWindow.Processing_Status(false, Public_MainWindow.LanguageCollection[125].ToString()); }));
try
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://raw.githubusercontent.com/kresmes/BDO-Boss-Timer-Discord-Bot-Yuri-Project-/master/Resources/Version");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

if (response.StatusCode == HttpStatusCode.OK)
{
Stream receiveStream = response.GetResponseStream();
StreamReader readStream = null;

if (String.IsNullOrWhiteSpace(response.CharacterSet))
readStream = new StreamReader(receiveStream);
else
readStream = new StreamReader(receiveStream, Encoding.GetEncoding(response.CharacterSet));
string data = readStream.ReadToEnd();

Public_MainWindow.CurrentVersion = GetStrBetweenTags(data, "[AppVersion]", "[/AppVersion]");
if (GetStrBetweenTags(readStream.ReadToEnd(), "[TimeTable]", "[/TimeTable]") != "")
{ File.WriteAllText(Directory.GetCurrentDirectory() + "/Resources/LYPBBTTT_Origin", GetStrBetweenTags(data, "[TimeTable]", "[/TimeTable]").Trim()); }
if(GetStrBetweenTags(readStream.ReadToEnd(), "[Bosses]", "[/Bosses]") != "")
{ File.WriteAllText(Directory.GetCurrentDirectory() + "/Resources/BossesOrigin", GetStrBetweenTags(data, "[Bosses]", "[/Bosses]").Trim()); }
response.Close();
readStream.Close();
if(Public_MainWindow.CurrentVersion != Public_MainWindow.AppVersion)
{
string version = Public_MainWindow.CurrentVersion;
using (var client = new WebClient())
{
if(!Directory.Exists(System.IO.Directory.GetCurrentDirectory() + "/Update"))
{ Directory.CreateDirectory(System.IO.Directory.GetCurrentDirectory() + "/Update");}
client.DownloadFile("https://github.com/kresmes/BDO-Boss-Timer-Discord-Bot-Yuri-Project-/releases/download/" + version + "/AutoUpdate.Update",
System.IO.Directory.GetCurrentDirectory() + "/Update/AutoUpdate.Update");
File.WriteAllText(System.IO.Directory.GetCurrentDirectory() + "/Update/installUpdate", "True");
Application.Current.Dispatcher.Invoke((Action)(() => {
Public_MainWindow.Processing_Status(true, Public_MainWindow.LanguageCollection[126].ToString());
Public_MainWindow.AlertNewUpdate();
Public_MainWindow.appRestartButton.ToolTip = Public_MainWindow.LanguageCollection[146].ToString();
}));
}
}
else
{
Application.Current.Dispatcher.Invoke((Action)(() => { Public_MainWindow.Processing_Status(true, Public_MainWindow.LanguageCollection[127].ToString()); }));
}
}
}
catch (Exception) {
Public_MainWindow.CurrentVersion = Public_MainWindow.AppVersion;
Application.Current.Dispatcher.Invoke((Action)(() => { Public_MainWindow.Processing_Status(true, Public_MainWindow.LanguageCollection[128].ToString(), true); }));
}
}
public static string GetStrBetweenTags(string value, string startTag, string endTag)
{
if (value.Contains(startTag) && value.Contains(endTag))
{
int index = value.IndexOf(startTag) + startTag.Length;
return value.Substring(index, value.IndexOf(endTag) - index);
}
else
return null;
}
}
}
Binary file added YPBBT/Completed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions YPBBT/CurrentVersion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.1a
Loading

0 comments on commit f74a5e2

Please sign in to comment.