Module: UI::Message::TemporaryOverwrites

Included in:
Layout
Defined in:
scripts/01450 Systems/00004 Message/00002 UI/00001 TemporaryOverwrites.rb

Overview

Module implementing the overwrite functionality

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#line_number_overwriteInteger?

Returns Overwrite the number of line for the current message.

Returns:

  • (Integer, nil)

    Overwrite the number of line for the current message



14
15
16
# File 'scripts/01450 Systems/00004 Message/00002 UI/00001 TemporaryOverwrites.rb', line 14

def line_number_overwrite
  @line_number_overwrite
end

#nameskin_overwriteString?

Returns Change the windowskin of the name.

Returns:

  • (String, nil)

    Change the windowskin of the name



12
13
14
# File 'scripts/01450 Systems/00004 Message/00002 UI/00001 TemporaryOverwrites.rb', line 12

def nameskin_overwrite
  @nameskin_overwrite
end

#position_overwriteSymbol, ...

Note:

Values can be : :top, :middle, :bottom, :left, :right, [x, y]

Returns Overwrite the message position for the current message.

Returns:

  • (Symbol, Array, nil)

    Overwrite the message position for the current message



8
9
10
# File 'scripts/01450 Systems/00004 Message/00002 UI/00001 TemporaryOverwrites.rb', line 8

def position_overwrite
  @position_overwrite
end

#width_overwriteInteger?

Returns Overwrite the width of the window.

Returns:

  • (Integer, nil)

    Overwrite the width of the window



16
17
18
# File 'scripts/01450 Systems/00004 Message/00002 UI/00001 TemporaryOverwrites.rb', line 16

def width_overwrite
  @width_overwrite
end

#windowskin_overwriteString?

Returns Change the windowskin of the window.

Returns:

  • (String, nil)

    Change the windowskin of the window



10
11
12
# File 'scripts/01450 Systems/00004 Message/00002 UI/00001 TemporaryOverwrites.rb', line 10

def windowskin_overwrite
  @windowskin_overwrite
end

Instance Method Details

#initialize

Initialize the overwrites



19
20
21
22
# File 'scripts/01450 Systems/00004 Message/00002 UI/00001 TemporaryOverwrites.rb', line 19

def initialize(...)
  reset_overwrites
  super(...) # Forward any arguments to original super ;)
end

#reset_overwrites

Reset all the overwrite when the message has been shown



25
26
27
28
# File 'scripts/01450 Systems/00004 Message/00002 UI/00001 TemporaryOverwrites.rb', line 25

def reset_overwrites
  @position_overwrite = @windowskin_overwrite = @nameskin_overwrite = nil
  @line_number_overwrite = @width_overwrite = nil
end