Class: CapicuaGen::Balthazar::AndyIcLauncherFeature

Inherits:
TemplateFeature
  • Object
show all
Includes:
CapicuaGen, CapicuaGen::Balthazar
Defined in:
lib/CapicuaGenBalthazar/GUI/AndyIcLauncher/Source/andy_ic_launcher_feature.rb

Overview

Caracteristica generadora para crear los iconos de una aplicación Android

Instance Method Summary collapse

Constructor Details

#initialize(values = {}) ⇒ AndyIcLauncherFeature

Inicializa la caracteristica



39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/CapicuaGenBalthazar/GUI/AndyIcLauncher/Source/andy_ic_launcher_feature.rb', line 39

def initialize(values= {})
  super(values)

  # Configuro los tipos si estos no han sido configurados previamente

  self.types= [:catalog] if self.types.blank?

  set_template('ic_launcher_mipmap-xhdpi', Template.new(:file => 'ic_launcher_mipmap-xhdpi.png'))
  set_template('ic_launcher_mipmap-xxhdpi', Template.new(:file => 'ic_launcher_mipmap-xxhdpi.png'))
  set_template('ic_launcher_mipmap-xxxhdpi', Template.new(:file => 'ic_launcher_mipmap-xxxhdpi.png'))
  set_template('ic_launcher_mipmap-hdpi', Template.new(:file => 'ic_launcher_mipmap-hdpi.png'))
  set_template('ic_launcher_mipmap-mdpi', Template.new(:file => 'ic_launcher_mipmap-mdpi.png'))


end

Instance Method Details

#configure_template_targetsObject

Configura los objetivos de las platillas (despues de establecer el generador)



55
56
57
58
59
60
61
62
63
# File 'lib/CapicuaGenBalthazar/GUI/AndyIcLauncher/Source/andy_ic_launcher_feature.rb', line 55

def configure_template_targets

  set_template_target('ic_launcher_mipmap-mdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('mdpi', 'ic_launcher.png'), :copy_only => true))
  set_template_target('ic_launcher_mipmap-hdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('hdpi', 'ic_launcher.png'), :copy_only => true))
  set_template_target('ic_launcher_mipmap-xhdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('xhdpi', 'ic_launcher.png'), :copy_only => true))
  set_template_target('ic_launcher_mipmap-xxhdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('xxhdpi', 'ic_launcher.png'), :copy_only => true))
  set_template_target('ic_launcher_mipmap-xxxhdpi', TemplateTarget.new(:out_file => get_mipmap_out_file('xxxhdpi', 'ic_launcher.png'), :copy_only => true))

end