Skip to content

DBDeckCardObject

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

DBDeckCardObject

Extends: HBoxContainer

Description

An object displaying a card summary in the Deckbuilder's deck cards area and providing controls to adjust their quantity..

Property Descriptions

quantity

var quantity: int

The quantity of a specific card in the deck. Placed in a label

card_name

var card_name: String

The quantity of a specific card in the deck. Placed in a label The card name which is displayed in the summary

Method Descriptions

setup

func setup(_card_name: String, count: int) -> var

This is used to prepare the values of this object

set_quantity

func set_quantity(value) -> void

Updates the Quantity label and variable

Signals

  • signal quantity_changed(value): Sent when the user changes a card quantity directly from the deck area.
Clone this wiki locally