Merge pull request #10733 from abcdefg30/leaveEditor
Fix the misleading wording of the confirm dialogs
This commit is contained in:
@@ -317,7 +317,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (after != null)
|
if (after != null)
|
||||||
after(newUid);
|
after(newUid);
|
||||||
},
|
},
|
||||||
confirmText: "Delete");
|
confirmText: "Delete",
|
||||||
|
onCancel: () => { });
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteAllMaps(string[] maps, Action<string> after)
|
void DeleteAllMaps(string[] maps, Action<string> after)
|
||||||
@@ -331,7 +332,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (after != null)
|
if (after != null)
|
||||||
after(WidgetUtils.ChooseInitialMap(null));
|
after(WidgetUtils.ChooseInitialMap(null));
|
||||||
},
|
},
|
||||||
confirmText: "Delete");
|
confirmText: "Delete",
|
||||||
|
onCancel: () => { });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -410,7 +410,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (after != null)
|
if (after != null)
|
||||||
after.Invoke();
|
after.Invoke();
|
||||||
},
|
},
|
||||||
confirmText: "Delete");
|
confirmText: "Delete",
|
||||||
|
onCancel: () => { });
|
||||||
};
|
};
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -450,7 +451,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
if (selectedReplay == null)
|
if (selectedReplay == null)
|
||||||
SelectFirstVisibleReplay();
|
SelectFirstVisibleReplay();
|
||||||
},
|
},
|
||||||
confirmText: "Delete All");
|
confirmText: "Delete All",
|
||||||
|
onCancel: () => { });
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ Container@CONFIRM_PROMPT:
|
|||||||
Y: 89
|
Y: 89
|
||||||
Width: 140
|
Width: 140
|
||||||
Height: 35
|
Height: 35
|
||||||
Text: Abort
|
Text: Confirm
|
||||||
Button@OTHER_BUTTON:
|
Button@OTHER_BUTTON:
|
||||||
Key: r
|
Key: r
|
||||||
X: 210
|
X: 210
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ Background@CONFIRM_PROMPT:
|
|||||||
Y: PARENT_BOTTOM - 45
|
Y: PARENT_BOTTOM - 45
|
||||||
Width: 160
|
Width: 160
|
||||||
Height: 25
|
Height: 25
|
||||||
Text: Abort
|
Text: Confirm
|
||||||
Font: Bold
|
Font: Bold
|
||||||
Key: return
|
Key: return
|
||||||
Button@OTHER_BUTTON:
|
Button@OTHER_BUTTON:
|
||||||
|
|||||||
Reference in New Issue
Block a user