Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rakugoteam/emojis-for-godot
Addon that allows to use Emojis in your Godot project
https://github.com/rakugoteam/emojis-for-godot
addon emoji godot-addon godot-engine
Last synced: 2 months ago
JSON representation
Addon that allows to use Emojis in your Godot project
- Host: GitHub
- URL: https://github.com/rakugoteam/emojis-for-godot
- Owner: rakugoteam
- License: mit
- Created: 2021-09-16T05:24:31.000Z (over 3 years ago)
- Default Branch: godot-4
- Last Pushed: 2024-03-16T17:40:33.000Z (10 months ago)
- Last Synced: 2024-03-17T17:51:20.248Z (10 months ago)
- Topics: addon, emoji, godot-addon, godot-engine
- Language: Python
- Homepage: https://rakugoteam.github.io/emojis-docs/
- Size: 13.5 MB
- Stars: 38
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![github-top-lang][lang] ![lic] ![emojis-lic]
# Emojis for Godot*This is Godot 4.x version if you what version for Godot 3.4+ check [godot-3] branch.*
![addon-in-action]
## Important! Upgrading from 2.0 to 2.1
As 2.1 version use font instead of texture atlas in doesn't need so many files.
So to Upgrade in correct way you should:
1. out side of godot
2. remove 2.0 version form *addons/* dir
3. put 2.1 version into *addons/* dir
4. happy using new addon version## Now compatible with emojis Unicode 15.1
Version 2.1 (Godot 4.x):
- is compatible with emojis Unicode 15.1
- uses [Google Noto Emojis Color font][noto-emoji]
- uses [json data generated using python][emoji-json]This addon provides the following nodes to use emojis in Godot:
- **EmojiIcon**: A node that displays an Emoji.
- **EmojiButton**: A node that displays an Emoji as a button.Version 2.x is rewritten to give you access to **EmojisDB** singleton for easier use of emojis anywhere in your project.
It's also adds **EmojiFinder** to the Godot's *Project > Tools* menu.
So you can find the emojis easily.![EmojiFinder Screen Shot][emoji-finder-screenshot]
## Using it with RichTextLabel
This is the example code of using emojis in RichTextLabel:
```gdscript
@tool
extends RichTextLabel@export_multiline
var text_with_emojis: String:
set(value):
if !is_node_ready():
returntext_with_emojis = value
bbcode_enabled = true
text = EmojisDB.parse_emojis(value)
get: return text_with_emojisfunc _ready() -> void:
if !Engine.is_editor_hint():
bbcode_enabled = true
text = EmojisDB.parse_emojis(text_with_emojis)
```This is the result of the above code:
![RichTextLabel Example Screen Shot][LabelWithEmojis-screenshot]
## Exporting
For emojis to work in exported projects, you need add `*.json` files to include files settings:
![include files settings][export-screenshot][lic]: https://img.shields.io/github/license/rakugoteam/Emojis-For-Godot?style=flat-square&label=📃%20License&
[lang]: https://img.shields.io/github/languages/top/rakugoteam/Emojis-For-Godot?style=flat-square
[emojis-lic]: https://img.shields.io/badge/license-CC0%201.0-orange.svg?style=flat-square&label=📃%20Emojis%20License&
[addon-in-action]:.assets/addon-in-action.png
[godot-3]:https://github.com/rakugoteam/Emojis-For-Godot/tree/godot-3
[noto-emoji]:https://github.com/googlefonts/noto-emoji/tree/main/png
[emoji-json]:https://github.com/rakugoteam/Emojis-For-Godot/tree/godot-4/addons/emojis-for-godot/emojis/gen_json.py
[emoji-finder-screenshot]:.assets/emoji-finder.png
[LabelWithEmojis-screenshot]:.assets/label-with-emojis.png
[export-screenshot]:.assets/export.png