Format templates in wallclock.c

This commit is contained in:
Slawter666
2018-09-02 16:10:06 +01:00
parent c9db9b7a59
commit c1b3dfa15a
2 changed files with 76 additions and 38 deletions
+10 -1
View File
@@ -844,7 +844,16 @@ static const u8 sUnknown_08339CD2[] =
0x05, 0x03, 0x03, 0x03, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, 0x02 0x05, 0x03, 0x03, 0x03, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, 0x02
}; };
static const struct WindowTemplate sBlenderRecordWindowTemplate = {0, 6, 4, 0x12, 0xB, 0xF, 8}; static const struct WindowTemplate sBlenderRecordWindowTemplate =
{
.priority = 0,
.tilemapLeft = 6,
.tilemapTop = 4,
.width = 18,
.height = 11,
.paletteNum = 15,
.baseBlock = 8
};
// code // code
+66 -37
View File
@@ -59,13 +59,38 @@ static void SpriteCB_PMIndicator(struct Sprite *sprite);
static const u8 sUnknown_085B1F58[] = INCBIN_U8("graphics/wallclock/graphics_85b1f58.4bpp.lz"); static const u8 sUnknown_085B1F58[] = INCBIN_U8("graphics/wallclock/graphics_85b1f58.4bpp.lz");
static const u16 sUnknown_085B21D4[] = INCBIN_U16("graphics/wallclock/palette_85b21d4.gbapal"); static const u16 sUnknown_085B21D4[] = INCBIN_U16("graphics/wallclock/palette_85b21d4.gbapal");
static const struct WindowTemplate gUnknown_085B21DC[] = {
{ 0x00, 0x03, 0x11, 0x18, 0x02, 0x0e, 0x200 }, static const struct WindowTemplate gUnknown_085B21DC[] =
{ 0x02, 0x18, 0x10, 0x06, 0x02, 0x0c, 0x230 }, {
{
.priority = 0,
.tilemapLeft = 3,
.tilemapTop = 17,
.width = 24,
.height = 2,
.paletteNum = 14,
.baseBlock = 512
},
{
.priority = 2,
.tilemapLeft = 24,
.tilemapTop = 16,
.width = 6,
.height = 2,
.paletteNum = 12,
.baseBlock = 560
},
DUMMY_WIN_TEMPLATE DUMMY_WIN_TEMPLATE
}; };
static const struct WindowTemplate gUnknown_085B21F4 = { static const struct WindowTemplate gUnknown_085B21F4 =
0x00, 0x18, 0x09, 0x05, 0x04, 0x0e, 0x23c {
.priority = 0,
.tilemapLeft = 24,
.tilemapTop = 9,
.width = 5,
.height = 4,
.paletteNum = 14,
.baseBlock = 572
}; };
static const struct BgTemplate gUnknown_085B21FC[] = { static const struct BgTemplate gUnknown_085B21FC[] = {
{ {
@@ -115,23 +140,25 @@ static const union AnimCmd *const gUnknown_085B2248[] = {
static const union AnimCmd *const gUnknown_085B224C[] = { static const union AnimCmd *const gUnknown_085B224C[] = {
Unknown_085B2240 Unknown_085B2240
}; };
static const struct SpriteTemplate gUnknown_085B2250 = { static const struct SpriteTemplate gUnknown_085B2250 =
TAG_GFX_WALL_CLOCK_HAND, {
TAG_PAL_WALL_CLOCK_HAND, .tileTag = TAG_GFX_WALL_CLOCK_HAND,
&Unknown_085B2230, .paletteTag = TAG_PAL_WALL_CLOCK_HAND,
gUnknown_085B2248, .oam = &Unknown_085B2230,
NULL, .anims = gUnknown_085B2248,
gDummySpriteAffineAnimTable, .images = NULL,
SpriteCB_MinuteHand .affineAnims = gDummySpriteAffineAnimTable,
.callback = SpriteCB_MinuteHand
}; };
static const struct SpriteTemplate gUnknown_085B2268 = { static const struct SpriteTemplate gUnknown_085B2268 =
TAG_GFX_WALL_CLOCK_HAND, {
TAG_PAL_WALL_CLOCK_HAND, .tileTag = TAG_GFX_WALL_CLOCK_HAND,
&Unknown_085B2230, .paletteTag = TAG_PAL_WALL_CLOCK_HAND,
gUnknown_085B224C, .oam = &Unknown_085B2230,
NULL, .anims = gUnknown_085B224C,
gDummySpriteAffineAnimTable, .images = NULL,
SpriteCB_HourHand .affineAnims = gDummySpriteAffineAnimTable,
.callback = SpriteCB_HourHand
}; };
static const struct OamData Unknown_085B2280 = { static const struct OamData Unknown_085B2280 = {
.y = 0xa0, .y = 0xa0,
@@ -152,23 +179,25 @@ static const union AnimCmd *const gUnknown_085B2298[] = {
static const union AnimCmd *const gUnknown_085B229C[] = { static const union AnimCmd *const gUnknown_085B229C[] = {
Unknown_085B2290 Unknown_085B2290
}; };
static const struct SpriteTemplate gUnknown_085B22A0 = { static const struct SpriteTemplate gUnknown_085B22A0 =
TAG_GFX_WALL_CLOCK_HAND, {
TAG_PAL_WALL_CLOCK_HAND, .tileTag = TAG_GFX_WALL_CLOCK_HAND,
&Unknown_085B2280, .paletteTag = TAG_PAL_WALL_CLOCK_HAND,
gUnknown_085B2298, .oam = &Unknown_085B2280,
NULL, .anims = gUnknown_085B2298,
gDummySpriteAffineAnimTable, .images = NULL,
SpriteCB_AMIndicator .affineAnims = gDummySpriteAffineAnimTable,
.callback = SpriteCB_AMIndicator
}; };
static const struct SpriteTemplate gUnknown_085B22B8 = { static const struct SpriteTemplate gUnknown_085B22B8 =
TAG_GFX_WALL_CLOCK_HAND, {
TAG_PAL_WALL_CLOCK_HAND, .tileTag = TAG_GFX_WALL_CLOCK_HAND,
&Unknown_085B2280, .paletteTag = TAG_PAL_WALL_CLOCK_HAND,
gUnknown_085B229C, .oam = &Unknown_085B2280,
NULL, .anims = gUnknown_085B229C,
gDummySpriteAffineAnimTable, .images = NULL,
SpriteCB_PMIndicator .affineAnims = gDummySpriteAffineAnimTable,
.callback = SpriteCB_PMIndicator
}; };
static const s8 sClockHandCoords[][2] = { static const s8 sClockHandCoords[][2] = {
{ 0x00, -0x18}, { 0x00, -0x18},