TCGTCG Card Shop Wiki
In-game picture of Question Mark from TCG Card Shop Simulator, used to illustrate The search that picks a card.
Picture taken from the game to identify this item; it remains the property of the developer.

Decks and the card game · TCG Card Shop Simulator · read from a local copy

The search that picks a card

The search has a screen of its own with a canvas group and separate parents for the top and the bottom of the row.

Choosing cards in TCG Card Shop Simulator runs through a search with a screen of its own: a scrolling row of cards, a list of what is selected, an empty-slot state and a message for a search that matches nothing valid.

What the game establishes

In play

Picking a card is a screen rather than a drag. The game keeps a search screen of its own, and it is built from a canvas group with separate parents for the top and the bottom of the row, which is why cards can be presented in a strip rather than a list of names.

What is on show is kept in lists. There is a list of the cards being shown by the search and a further list of those currently active, so the screen knows what is on it rather than reading it back off the objects each time.

What is selected is kept apart. The selected cards have a list of their own, and their displays are moved to a locator as they are chosen, which is why a picked card slides into place instead of jumping.

Selection runs on data, not on pictures. The search carries a list of all card data indices, a list of the ones that are valid for this search and a list of the ones that have been selected, which is how a card can be chosen before anything is drawn.

The row is checked at both ends. The slider's distance is checked on the left and on the right, so the row knows when to stop moving rather than scrolling past its own ends.

It scrolls like a list. There is a current scroll index, a position, a lowest position and a speed for a pad, which is why the same row works with a mouse wheel and with a stick.

An empty search says so. There is a message for a search with no valid card selected, and a list of empty slots for the search, so a failed search is shown rather than looking broken.

What this entry does not tell you: how many cards a search can show, how it decides what is valid, or how far the row scrolls. We have not verified those numbers, so we do not print them.

Related

Version and sources

A local copy of the game, read only. Identifiers are listed on the technical reference pages; nothing here is estimated. Documented build: no version stated by this build.