Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Puyo/PuyoLabel.c
338 views
1
// ---------------------------------------------------------------------
2
// RSDK Project: Sonic Mania
3
// Object Description: PuyoLabel Object
4
// Object Author: Christian Whitehead/Simon Thomley/Hunter Bridges
5
// Decompiled by: Rubberduckycooly & RMGRich
6
// ---------------------------------------------------------------------
7
8
#include "Game.h"
9
10
ObjectPuyoLabel *PuyoLabel;
11
12
void PuyoLabel_Update(void) {}
13
14
void PuyoLabel_LateUpdate(void) {}
15
16
void PuyoLabel_StaticUpdate(void) {}
17
18
void PuyoLabel_Draw(void)
19
{
20
RSDK_THIS(PuyoLabel);
21
22
RSDK.DrawSprite(&self->animator, NULL, false);
23
}
24
25
void PuyoLabel_Create(void *data)
26
{
27
RSDK_THIS(PuyoLabel);
28
29
self->active = ACTIVE_NORMAL;
30
self->drawGroup = 10;
31
self->visible = true;
32
self->updateRange.x = 0x800000;
33
self->updateRange.y = 0x800000;
34
35
RSDK.SetSpriteAnimation(PuyoLabel->aniFrames, self->listID, &self->animator, true, self->frame);
36
}
37
38
void PuyoLabel_StageLoad(void) { PuyoLabel->aniFrames = RSDK.LoadSpriteAnimation("Puyo/PuyoUI.bin", SCOPE_STAGE); }
39
40
#if GAME_INCLUDE_EDITOR
41
void PuyoLabel_EditorDraw(void)
42
{
43
RSDK_THIS(PuyoLabel);
44
45
RSDK.SetSpriteAnimation(PuyoLabel->aniFrames, self->listID, &self->animator, true, self->frame);
46
47
PuyoLabel_Draw();
48
}
49
50
void PuyoLabel_EditorLoad(void) { PuyoLabel->aniFrames = RSDK.LoadSpriteAnimation("Puyo/PuyoUI.bin", SCOPE_STAGE); }
51
#endif
52
53
void PuyoLabel_Serialize(void)
54
{
55
RSDK_EDITABLE_VAR(PuyoLabel, VAR_ENUM, listID);
56
RSDK_EDITABLE_VAR(PuyoLabel, VAR_ENUM, frame);
57
}
58
59