Public Member Functions | |
void | CalculateCardMeasurements () |
void | UpdateCardStackOrigin (bool overstuffed_) |
void | SetStackType (DSStackType newStackType_) |
Vector3 | PilePositioning (int i_) |
Vector3 | TypicalStackPositioning (int i_) |
Vector3 | OverstuffedTightPositioning (int i_, int howManyStackedAtBeginning_) |
Vector3 | OverstuffedLoosePositioning (int i_) |
Properties | |
DSStackType | stackType [get] |
DSCardSpacingOverrideSettings | cardSpacingOverrideSettings [get] |
bool | alignToCenter [get] |
bool | reverseDirection [get] |
int | cardAmountUntilOverstuff [get] |
List< DSCard > | visibleShufflingCards [get, set] |
This script:
Note: All vector calculations here are in localSpace of _stack.cardManager.cardStackParent
|
inline |
This method updates data that will be used in Restack operations in DSRestacker. This will be / neads to be called in the following 2 scenerios:
|
inline |
Used in DSRestacker: Overstuffed is when there are enough cards in a stack that card spacing needs to be adjusted to fit all cards in the bounding box in a pleasing fashion.
This method returns overstuffed card positions for loose stacks, at the specified card order.
|
inline |
Used in DSRestacker: Overstuffed is when there are enough cards in a stack that card spacing needs to be adjusted to fit all cards in the bounding box in a pleasing fashion.
This method returns overstuffed card positions for tight stacks, at the specified card order.
|
inline |
Used in DSRestacker: This returns the correct position of a card in a pile stack, at the card order of i_.
|
inline |
Any time the stackType is updated, measurements need to be recalculated and a restack needs to happen. This method:
|
inline |
Used in DSRestacker: Returns the typical card positions, at the specified card order.
In CalculateCardMeasurements(), the card spacing value has already been updated before this is called.
"Typical" positions are non-overstuffed, and not centered.
|
inline |
Called in DSRestacker: This updates the cardStackOriginPoint coordinates for restack operations.
|
get |
Offsets card stack to be centered in the stack bounding box.
|
get |
This value determines if we need to adjust card positioning to accomodate for more cards.
When a stack has overtaken this limit, it is considered overstuffed.
Overstuffed stacks will adjust how they arrange cards in the following way.
The amount of cards until a stack is overstuffed is determined by the stack's "bounding box", defined by the DSCardManager.cardStackParent RectTransform dimensions.
|
get |
Allows the dev to customize which spacing values are overrided.
|
get |
Swaps the direction of the stack, moving the stack origin to the opposite end of the bounding box.
|
get |
DSStackType defines how a stack's cards should be arranged.
See DSEnums for explainations of the different stack types.
|
getset |
These cards will not be hidden during the shuffle animation. (see DSCard.ManageDefaultCardInStackVisibility())