Ejemplo n.º 1
0
 /// <summary>
 /// Opens a modal window to show the adjust score instructions.
 /// </summary>
 public void notifyAdjustPosition()
 {
     if (toggle_button.GetComponent <Toggle>().isOn)
     {
         string message = "Adjust the position of the " + adjusting_name + " using the movement commands on the X, Y and Z axes. Press the MENU joystick button to finish.";
         modal_panel.Notify(message, okFunction);
     }
     else
     {
         string message = "Can't adjust " + adjusting_name + ".\nThe object display needs to be visible to be adjusted.";
         modal_panel.Notify(message, noOkFunction);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Closes the Input/Keyboard window and
 /// opens a modal window to show the save file status.
 /// </summary>
 /// <param name="message">Status message.</param>
 public void notifySave(string message)
 {
     input_panel.GetComponent <InputFieldReset>().resetInputField();
     keyboard.GetComponent <KeyboardReset>().resetKeyboard();
     input_panel.SetActive(false);
     keyboard.SetActive(false);
     modal_panel.Notify(message, okFunction);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Opens a modal window to show the removed file status.
 /// </summary>
 /// <param name="message">Status message.</param>
 public void notifyRemove(string message)
 {
     modal_panel.Notify(message, okFunction);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Opens a modal window to show the overwrite file status.
 /// </summary>
 /// <param name="message">Status message.</param>
 public void notifyOverwrite(string message)
 {
     modal_panel.Notify(message, okFunction);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Closes the menu panel that called the notification and
 /// opens a modal window to show an error in save files limit.
 /// </summary>
 /// <param name="message">Error message.</param>
 public void notifySaveFilesLimit(string message)
 {
     next_panel.SetActive(false);
     modal_panel.Notify(message, okFunction);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Opens a modal window to show the new game file status.
 /// </summary>
 /// <param name="message">Status message.</param>
 public void notifyInvalid(string message)
 {
     modal_panel.Notify(message, okFunction);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Closes the Input/Keyboard window and
 /// opens a modal window to show an error in save name process.
 /// </summary>
 /// <param name="message">Error message.</param>
 public void notifySaveNameError(string message)
 {
     input_panel.SetActive(false);
     keyboard.SetActive(false);
     modal_panel.Notify(message, okFunction);
 }
    /// <summary>
    /// Opens a modal window to show the joystick absence notifucation.
    /// </summary>
    public void notifyJoystickAbsence()
    {
        string message = "Couldn't find a joystick. Please connect one and click OK to continue.";

        modal_panel.Notify(message, okFunction);
    }