Class: Configs::Project::Texts::ChoiceConfig
- Defined in:
- scripts/00021 ProjectConfig.rb
Overview
Configuration of choice box
Direct Known Subclasses
Instance Attribute Summary collapse
-
#border_spacing ⇒ Integer
readonly
Get the border spacing.
-
#color_mapping ⇒ Hash{ Integer => Integer }
readonly
Get the color_mapping.
-
#default_color ⇒ Integer
readonly
Get the default color.
-
#default_font ⇒ Integer
readonly
Get the default font.
-
#window_skin ⇒ String?
readonly
Get the window skin.
Instance Method Summary collapse
-
#initialize(v) ⇒ ChoiceConfig
constructor
A new instance of ChoiceConfig.
Constructor Details
#initialize(v) ⇒ ChoiceConfig
Returns a new instance of ChoiceConfig.
192 193 194 195 196 197 198 |
# File 'scripts/00021 ProjectConfig.rb', line 192 def initialize(v) @window_skin = v[:windowSkin] @border_spacing = v[:borderSpacing] @default_font = v[:defaultFont] @default_color = v[:defaultColor] @color_mapping = v[:colorMapping].transform_keys { |k| k.to_s.to_i } end |
Instance Attribute Details
#border_spacing ⇒ Integer (readonly)
Get the border spacing
178 179 180 |
# File 'scripts/00021 ProjectConfig.rb', line 178 def border_spacing @border_spacing end |
#color_mapping ⇒ Hash{ Integer => Integer } (readonly)
Get the color_mapping
190 191 192 |
# File 'scripts/00021 ProjectConfig.rb', line 190 def color_mapping @color_mapping end |
#default_color ⇒ Integer (readonly)
Get the default color
186 187 188 |
# File 'scripts/00021 ProjectConfig.rb', line 186 def default_color @default_color end |
#default_font ⇒ Integer (readonly)
Get the default font
182 183 184 |
# File 'scripts/00021 ProjectConfig.rb', line 182 def default_font @default_font end |
#window_skin ⇒ String? (readonly)
Get the window skin
174 175 176 |
# File 'scripts/00021 ProjectConfig.rb', line 174 def window_skin @window_skin end |