Skip to content

CardLibrary

Divided by Zer0 edited this page Mar 9, 2022 · 2 revisions

CardLibrary

Extends: CardViewer < PanelContainer

Description

This class is used to simply display all cards available in the game

Property Descriptions

icon_size

export var icon_size: int = 15

The default embedded image size inside RichTextLabels

default_property_width

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

property_width_exceptions

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

Method Descriptions

populate_available_cards

func populate_available_cards() -> void

Populates the list of available cards, with all defined cards in the game

Clone this wiki locally