/// <summary>
    /// Send to the Modal Panel to set up the Buttons and Functions to call.
    /// </summary>
    public void confirmPosition(Vector3 origin_position)
    {
        this.origin_position = origin_position;
        player_canvas.SetActive(false);
        string question = "Would you like to maintain the " + adjusting_name + " positon (Ok) or discart (Cancel)?";

        modal_panel.Confirm(question, okFunction, cancelFunction);
    }
    /// <summary>
    /// Calls a modal panel to choose between save the current display settings configuration or not save.
    /// Cancel option means that the modifications will be lost only at the next execution.
    /// </summary>
    public void confirmSaveDisplay()
    {
        string question = "Would you like to save the Display Settings current configuration?";

        modal_panel.Confirm(question, okFunction, cancelFunction);
    }
예제 #3
0
 /// <summary>
 /// Send to the Modal Panel to set up the Buttons and Functions to call.
 /// </summary>
 public void confirmReturnToMain()
 {
     // Calls the Confirm function with: message to be shown, Ok assigned function, Cancel assigned function
     modal_panel.Confirm("All the unsaved progress will be lost. Do you want to go to Main Menu ?", okFunction, cancelFunction);
 }
예제 #4
0
    /// <summary>
    /// Send to the Modal Panel to set up the Buttons and Functions to call.
    /// </summary>
    public void confirmResetDisplay()
    {
        string question = "Would you like to reset all the Display settings?";

        modal_panel.Confirm(question, okFunction, cancelFunction);
    }
예제 #5
0
    /// <summary>
    /// Calls the modal panel and sets a string question.
    /// </summary>
    public void confirmRecenterMainView()
    {
        string question = "To recenter your view, place your head in the new position and press joystick button D. This operation can't be undone!";

        modal_panel.Confirm(question, okFunction, cancelFunction);
    }
 /// <summary>
 /// Send to the Modal Panel to set up the Buttons and Functions to call.
 /// </summary>
 public void confirmGame()
 {
     // Calls the Confirm function with: message to be shown, Ok assigned function, Cancel assigned function
     modal_panel.Confirm("Would you like to start a game with:\n" + Path.GetFileNameWithoutExtension(PlayerPrefs.GetString(GameFilesHandler.New_game)) + "?", ok_action, cancel_action);
 }