Icon setup
This commit is contained in:
parent
2aa09e4fe9
commit
4debce853b
@ -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).
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user