Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rakugoteam/godot-material-icons

Templarian's Material Design Icons for Godot
https://github.com/rakugoteam/godot-material-icons

addon godot-addon godot-engine icon-font icons material-design

Last synced: 2 months ago
JSON representation

Templarian's Material Design Icons for Godot

Awesome Lists containing this project

README

        

![github-top-lang][lang] ![lic] ![lic-font]

# MaterialIcons for Godot

[*Templarian's Material-Design-Icons*](https://github.com/templarian/MaterialDesign)
is a collection of icons for the [Material Design](https://material.io/) specification.

![](.assets/addon-in-action.png)

Now compatible with both Godot 3.4+ (version 1.x) and 4.0+ (version 2.x).

This addon provides the following nodes to use the icons in Godot:
- **MaterialIcon**: A node that displays an icon from the Material Design Icons collection.
- **MaterialButton**: A node that displays an icon from the Material Design Icons collection as a button (without label).

Version 2.0 is rewritten to give you access to **MaterialIconsDB** singleton for easier use of icons anywhere in your project.

It's also adds **IconsFinder** to the Godot's **Tools** menu.

![](.assets/where-in-menu.png)

So you can find the icons easily.

![IconsFinder Screen Shot](.assets/icon-finder.png)

## Using it with RichTextLabel
From version 2.0 you can use the icons in RichTextLabel.

![](.assets/label-with-icon.png)

```gdscript
@tool
extends RichTextLabel

@export_multiline
var text_with_icons : String:
set(value):
text_with_icons = value
bbcode_enabled = true
text = MaterialIconsDB.parse_icons(value)

get: return text_with_icons

func _ready():
bbcode_enabled = true
text = MaterialIconsDB.parse_icons(text_with_icons)
```

## Exporting
For emojis to work in exported projects, you need add `*.json` files to include files settings:
![include files settings](.assets/export.png)

[lic]: https://img.shields.io/github/license/rakugoteam/Godot-Material-Icons?style=flat-square&label=📃%20License&
[lang]: https://img.shields.io/github/languages/top/rakugoteam/Godot-Material-Icons?style=flat-square
[lic-font]:https://img.shields.io/static/v1.svg?label=📜%20Font%20License&message=Pictogrammers%20Free%20License&color=informational&style=flat-square