Improved mission information at panel

This commit is contained in:
VladMordock
2021-02-17 13:10:38 +01:00
parent 3b45fb05ff
commit 6edc2320cc
3 changed files with 75 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
// This class gathers all global variable
// Class to hold current game state/mission information
class CurrentMissionClass
{
@@ -10,7 +11,13 @@ class CurrentMissionClass
public string ToInfoString()
{
return this.Mission + " (" + this.Theatre + ") Pause:" + this.Pause;
if (this.Mission != "")
{
return "Mission: " + this.Mission + "(" + this.Theatre + ") Pause:" + this.Pause;
} else
{
return "Mission: Unknown";
}
}
}

View File

@@ -523,9 +523,9 @@
//
this.con_Button_Reset_Flags.Enabled = false;
this.con_Button_Reset_Flags.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.con_Button_Reset_Flags.Location = new System.Drawing.Point(255, 28);
this.con_Button_Reset_Flags.Location = new System.Drawing.Point(254, 25);
this.con_Button_Reset_Flags.Name = "con_Button_Reset_Flags";
this.con_Button_Reset_Flags.Size = new System.Drawing.Size(61, 36);
this.con_Button_Reset_Flags.Size = new System.Drawing.Size(61, 40);
this.con_Button_Reset_Flags.TabIndex = 26;
this.con_Button_Reset_Flags.Text = "Reset error flags";
this.con_Button_Reset_Flags.UseVisualStyleBackColor = true;