Disallow saving the game with an empty name field
This commit is contained in:
@@ -112,6 +112,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
}
|
||||
|
||||
var saveButton = panel.Get<ButtonWidget>("SAVE_BUTTON");
|
||||
saveButton.IsDisabled = () => string.IsNullOrWhiteSpace(saveTextField.Text);
|
||||
saveButton.OnClick = () => { Save(world); };
|
||||
saveButton.IsVisible = () => true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user