Class: Battle::Scene::Message

Inherits:
UI::Message::Window show all
Defined in:
docs/5_Battle_01_Scene.rb

Overview

Message Window of the Battle

Constant Summary collapse

MAX_WAIT =

Number of 60th of second to wait while message does not wait for user input

120
WINDOW_SKIN =

Default windowskin of the message

'message_box'

Constants included from UI::Message::Layout

UI::Message::Layout::NAME_SKIN, UI::Message::Layout::PAUSE_SKIN

Instance Attribute Summary collapse

Attributes included from PFM::Message::State

#auto_skip, #last_text, #stay_visible

Attributes included from UI::Message::Layout

#input_number_window

Attributes included from UI::Message::TemporaryOverwrites

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

Attributes inherited from LiteRGSS::Window

#__index__, #active, #back_opacity, #contents_opacity, #cursor_rect, #cursorskin, #height, #opacity, #ox, #oy, #pause, #pause_x, #pause_y, #pauseskin, #stretch, #viewport, #visible, #width, #window_builder, #windowskin, #x, #y, #z

Instance Method Summary collapse

Methods inherited from UI::Message::Window

#update

Methods included from PFM::Message::State

#at_end_of_line?, #done_drawing_message?, #load_next_instruction, #need_to_show_choice?, #need_to_show_message?, #need_to_show_number_input?, #need_to_wait_user_input?, #parse_and_show_new_message, #showing_message?

Methods included from PFM::Message::Parser

#convert_text_to_properties, #make_instructions, register_marker

Methods included from UI::Message::Draw

#process_big_text_marker, #process_color_marker, #process_marker, #process_picture_marker, #process_speed_marker, #process_style_marker, #process_wait_marker

Methods included from UI::Message::Layout

#apply_font, #can_sub_window_be_updated?, #current_layout, #dispose, #face_speaker_y, #generate_choice_window, #generate_input_number_window, #load_sub_layout, #parse_speaker_position, #reset_font, #show_city_image, #show_face, #show_gold_window, #show_name_window

Methods included from UI::Message::TemporaryOverwrites

#reset_overwrites

Methods inherited from Window

#simple_mouse_in?, #translate_mouse_coords

Methods inherited from LiteRGSS::Window

#lock, #locked?, #set_origin, #set_position, #set_size, #unlock, #update

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize ⇒ Message

Create a new window



259
260
# File 'docs/5_Battle_01_Scene.rb', line 259

def initialize(...)
end

Instance Attribute Details

#blocking ⇒ Boolean

If the message will wait user to validate the message forever

Returns:

  • (Boolean)


254
255
256
# File 'docs/5_Battle_01_Scene.rb', line 254

def blocking
  @blocking
end

#wait_input ⇒ Boolean

If the message wait for the user to press a key before skiping

Returns:

  • (Boolean)


257
258
259
# File 'docs/5_Battle_01_Scene.rb', line 257

def wait_input
  @wait_input
end

Instance Method Details

#create_skipper_wait_animation

Function that create the skipper wait animation



276
277
# File 'docs/5_Battle_01_Scene.rb', line 276

def create_skipper_wait_animation
end

#current_position ⇒ Symbol, Array

Note:

Always return :bottom if the battler interpreter is not running

Retrieve the current window position

Returns:

  • (Symbol, Array)


281
282
# File 'docs/5_Battle_01_Scene.rb', line 281

def current_position
end

#current_window_builder ⇒ Array

Retrieve the current window_builder

Returns:

  • (Array)


289
290
# File 'docs/5_Battle_01_Scene.rb', line 289

def current_window_builder
end

#current_windowskin ⇒ String

Battle Windowskin

Returns:



285
286
# File 'docs/5_Battle_01_Scene.rb', line 285

def current_windowskin
end

#default_horizontal_margin ⇒ Integer

Return the default horizontal margin

Returns:

  • (Integer)


298
299
# File 'docs/5_Battle_01_Scene.rb', line 298

def default_horizontal_margin
end

#default_vertical_margin ⇒ Integer

Return the default vertical margin

Returns:

  • (Integer)


302
303
# File 'docs/5_Battle_01_Scene.rb', line 302

def default_vertical_margin
end

#terminate_message

Terminate the message display



273
274
# File 'docs/5_Battle_01_Scene.rb', line 273

def terminate_message
end

#translate_color(color) ⇒ Integer

Translate the color according to the layout configuration

Parameters:

  • color (Integer) —

    color to translate

Returns:

  • (Integer) —

    translated color



294
295
# File 'docs/5_Battle_01_Scene.rb', line 294

def translate_color(color)
end

#update_wait_input_auto_skip ⇒ Boolean

Autoskip the wait input

Returns:

  • (Boolean)


270
271
# File 'docs/5_Battle_01_Scene.rb', line 270

def update_wait_input_auto_skip
end

#update_wait_input_skip ⇒ Boolean

Skip the update of wait input

Returns:

  • (Boolean) —

    if the update of wait input should be skipped



266
267
# File 'docs/5_Battle_01_Scene.rb', line 266

def update_wait_input_skip
end

#wait_user_input

Process the wait user input phase



262
263
# File 'docs/5_Battle_01_Scene.rb', line 262

def wait_user_input
end