mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
fixed incorrect red "busy" status light
This commit is contained in:
parent
6d6b594c24
commit
0b0f3777ac
3 changed files with 30 additions and 22 deletions
|
@ -232,6 +232,9 @@ namespace CodeImp.DoomBuilder.Data
|
|||
texturenames.Sort();
|
||||
flatnames.Sort();
|
||||
|
||||
// Update the used textures
|
||||
General.Map.Data.UpdateUsedTextures();
|
||||
|
||||
// Add texture names to texture sets
|
||||
foreach(KeyValuePair<long, ImageData> img in textures)
|
||||
{
|
||||
|
|
|
@ -332,9 +332,6 @@ namespace CodeImp.DoomBuilder
|
|||
maplocation = new DataLocation(DataLocation.RESOURCE_WAD, filepathname, false, false);
|
||||
data.Load(configinfo.Resources, options.Resources, maplocation);
|
||||
|
||||
// Update the used textures
|
||||
General.Map.Data.UpdateUsedTextures();
|
||||
|
||||
// Bind any methods
|
||||
General.Actions.BindMethods(this);
|
||||
|
||||
|
@ -1023,9 +1020,6 @@ namespace CodeImp.DoomBuilder
|
|||
maplocation = new DataLocation(DataLocation.RESOURCE_WAD, filepathname, false, false);
|
||||
data.Load(configinfo.Resources, options.Resources, maplocation);
|
||||
|
||||
// Update the used textures
|
||||
General.Map.Data.UpdateUsedTextures();
|
||||
|
||||
// Apply new settings to map elements
|
||||
map.UpdateConfiguration();
|
||||
|
||||
|
|
|
@ -411,7 +411,10 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
// This returns the current status text
|
||||
internal string GetCurrentSatus()
|
||||
{
|
||||
if(statustype == StatusType.Busy)
|
||||
return statuslabel.Text;
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
// This shows a warning
|
||||
|
@ -481,6 +484,13 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
|
||||
// This changes status text
|
||||
public void DisplayStatus(string status)
|
||||
{
|
||||
// Null is no busy status
|
||||
if(status == null)
|
||||
{
|
||||
DisplayReady();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Stop warning timers
|
||||
warningtimer.Stop();
|
||||
|
@ -498,6 +508,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
statusbar.Invalidate();
|
||||
this.Update();
|
||||
}
|
||||
}
|
||||
|
||||
// This changes status text to Ready
|
||||
public void DisplayReady()
|
||||
|
|
Loading…
Reference in a new issue