转至内容
商品 Card Hand Template 的媒体 1

描述

Video Overview

Orbital Market Link (for old Reviews/Questions)

The Card Hand widget handles displaying and manipulating an array of Card widgets.

It includes a dozen of settings to control how the cards are displayed to fit different games and requirements, and it's all made to be easily expanded or adapted to your game logic.

Cards can be:

  • Added/Removed

  • Moved around either by dragging with the mouse, or with keyboard or gamepad

  • Dragged out of the hand to activate them

This template is meant as a starting point for a card game to handle the player hand logic.

Patch notes:

July 10th 2024

  • Bugfix: The first card added after the hand is emptied was not interactable until another card is added

October 7th 2023

  • Improved cards display when there's only one or two cards in the hand

  • Fixed some inconsistencies in card angles and total hand width

  • Added a boolean parameter KeepStackOnLeft: If StackOnSides is enabled and there's no card hovered, it keeps on view the rightmost (latest) cards instead of the start of the hand

  • Reworked the cards positioning method to improve appearance when StackOnSides is enabled

  • Added a StackMessiness parameter to determine how scrumbled should the stacked cards be on the side

  • Added a boolean parameter to utilize the old positioning method if preferred.

June 19th 2023

Card Hand Widget:

  • A card is now unselected if the mouse moves outside of it

  • Added an option to determine if after using a card, the next card should be selected or not.

  • The cards now stick to the bottom of the CardHand widget bounds.

  • Added an ExtraYOffset variable to control the vertical position of the cards in the hand.

  • In situations where a dragged card would have been stuck out of place, like when moving the mouse too fast

outside the widget bounds or when exiting the viewport, the card is now unselected and goes back in the hand.

  • Fixed various crashes related to trying to initiate actions without a card selected.

  • Fixed a focus issue

Example HUD Widget:

  • Expanded the size of the CardHand widget in the ExampleHUD widget. The expanded area allows better tracking

of the dragged cards.

  • Added a slider to control the ExtraYOffset variable

包含格式