Class: Configs::Project::Texts::MessageConfig
- Inherits:
-
ChoiceConfig
- Object
- ChoiceConfig
- Configs::Project::Texts::MessageConfig
- Defined in:
- scripts/00021 ProjectConfig.rb
Overview
Configuration of messages boxes
Instance Attribute Summary collapse
-
#line_count ⇒ Integer
readonly
Get the number of lines the message has.
-
#name_window_skin ⇒ String?
readonly
Get the window skin of the name box.
Attributes inherited from ChoiceConfig
#border_spacing, #color_mapping, #default_color, #default_font, #window_skin
Instance Method Summary collapse
-
#initialize(v) ⇒ MessageConfig
constructor
A new instance of MessageConfig.
Constructor Details
#initialize(v) ⇒ MessageConfig
Returns a new instance of MessageConfig.
211 212 213 214 215 |
# File 'scripts/00021 ProjectConfig.rb', line 211 def initialize(v) super(v) @name_window_skin = v[:nameWindowSkin] @line_count = v[:lineCount] end |
Instance Attribute Details
#line_count ⇒ Integer (readonly)
Get the number of lines the message has
209 210 211 |
# File 'scripts/00021 ProjectConfig.rb', line 209 def line_count @line_count end |
#name_window_skin ⇒ String? (readonly)
Get the window skin of the name box
205 206 207 |
# File 'scripts/00021 ProjectConfig.rb', line 205 def name_window_skin @name_window_skin end |