Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FontAwesome.gd should define a class_name #2

Open
asciifaceman opened this issue Oct 30, 2023 · 0 comments
Open

FontAwesome.gd should define a class_name #2

asciifaceman opened this issue Oct 30, 2023 · 0 comments

Comments

@asciifaceman
Copy link

@tool
extends Label
class_name FontAwesome

@export_category("FontAwesome")
@export_range(1, 16384) var icon_size: int = 16: set = set_icon_size
@export_enum("solid", "regular", "brands") var icon_type: String = "solid": set = set_icon_type
@export var icon_name: String = "circle-question": set = set_icon_name

This would allow for use cases such as

@onready var ico: FontAwesome = get_node("icon")

func _set_icon() -> void:
    ico.icon_name = "face-sad-cry"
LetterN added a commit that referenced this issue Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant