mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-02 09:51:47 +00:00
Fixed, DECORATE parser: enums were not handled properly.
General interface: selection info is now always displayed. Visual mode: you can now hold Alt-Shift or Ctrl-Alt while selecting sidedefs to stop selecting connected sidedefs when already (un)selected sidedef is encountered. Added, Numeric Textbox: you can now use "+++" and "---" prefixes to incrementally increase or decrease result values by given value. Fixed, Numeric Textbox: fixed a potential divide by zero exception when using "/" prefix in numeric textboxes with decimal input enabled. Fixed, Thing Info panel: relative z position of things with "+SPAWNCEILING" flag was incorrect. Changed: Update checker now displays messages using MessageBoxes when called manually. Map Analysis: changed result descriptions for Unknown Texture and Missing Texture checks. Doom map format: renamed "Secret" linedef flag to "Shown as 1-sided on automap". Updated ZDoom_DECORATE.cfg (A_RadiusGive stuff).
This commit is contained in:
parent
1118fd6b98
commit
c6f9146b8b
23 changed files with 178 additions and 49 deletions
|
@ -3,6 +3,7 @@ using System.ComponentModel;
|
|||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml;
|
||||
|
||||
namespace CodeImp.DoomBuilder
|
||||
|
@ -11,16 +12,25 @@ namespace CodeImp.DoomBuilder
|
|||
{
|
||||
private static BackgroundWorker worker;
|
||||
private static string errordesc;
|
||||
|
||||
internal static void PerformCheck()
|
||||
private static bool verbose;
|
||||
|
||||
internal static void PerformCheck(bool verbosemode)
|
||||
{
|
||||
if(worker != null && worker.IsBusy)
|
||||
{
|
||||
General.ErrorLogger.Add(ErrorType.Warning, "Update check is already running!");
|
||||
General.MainWindow.ShowErrors();
|
||||
if(verbosemode)
|
||||
{
|
||||
General.ShowWarningMessage("Update check is already running!", MessageBoxButtons.OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
General.ErrorLogger.Add(ErrorType.Warning, "Update check is already running!");
|
||||
General.MainWindow.ShowErrors();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
verbose = verbosemode;
|
||||
worker = new BackgroundWorker();
|
||||
worker.DoWork += DoWork;
|
||||
worker.RunWorkerCompleted += RunWorkerCompleted;
|
||||
|
@ -81,6 +91,10 @@ namespace CodeImp.DoomBuilder
|
|||
// Pass data to MainForm
|
||||
General.MainWindow.UpdateAvailable(remoterev, changelog);
|
||||
}
|
||||
else if(verbose)
|
||||
{
|
||||
errordesc = "Your version is up to date";
|
||||
}
|
||||
}
|
||||
|
||||
private static void RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs runWorkerCompletedEventArgs)
|
||||
|
@ -88,8 +102,15 @@ namespace CodeImp.DoomBuilder
|
|||
worker = null;
|
||||
if(!string.IsNullOrEmpty(errordesc))
|
||||
{
|
||||
General.ErrorLogger.Add(ErrorType.Warning, errordesc);
|
||||
General.MainWindow.ShowErrors();
|
||||
if(verbose)
|
||||
{
|
||||
General.ShowWarningMessage(errordesc, MessageBoxButtons.OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
General.ErrorLogger.Add(ErrorType.Warning, errordesc);
|
||||
General.MainWindow.ShowErrors();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue