Module: UI::Message::Layout
Overview
Module defining the Message layout
Constant Summary collapse
- PAUSE_SKIN =
Name of the pause skin in Graphics/Windowskins/
'Pause2'- NAME_SKIN =
Windowskin for the name window
'message'
Instance Attribute Summary collapse
-
#input_number_window ⇒ UI::InputNumber
Attribute that holds the UI::InputNumber object.
Attributes included from TemporaryOverwrites
#line_number_overwrite, #nameskin_overwrite, #position_overwrite, #width_overwrite, #windowskin_overwrite
Instance Method Summary collapse
-
#apply_font(font_id)
Apply a custom font to the message text.
-
#can_sub_window_be_updated? ⇒ Boolean
Function that test if sub window can be updated (choice / number).
-
#current_layout ⇒ Configs::Project::Texts::MessageConfig
Retrieve the current layout configuration based on the scene.
-
#dispose(with_viewport: false)
Dispose the layout.
-
#face_speaker_y ⇒ Integer
Return the face_speaker y position.
-
#generate_choice_window
Generate the choice window.
-
#generate_input_number_window
Generate the number input window.
-
#initialize(*args, scene)
Initialize the states.
-
#load_sub_layout
Load the sub layout based on properties.
-
#parse_speaker_position(position) ⇒ Integer
Function that translate the position to a coordinate.
-
#reset_font
Reset the message font to the default (from Configs.texts).
-
#show_city_image
Show the city image.
-
#show_face(face)
Show a face.
-
#show_gold_window
Show a window that tells the player how much money he got.
-
#show_name_window
Show the name window.
Methods included from TemporaryOverwrites
Instance Attribute Details
#input_number_window ⇒ UI::InputNumber
Attribute that holds the UI::InputNumber object
456 457 458 |
# File 'docs/4_Systems_004_Message.rb', line 456 def input_number_window @input_number_window end |
Instance Method Details
#apply_font(font_id)
Apply a custom font to the message text
554 555 |
# File 'docs/4_Systems_004_Message.rb', line 554 def apply_font(font_id) end |
#can_sub_window_be_updated? ⇒ Boolean
Function that test if sub window can be updated (choice / number)
571 572 |
# File 'docs/4_Systems_004_Message.rb', line 571 def can_sub_window_be_updated? end |
#current_layout ⇒ Configs::Project::Texts::MessageConfig
Retrieve the current layout configuration based on the scene
472 473 |
# File 'docs/4_Systems_004_Message.rb', line 472 def current_layout end |
#dispose(with_viewport: false)
Dispose the layout
476 477 |
# File 'docs/4_Systems_004_Message.rb', line 476 def dispose(with_viewport: false) end |
#face_speaker_y ⇒ Integer
Return the face_speaker y position
590 591 |
# File 'docs/4_Systems_004_Message.rb', line 590 def face_speaker_y end |
#generate_choice_window
Generate the choice window
561 562 |
# File 'docs/4_Systems_004_Message.rb', line 561 def generate_choice_window end |
#generate_input_number_window
Generate the number input window
564 565 |
# File 'docs/4_Systems_004_Message.rb', line 564 def generate_input_number_window end |
#initialize(*args, scene)
Initialize the states
468 469 |
# File 'docs/4_Systems_004_Message.rb', line 468 def initialize(*args, scene) end |
#load_sub_layout
Load the sub layout based on properties
593 594 |
# File 'docs/4_Systems_004_Message.rb', line 593 def load_sub_layout end |
#parse_speaker_position(position) ⇒ Integer
Function that translate the position to a coordinate
586 587 |
# File 'docs/4_Systems_004_Message.rb', line 586 def parse_speaker_position(position) end |
#reset_font
Reset the message font to the default (from Configs.texts)
557 558 |
# File 'docs/4_Systems_004_Message.rb', line 557 def reset_font end |
#show_city_image
Show the city image
577 578 |
# File 'docs/4_Systems_004_Message.rb', line 577 def show_city_image end |
#show_face(face)
Show a face
581 582 |
# File 'docs/4_Systems_004_Message.rb', line 581 def show_face(face) end |
#show_gold_window
Show a window that tells the player how much money he got
567 568 |
# File 'docs/4_Systems_004_Message.rb', line 567 def show_gold_window end |
#show_name_window
Show the name window
574 575 |
# File 'docs/4_Systems_004_Message.rb', line 574 def show_name_window end |