Add swapping order of Owned Jokers (#258)
* swap Jokers * Hide score properly * add key_released to inputs triggering selection_grid process input * format code * Add suggestions and bug fixes from @MeirGavish * Add comment * format selection_grid * toto * format * format * Turned clang-format off for selection grid rows * revert reroll bug fix, already adressed * format selection_grid.c * Move conditions around in game.c * typo * Attempt at fixing braced initializer indent format --------- Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com> Co-authored-by: MeirGavish <meir.gavish@gmail.com>
This commit is contained in:
co-authored by
MathisMartin31
MeirGavish
parent
a82bd671de
commit
bf66f96844
@@ -15,14 +15,14 @@ typedef void (*RowOnSelectionChangedFunc)(SelectionGrid* selection_grid, int row
|
||||
typedef int (*RowGetSizeFunc)();
|
||||
// Called for any non-directional key hit
|
||||
// The key will not be passed, the function will have to check key_hit() etc. for the key it wants to check
|
||||
typedef void (*RowOnKeyHitFunc)(SelectionGrid* selection_grid, Selection* selection);
|
||||
typedef void (*RowOnKeyTransitFunc)(SelectionGrid* selection_grid, Selection* selection);
|
||||
|
||||
struct SelectionGridRow
|
||||
{
|
||||
int row_idx;
|
||||
RowGetSizeFunc get_size;
|
||||
RowOnSelectionChangedFunc on_selection_changed;
|
||||
RowOnKeyHitFunc on_key_hit;
|
||||
RowOnKeyTransitFunc on_key_transit;
|
||||
};
|
||||
|
||||
struct SelectionGrid
|
||||
|
||||
Reference in New Issue
Block a user