Files
balatro-gba-chinese-jocker-…/include/deck_types.h
T
Geralt 1df8402900 [Feature] Implement seeded runs by adding a Seed selection menu (#482)
* initial commit

* wip

* WIP

* WIP

* clang format

* Choose Seed navigation mostly done

* seed input navigation done

* seed input done

* cleanup and clang format

* Implement base 10 to 36 conversions

* Enable seeded runs

* clang format

* show default deck sprite, name and description

* Rename Deck enum to DeckType

* Implement arbitrary 9-patch expand system

* Make 9-patch example smaller in the docs

* Improve NinePatchRect docs

* fix Deck back side sprite palette

* clang format

* Add last deck description

* clang format

* Fix 'Z' in seed input keyboard

* Fix rebase issue

* fix deck sprite not updating

* Documents static funcs in run_setup.c

* more documentation

* clang format

* Move Play button to the left in its row

* Tests WIP

* removing tests for random.h

* use the new StateMachine struct

* First wave of fixes

* Fix the 9-patch again

* Changed the base 36 logic so it's in big endian

* properly set end of base 36 string to '\0'

* typos

* fix cursor position after rolling a seed + fix random seed generation

* Make keyboard more intuitive to use

* static const var

* Address more comment from @ricfehr3

* clang format

* clang format

* clang format

* clang format

* clang format

* clang format

* clang format

* fix deck palette

* create the `DEF_SEED_KEYBOARD_BUTTON_OBJECT` macro

* Replace `expand_3x3` by a call to `expand_9-patch`

* clang format

* clang format

* clang format

* fix rebase iussue in state_machine.h

---------

Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com>
2026-06-02 00:06:37 -07:00

46 lines
1.1 KiB
C

/**
* @file deck_types.h
*
* @brief Functions related to the different types of Decks.
*/
#ifndef DECK_TYPES_H
#define DECK_TYPES_H
#include "graphic_utils.h"
#define DECK_SPRITES_PB 1
#define DECK_NAME_LENGTH 14 // 13 chars + '\0'
#define DECK_DESC_WIDTH DECK_NAME_LENGTH
#define DECK_DESC_HEIGHT 5
enum DeckType
{
DECK_TYPE_RED,
DECK_TYPE_BLUE,
DECK_TYPE_YELLOW,
DECK_TYPE_GREEN,
DECK_TYPE_BLACK,
DECK_TYPE_PAINTED,
DECK_TYPE_MAX
};
/**
* @brief Prints the Deck name string to the screen at the given position.
*
* @param deck Decktype we want the name of.
* @param pos screen position in pixels to print the name at.
*/
void print_deck_name(enum DeckType deck, BG_POINT pos);
/**
* @brief Prints the Deck description string to the screen at the given position.
*
* @param deck DeckType we want the description of.
* @param pos screen position in pixels of the top-left corner of the rectangle
* we'll print the Deck description into
*/
void print_deck_description(enum DeckType deck, BG_POINT pos);
#endif // DECK_TYPES_H