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
-
#line_number_overwrite ⇒ Integer?
Overwrite the number of line for the current message.
-
#nameskin_overwrite ⇒ String?
Change the windowskin of the name.
-
#position_overwrite ⇒ Symbol, ...
Overwrite the message position for the current message.
-
#width_overwrite ⇒ Integer?
Overwrite the width of the window.
-
#windowskin_overwrite ⇒ String?
Change the windowskin of the window.
Instance Method Summary collapse
-
#initialize
Initialize the overwrites.
-
#reset_overwrites
Reset all the overwrite when the message has been shown.
Instance Attribute Details
#line_number_overwrite ⇒ Integer?
Returns 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_overwrite ⇒ String?
Returns 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_overwrite ⇒ Symbol, ...
Note:
Values can be : :top, :middle, :bottom, :left, :right, [x, y]
Returns 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_overwrite ⇒ Integer?
Returns 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_overwrite ⇒ String?
Returns 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 |