插件参考了 GodotExplorer/FontAwesome
简介:这个插件可以让你在你的游戏中使用 FontAwesome 5 的图标。
使用:将 addons 文件夹复制到你的工程根目录,添加节点时搜索 FontAwesome 即可(继承自 Label)
新增属性:
icon_size: 图标尺寸icon_type: 图标种类,有三种类型可选solid/regular/brands,每种类型下图标都不同,详见这里icon_name: 图标名称,如flag将对应
,更多图标名称请查看这里
这里的字体版本是
FontAwesome 5.12.0
如果你需要更新字体文件,你要先从这里更新
addons/FontAwesome5里的三个 .ttf 字体文件,还有从这里更新utils里的三个 .js 文件。然后运行utils里的 Lua 脚本以生成新的 Cheatsheet.gd 文件, 并用它覆盖addons/FontAwesome5里的同名文件。
Intro: This is a plugin that let you use FontAwesome 5 icons in your game.
How to use: Copy the addons folder to your godot project directory, and then add the FontAwesome node to your scene.
Properties:
icon_size: icon's size.icon_type: icon type,There are three different icon setsolid/regular/brands,for more details look this siteicon_name: icon name,for instanceflagcorrespond to
,go here to find more icon names.
The font's version in this repo is
5.12.0
You need to update the *.ttf file in
addons/FontAwesome5and *.js file inutilswhen you want update FontAwesome's fonts.Then run the lua script inutilsto generate a new Cheatsheet.gd file and copy it toaddons/FontAwesome5folder.