-
-
Notifications
You must be signed in to change notification settings - Fork 101
CardLibrary
Divided by Zer0 edited this page Mar 9, 2022
·
2 revisions
Extends: CardViewer < PanelContainer
This class is used to simply display all cards available in the game
export var icon_size: int = 15
The default embedded image size inside RichTextLabels
export var default_property_width: int = 150
The default embedded image size inside RichTextLabels The default width a card property should have in the card library Card Name is always set to take all leftover space
export var property_width_exceptions: Dictionary = {}
The default embedded image size inside RichTextLabels The default width a card property should have in the card library Card Name is always set to take all leftover space Each key in this dict is a card property, and each value is how wide the property for this label should be. Useful to limit the size of properties which are just single integers
func populate_available_cards() -> void
Populates the list of available cards, with all defined cards in the game