diff --git a/2022/11-setlist/deck.rb b/2022/11-setlist/deck.rb index f69130c..ee05185 100644 --- a/2022/11-setlist/deck.rb +++ b/2022/11-setlist/deck.rb @@ -1,12 +1,22 @@ require 'squib' require 'game_icons' -AUDIENCE = GameIcons.get('delapouite/person'). - recolor(fg: 'black', bg: 'white', fg_opacity: 1.0, bg_opacity: 0.0). - string -MUSIC = GameIcons.get('delapouite/musical-score'). - recolor(fg: 'black', bg: 'white', fg_opacity: 1.0, bg_opacity: 0.0). - string +module Icons + + def self.getIcon(name, color = 'black') + return GameIcons.get(name). + recolor(fg: color, bg: 'white', fg_opacity: 1.0, bg_opacity: 0.0). + string + end + + AUDIENCE = getIcon 'delapouite/person' + MUSIC = getIcon 'delapouite/musical-score' + + LOVE = getIcon 'skoll/hearts' + ANGER = getIcon 'skoll/fist' + JOY = getIcon 'lorc/delighted' + SAD = getIcon 'lorc/tear-tracks' +end VOLUMES = { "ppp" => 1,