Module: GamePlay::DisplayMessage
- Included in:
- Base
- Defined in:
- docs/4_Systems_004_Message.rb
Overview
Module responsive of adding the display message functionality to a class
Constant Summary collapse
- MESSAGE_ERROR =
Message the displays when a GamePlay scene has been initialized without message processing and try to display a message
'This interface has no MessageWindow, you cannot call display_message'
- MESSAGE_PROCESS_ERROR =
Error message when display_message is called from “itself”
'display_message was called inside display_message. Please fix your scene update.'
Instance Attribute Summary collapse
-
#message_window ⇒ UI::Message::Window?
readonly
The message window.
Instance Method Summary collapse
-
#can_display_message_be_called? ⇒ Boolean
Tell if the display_message function can be called.
-
#close_message_window { ... }
Force the message window to “close” (but does not update scene).
-
#display_message(message, start = 1, *choices, &block) ⇒ Integer?
Display a message with choice or not.
-
#display_message_and_wait(message, start = 1, *choices, &block) ⇒ Integer?
Display a message with choice or not.
-
#message_class ⇒ Class<UI::Message::Window>
Return the message class used.
-
#message_processing? ⇒ Boolean
Prevent the update to process if the message are still processing.
-
#message_visible ⇒ Boolean
Get the visibility of message.
-
#message_visible=(visible)
Set the visibility of message.
Instance Attribute Details
#message_window ⇒ UI::Message::Window? (readonly)
The message window
775 776 777 |
# File 'docs/4_Systems_004_Message.rb', line 775 def @message_window end |
Instance Method Details
#can_display_message_be_called? ⇒ Boolean
Tell if the display_message function can be called
782 783 |
# File 'docs/4_Systems_004_Message.rb', line 782 def end |
#close_message_window { ... }
Force the message window to “close” (but does not update scene)
786 787 |
# File 'docs/4_Systems_004_Message.rb', line 786 def end |
#display_message(message, start = 1, *choices, &block) ⇒ Integer?
Display a message with choice or not
806 807 |
# File 'docs/4_Systems_004_Message.rb', line 806 def (, start = 1, *choices, &block) end |
#display_message_and_wait(message, start = 1, *choices, &block) ⇒ Integer?
Display a message with choice or not. This method will wait the message window to disappear
814 815 |
# File 'docs/4_Systems_004_Message.rb', line 814 def (, start = 1, *choices, &block) end |
#message_class ⇒ Class<UI::Message::Window>
Return the message class used
790 791 |
# File 'docs/4_Systems_004_Message.rb', line 790 def end |
#message_processing? ⇒ Boolean
Prevent the update to process if the message are still processing
778 779 |
# File 'docs/4_Systems_004_Message.rb', line 778 def end |
#message_visible ⇒ Boolean
Get the visibility of message
798 799 |
# File 'docs/4_Systems_004_Message.rb', line 798 def end |
#message_visible=(visible)
Set the visibility of message
794 795 |
# File 'docs/4_Systems_004_Message.rb', line 794 def (visible) end |