Exemplo n.º 1
0
    private void OnOldSaveLoaded(string saveName)
    {
        saveToBeLoaded = saveName;

        loadConfirmDialog.DialogText  = "This save is from an old version of Thrive and may be incompatible.\n";
        loadConfirmDialog.DialogText += "As Thrive is currently early in development ";
        loadConfirmDialog.DialogText += "save compatibility is not a priority.\n";
        loadConfirmDialog.DialogText += "You may report any issues you encounter, ";
        loadConfirmDialog.DialogText += "but they aren't the highest priority right now.\n";
        loadConfirmDialog.DialogText += "Do you want to try loading the save anyway?";
        loadConfirmDialog.PopupCenteredMinsize();
    }
Exemplo n.º 2
0
 private void OnDeletePressed(string saveName)
 {
     saveToBeDeleted = saveName;
     deleteConfirmDialog.DialogText =
         $"Deleting this save cannot be undone, are you sure you want to permanently delete {saveName}?";
     deleteConfirmDialog.PopupCenteredMinsize();
 }
Exemplo n.º 3
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.DialogText = string.Format(CultureInfo.CurrentCulture,
                                                       TranslationServer.Translate("SAVE_DELETE_WARNING"),
                                                       saveName);
        deleteConfirmDialog.PopupCenteredMinsize();
    }
Exemplo n.º 4
0
    private void OnDefaultsPressed()
    {
        GUICommon.Instance.PlayButtonPressSound();

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