Module: UI::Message::Layout

Includes:
TemporaryOverwrites
Included in:
Window
Defined in:
docs/4_Systems_004_Message.rb

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

Attributes included from TemporaryOverwrites

#line_number_overwrite, #nameskin_overwrite, #position_overwrite, #width_overwrite, #windowskin_overwrite

Instance Method Summary collapse

Methods included from TemporaryOverwrites

#reset_overwrites

Instance Attribute Details

#input_number_window ⇒ UI::InputNumber

Attribute that holds the UI::InputNumber object

Returns:



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

Parameters:

  • font_id (Integer) —

    font ID defined in Studio



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)

Returns:

  • (Boolean)


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

Parameters:

  • with_viewport (Boolean) (defaults to: false) —

    tell to also dispose the viewport of 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

Returns:

  • (Integer)


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

Parameters:

  • args (Array<Viewport>) —

    arguments to forward to parents

  • scene (GamePlay::Base) —

    scene holding this message instance



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

Parameters:

  • position (Integer) —

    position given by the maker

Returns:

  • (Integer) —

    the x position



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

Parameters:



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