DeckStacker v1.0
A card manager plugin for Unity games.
 
Loading...
Searching...
No Matches
DeckStacker.DSCardSelector Class Reference
Inheritance diagram for DeckStacker.DSCardSelector:

Public Member Functions

void ToggleSelect (string tintKey_)
 
void ToggleSelect ()
 

Properties

string defaultSelectedTintKey [get, set]
 
bool selected [get]
 

Detailed Description

This script handles card selection behavior and appearance.

Some basic selection code is provided that does the following:

  • Tints the card when selected
  • Triggers an offset of the card when selected
  • Records the card in the DSRegistry.selectedCards list

Should be attached to a DSCard prefab.

Member Function Documentation

◆ ToggleSelect() [1/2]

void DeckStacker.DSCardSelector.ToggleSelect ( )
inline

This overload is for using the default tint key, set in this prefab's inspector.

◆ ToggleSelect() [2/2]

void DeckStacker.DSCardSelector.ToggleSelect ( string tintKey_)
inline

Selecting single or multiple cards is a standard thing you would want to do in a card game.

By default, when a card is selected, it triggers a position and/or scale offset.

Property Documentation

◆ defaultSelectedTintKey

string DeckStacker.DSCardSelector.defaultSelectedTintKey
getset

The tint key that this card uses when selected. This key should match one of the keys in the cardTintList, of the "DeckStacker Card Tint Settings" asset.

◆ selected

bool DeckStacker.DSCardSelector.selected
get

Returns whether the card is recorded as selected by DSRegistry.


The documentation for this class was generated from the following file: