Exemplo n.º 1
0
    private void OnDeletePressed(string saveName)
    {
        GUICommon.Instance.PlayButtonPressSound();

        saveToBeDeleted = saveName;

        // Deleting this save cannot be undone, are you sure you want to permanently delete {0}?
        deleteConfirmDialog.GetNode <Label>("DialogText").Text = string.Format(CultureInfo.CurrentCulture,
                                                                               TranslationServer.Translate("SAVE_DELETE_WARNING"),
                                                                               saveName);
        deleteConfirmDialog.PopupCenteredShrink();
    }
Exemplo n.º 2
0
    private void SaveButtonPressed()
    {
        GUICommon.Instance.PlayButtonPressSound();

        var name = GetSaveName();

        if (FileHelpers.Exists(PathUtils.Join(Constants.SAVE_FOLDER, name)))
        {
            // The chosen filename ({0}) already exists. Overwrite?
            overwriteConfirm.GetNode <Label>("DialogText").Text = string.Format(CultureInfo.CurrentCulture,
                                                                                TranslationServer.Translate("THE_CHOSEN_FILENAME_ALREADY_EXISTS"),
                                                                                name);
            overwriteConfirm.PopupCenteredShrink();
        }
        else
        {
            OnConfirmSaveName();
        }
    }
Exemplo n.º 3
0
    private void OnDefaultsPressed()
    {
        GUICommon.Instance.PlayButtonPressSound();

        defaultsConfirmationBox.PopupCenteredShrink();
    }
Exemplo n.º 4
0
 private void OnInvalidLoaded(string saveName)
 {
     saveToBeLoaded = saveName;
     loadInvalidConfirmDialog.PopupCenteredShrink();
 }
Exemplo n.º 5
0
 private void OnNewSaveLoaded(string saveName)
 {
     saveToBeLoaded = saveName;
     loadNewerConfirmDialog.PopupCenteredShrink();
 }