Class: Configs::Project::Texts::Font

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

Overview

Font configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(v) ⇒ Font

Returns a new instance of Font.



163
164
165
166
167
# File 'scripts/00021 ProjectConfig.rb', line 163

def initialize(v)
  @supports_pokemon_number = v[:isSupportsPokemonNumber]
  @ttf_files = v[:ttfFiles]
  @alt_sizes = v[:altSizes]
end

Instance Attribute Details

#alt_sizesArray<Hash> (readonly)

Get all the alt size the game uses

Returns:

  • (Array<Hash>)


161
162
163
# File 'scripts/00021 ProjectConfig.rb', line 161

def alt_sizes
  @alt_sizes
end

#supports_pokemon_numberBoolean (readonly)

Is the game supporting the pokemon number feature

Returns:

  • (Boolean)


153
154
155
# File 'scripts/00021 ProjectConfig.rb', line 153

def supports_pokemon_number
  @supports_pokemon_number
end

#ttf_filesArray<Hash> (readonly)

Get all the ttf files the game uses

Returns:

  • (Array<Hash>)


157
158
159
# File 'scripts/00021 ProjectConfig.rb', line 157

def ttf_files
  @ttf_files
end