Module: RgssDb::Strings::StrPrompts

Defined in:
lib/rgss_db/model/strings.rb

Overview

Strings used in user prompts

Constant Summary collapse

SUCCESS_TEXT =

Text shown when a prompt operation finishes successfully

Returns:

  • (String)
"Operation finished!"
CANCEL_TEXT =

Text shown when a prompt is stopped or cancelled

Returns:

  • (String)
"Cancelling operation..."
SPINNER_TASK_COMPLETED_TEXT =

Text shown on the spinner prompt when the task is completed

Returns:

  • (String)
"Done!"
PAUSE_ANY_KEYS =

Text shown on the pause prompt when requesting the user to press any key

Returns:

  • (String)
"Press any key to continue..."
PAUSE_ANY_KEYS_TIMEOUT =

Text shown on the pause prompt when requesting the user to press any key with a timeout

Returns:

  • (String)
"Press any key to continue... (resumes automatically in :countdown seconds)"
PAUSE_KEYS =

Text shown on the pause prompt when requesting the user to press specific keys

String contains a “%s” flag to insert the list of keys

Returns:

  • (String)
"Press %s to continue..."
PAUSE_KEYS_TIMEOUT =

Text shown on the pause prompt when requesting the user to press specific keys with a timeout

String contains a “%s” flag to insert the list of keys

Returns:

  • (String)
"Press %s to continue... (resumes automatically in :countdown seconds)"
CONFIRM_INPUT_TEXT =

Text shown on the confirmation prompt

Returns:

  • (String)
"Are you sure you want to continue?"
SELECT_INPUT_TEXT =

Text shown on the select and multi select prompts

Returns:

  • (String)
"What would you like to do?"
ASK_TIP_TEXT =

Text that could be used as a tip message for ask prompts

Returns:

  • (String)
<<~EOF
  Press ENTER to submit the current input

  The option may have a default value between parentheses that will be used
  if the input is left empty.
EOF
ASK_VALIDATION_FAIL_TEXT =

Text that could be used as a fail message when an ask prompt fails validation

Returns:

  • (String)
"The input is invalid!"
SELECT_TIP_TEXT =

Text that could be used as a tip message for select prompts

Returns:

  • (String)
<<~EOF
  Press ↑/↓ arrows to move the cursor
  Use SPACE or ENTER to select the current item
EOF
MULTI_SELECT_TIP_TEXT =

Text that could be used as a tip message for multi select prompts

Returns:

  • (String)
<<~EOF
  Press ↑/↓ arrows to move the cursor
  Use SPACE to select the current item
  Press CTRL + A and to select all items available
  You can also use CTRL + R to revert the current selection
  Press ENTER to finish selection
EOF