Organization
Code cleanup File organization Getting ready for the 1.0 release
This commit is contained in:
@@ -170,9 +170,9 @@ namespace BMGEditor
|
|||||||
public class TextEntry
|
public class TextEntry
|
||||||
{
|
{
|
||||||
public int entryNo;
|
public int entryNo;
|
||||||
public string text;
|
public string text = "";
|
||||||
public UInt32 offset;
|
public UInt32 offset;
|
||||||
public string entryName;
|
public string entryName = "";
|
||||||
|
|
||||||
//Properties
|
//Properties
|
||||||
public byte unk1;
|
public byte unk1;
|
||||||
@@ -15,8 +15,8 @@ namespace BMGEditor
|
|||||||
public const string softwareName = "Luma";
|
public const string softwareName = "Luma";
|
||||||
public const string softwareVersion = "v0.4.5";
|
public const string softwareVersion = "v0.4.5";
|
||||||
public const UInt64 softwareInternalVersion = 45;
|
public const UInt64 softwareInternalVersion = 45;
|
||||||
|
public const UInt64 build = 1; //Getting ready for 1.0
|
||||||
public const bool isBeta = true;
|
public const bool isBeta = true;
|
||||||
public const bool isPrivateBeta = false;
|
|
||||||
}
|
}
|
||||||
internal static class Program
|
internal static class Program
|
||||||
{
|
{
|
||||||
@@ -25,8 +25,6 @@ namespace BMGEditor
|
|||||||
{
|
{
|
||||||
ApplicationConfiguration.Initialize();
|
ApplicationConfiguration.Initialize();
|
||||||
Bcsv.PopulateHashtable();
|
Bcsv.PopulateHashtable();
|
||||||
if (Variables.isBeta && Variables.isPrivateBeta)
|
|
||||||
MessageBox.Show("This is a private beta, please don\'t leak it.", "Private", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
|
||||||
Application.Run(new MainForm());
|
Application.Run(new MainForm());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,6 +32,11 @@ namespace BMGEditor
|
|||||||
public static async void CheckUpdates()
|
public static async void CheckUpdates()
|
||||||
{
|
{
|
||||||
const string verCheckURL = "https://bussun.github.io/res/checks/luma/upre1";
|
const string verCheckURL = "https://bussun.github.io/res/checks/luma/upre1";
|
||||||
|
/*if (Variables.isBeta)
|
||||||
|
* const string verCheckURL = "https://bussun.github.io/res/checks/luma/ub";
|
||||||
|
*else
|
||||||
|
* const string verCheckURL = "https://bussun.github.io/res/chacks/luma/u";
|
||||||
|
*/ //Getting ready for 1.0
|
||||||
Stream wrAnswer;
|
Stream wrAnswer;
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -46,12 +49,22 @@ namespace BMGEditor
|
|||||||
{
|
{
|
||||||
UInt64 wrAnswerVersion = UInt64.Parse(wrAnswerContent);
|
UInt64 wrAnswerVersion = UInt64.Parse(wrAnswerContent);
|
||||||
|
|
||||||
if (wrAnswerVersion > Variables.softwareInternalVersion)
|
if (wrAnswerVersion == 100)
|
||||||
|
MessageBox.Show("The 1.0 release is available !!", "1.0 Available, upgrade now !");
|
||||||
|
else if (wrAnswerVersion > Variables.softwareInternalVersion)
|
||||||
MessageBox.Show("New version available", "Update available", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show("New version available", "Update available", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
else if (wrAnswerVersion == Variables.softwareInternalVersion)
|
else if (wrAnswerVersion == Variables.softwareInternalVersion)
|
||||||
MessageBox.Show("Luma is up to date.", "No update available", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show("Luma is up to date.", "No update available", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
else
|
else
|
||||||
MessageBox.Show("Woah, you got a developpement version !", "The most up to date ever (for now)", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show("Woah, you got a developpement version !", "The most up to date ever (for now)", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
|
||||||
|
/* if (wrAnswerVersion > Variables.build)
|
||||||
|
MessageBox.Show("New version available", "Update available", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
else if (wrAnswerVersion == Variables.build)
|
||||||
|
MessageBox.Show("Luma is up to date.", "No update available", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
else
|
||||||
|
MessageBox.Show("Woah, you got a developpement version !", "The most up to date ever (for now)", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
*/ //Getting ready for 1.0
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace BMGEditor.UI
|
namespace BMGEditor.UI
|
||||||
@@ -16,8 +9,7 @@ namespace BMGEditor.UI
|
|||||||
public NewEntryForm(BMG file)
|
public NewEntryForm(BMG file)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Text = $"New Entry - {Variables.softwareName} {Variables.softwareVersion}";
|
Text = "New Entry";
|
||||||
if (Variables.isBeta) Text += " [BETA]";
|
|
||||||
m_File = file;
|
m_File = file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user