summaryrefslogtreecommitdiff
path: root/src/wallclock.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-09-09 20:31:56 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2018-09-09 20:31:56 +0200
commitcf8898071d0aa02438be2b1b1d03a6e6b33892be (patch)
tree645e643948653d0ae99a9187aab5e769c1ac3737 /src/wallclock.c
parent4d1df7ecbe69cf151d00976648aa34faae8cd6e9 (diff)
parente21b91cc2f48c4b6bf2cb2d8e97ea1d55c0163bb (diff)
Merge branch 'decompile_frontier_2' of https://github.com/DizzyEggg/pokeemerald into decompile_frontier_2
Diffstat (limited to 'src/wallclock.c')
-rw-r--r--src/wallclock.c103
1 files changed, 66 insertions, 37 deletions
diff --git a/src/wallclock.c b/src/wallclock.c
index 138dfcc38..6bcfa1717 100644
--- a/src/wallclock.c
+++ b/src/wallclock.c
@@ -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 u16 sUnknown_085B21D4[] = INCBIN_U16("graphics/wallclock/palette_85b21d4.gbapal");
-static const struct WindowTemplate gUnknown_085B21DC[] = {
- { 0x00, 0x03, 0x11, 0x18, 0x02, 0x0e, 0x200 },
- { 0x02, 0x18, 0x10, 0x06, 0x02, 0x0c, 0x230 },
+
+static const struct WindowTemplate gUnknown_085B21DC[] =
+{
+ {
+ .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
};
-static const struct WindowTemplate gUnknown_085B21F4 = {
- 0x00, 0x18, 0x09, 0x05, 0x04, 0x0e, 0x23c
+static const struct WindowTemplate gUnknown_085B21F4 =
+{
+ .priority = 0,
+ .tilemapLeft = 24,
+ .tilemapTop = 9,
+ .width = 5,
+ .height = 4,
+ .paletteNum = 14,
+ .baseBlock = 572
};
static const struct BgTemplate gUnknown_085B21FC[] = {
{
@@ -115,23 +140,25 @@ static const union AnimCmd *const gUnknown_085B2248[] = {
static const union AnimCmd *const gUnknown_085B224C[] = {
Unknown_085B2240
};
-static const struct SpriteTemplate gUnknown_085B2250 = {
- TAG_GFX_WALL_CLOCK_HAND,
- TAG_PAL_WALL_CLOCK_HAND,
- &Unknown_085B2230,
- gUnknown_085B2248,
- NULL,
- gDummySpriteAffineAnimTable,
- SpriteCB_MinuteHand
+static const struct SpriteTemplate gUnknown_085B2250 =
+{
+ .tileTag = TAG_GFX_WALL_CLOCK_HAND,
+ .paletteTag = TAG_PAL_WALL_CLOCK_HAND,
+ .oam = &Unknown_085B2230,
+ .anims = gUnknown_085B2248,
+ .images = NULL,
+ .affineAnims = gDummySpriteAffineAnimTable,
+ .callback = SpriteCB_MinuteHand
};
-static const struct SpriteTemplate gUnknown_085B2268 = {
- TAG_GFX_WALL_CLOCK_HAND,
- TAG_PAL_WALL_CLOCK_HAND,
- &Unknown_085B2230,
- gUnknown_085B224C,
- NULL,
- gDummySpriteAffineAnimTable,
- SpriteCB_HourHand
+static const struct SpriteTemplate gUnknown_085B2268 =
+{
+ .tileTag = TAG_GFX_WALL_CLOCK_HAND,
+ .paletteTag = TAG_PAL_WALL_CLOCK_HAND,
+ .oam = &Unknown_085B2230,
+ .anims = gUnknown_085B224C,
+ .images = NULL,
+ .affineAnims = gDummySpriteAffineAnimTable,
+ .callback = SpriteCB_HourHand
};
static const struct OamData Unknown_085B2280 = {
.y = 0xa0,
@@ -152,23 +179,25 @@ static const union AnimCmd *const gUnknown_085B2298[] = {
static const union AnimCmd *const gUnknown_085B229C[] = {
Unknown_085B2290
};
-static const struct SpriteTemplate gUnknown_085B22A0 = {
- TAG_GFX_WALL_CLOCK_HAND,
- TAG_PAL_WALL_CLOCK_HAND,
- &Unknown_085B2280,
- gUnknown_085B2298,
- NULL,
- gDummySpriteAffineAnimTable,
- SpriteCB_AMIndicator
+static const struct SpriteTemplate gUnknown_085B22A0 =
+{
+ .tileTag = TAG_GFX_WALL_CLOCK_HAND,
+ .paletteTag = TAG_PAL_WALL_CLOCK_HAND,
+ .oam = &Unknown_085B2280,
+ .anims = gUnknown_085B2298,
+ .images = NULL,
+ .affineAnims = gDummySpriteAffineAnimTable,
+ .callback = SpriteCB_AMIndicator
};
-static const struct SpriteTemplate gUnknown_085B22B8 = {
- TAG_GFX_WALL_CLOCK_HAND,
- TAG_PAL_WALL_CLOCK_HAND,
- &Unknown_085B2280,
- gUnknown_085B229C,
- NULL,
- gDummySpriteAffineAnimTable,
- SpriteCB_PMIndicator
+static const struct SpriteTemplate gUnknown_085B22B8 =
+{
+ .tileTag = TAG_GFX_WALL_CLOCK_HAND,
+ .paletteTag = TAG_PAL_WALL_CLOCK_HAND,
+ .oam = &Unknown_085B2280,
+ .anims = gUnknown_085B229C,
+ .images = NULL,
+ .affineAnims = gDummySpriteAffineAnimTable,
+ .callback = SpriteCB_PMIndicator
};
static const s8 sClockHandCoords[][2] = {
{ 0x00, -0x18},