Class: Configs::Project::Texts::ChoiceConfig

Inherits:
Object
  • Object
show all
Defined in:
scripts/00021 ProjectConfig.rb

Overview

Configuration of choice box

Direct Known Subclasses

MessageConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

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_spacingInteger (readonly)

Get the border spacing

Returns:



178
179
180
# File 'scripts/00021 ProjectConfig.rb', line 178

def border_spacing
  @border_spacing
end

#color_mappingHash{ Integer => Integer } (readonly)

Get the color_mapping

Returns:



190
191
192
# File 'scripts/00021 ProjectConfig.rb', line 190

def color_mapping
  @color_mapping
end

#default_colorInteger (readonly)

Get the default color

Returns:



186
187
188
# File 'scripts/00021 ProjectConfig.rb', line 186

def default_color
  @default_color
end

#default_fontInteger (readonly)

Get the default font

Returns:



182
183
184
# File 'scripts/00021 ProjectConfig.rb', line 182

def default_font
  @default_font
end

#window_skinString? (readonly)

Get the window skin

Returns:



174
175
176
# File 'scripts/00021 ProjectConfig.rb', line 174

def window_skin
  @window_skin
end