This custom code hook is part of the Website plugin.
You can add dynamic CSS to the big square character icons that appear in shared scene logs. For example, if you want characters from Faction A to receive a blue hue to their icon while Faction B gets a red hue.
Custom icon classes are specified in the file aresmush/plugins/website/custom_icon_classes.rb.
Just edit the custom_icon_classes method to figure out the classes based on the character’s demographics/groups/etc. For example:
def self.custom_icon_classes(char)
return "" if !char
char.group("Faction") == "Navy" ? "icon-navy" : "icon-marines"
end
You can then style these classes in your custom CSS.