summaryrefslogtreecommitdiff
path: root/include/digit_obj_util.h
blob: 5674f201f6a953807db47c039c03d66edd52aeb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef GUARD_DIGIT_OBJ_UTIL_H
#define GUARD_DIGIT_OBJ_UTIL_H

struct DigitObjUtilTemplate
{
    u8 strConvMode:2;
    u8 shape:2;
    u8 size:2;
    u8 priority:2;
    u8 oamCount;
    u8 xDelta;
    s16 x;
    s16 y;
    union
    {
        const struct SpriteSheet * uncompressed;
        const struct CompressedSpriteSheet * compressed;
    } spriteSheet;
    const struct SpritePalette * spritePal;
};

extern const u16 gUnknown_8479668[];
extern const u32 gUnknown_8479688[];
extern const u32 gUnknown_8479748[];

bool32 DigitObjUtil_Init(u32 count);
void DigitObjUtil_Free(void);
bool32 DigitObjUtil_CreatePrinter(u32 id, s32 num, const struct DigitObjUtilTemplate *template);
void DigitObjUtil_PrintNumOn(u32 id, s32 num);
void DigitObjUtil_DeletePrinter(u32 id);
void DigitObjUtil_HideOrShow(u32 id, bool32 hide);

#endif //GUARD_DIGIT_OBJ_UTIL_H