Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rakugoteam/godot-material-icons
- Owner: rakugoteam
- License: mit
- Created: 2021-09-04T14:45:13.000Z (over 3 years ago)
- Default Branch: godot-4
- Last Pushed: 2024-03-20T18:00:47.000Z (10 months ago)
- Last Synced: 2024-03-21T19:07:40.124Z (10 months ago)
- Topics: addon, godot-addon, godot-engine, icon-font, icons, material-design
- Language: CSS
- Homepage:
- Size: 1.99 MB
- Stars: 37
- Watchers: 4
- Forks: 3
- 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] ![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