Skip to content

Tutorial: Creating new emoji

CylonicRaider edited this page Aug 8, 2015 · 1 revision

Creating new emoji

  1. Create the actual emoji file with your favorite means. Square SVG's with properly set viewBox'es are highly recommended, I have not checked if other formats work.

  2. Save it in client/res/emoji/ under an appropriate file name.

  3. Edit client/lib/emoji.js:

    index[name] = filename
    

    ...Where name is the name of the emoji to use, and filename is the filename in client/res/emoji/ without the extension. For example, the entry for the emoji euphoria with the file euphoria.svg would look like that:

    index["euphoria"] = "euphoria"
    
  4. Optional: Aliases can be added by copying values in the index object from one key to another, and optionally removing the entry for the former key; for example, renaming euphoria to euphoria2 would look like that:

    index["euphoria2"] = index["euphoria"]
    delete index["euphoria"]
    
  5. Save the file, and update the client data (docker-compose run frontend in the project directory).

  6. Done.

Clone this wiki locally