spidey-decomp/panel.cpp

67 lines
1.1 KiB
C++
Raw Normal View History

2024-05-16 16:14:11 +00:00
#include "panel.h"
#include "validate.h"
2024-05-16 16:14:11 +00:00
// @SMALLTODO
2024-05-16 16:14:11 +00:00
void Panel_CreateHealthBar(const CBody*, int)
{}
2024-05-24 14:57:15 +00:00
static int gHealthBarOne;
static int gHealthBarTwo;
// @NotOk
// globals
void Panel_DestroyHealthbar(void)
{
gHealthBarOne = 0;
gHealthBarTwo = 0;
}
2024-05-24 14:57:15 +00:00
static unsigned char gPanelStatus;
// @NotOk
// Global
void Panel_DestroyCompass(void)
{
gPanelStatus = 0;
}
// @Ok
int Panel_DrawTexturedPoly(SAnimFrame* pFrame, int a2)
{
return Panel_DrawTexturedPoly(pFrame->pTexture, a2);
}
// @SMALLTODO
int Panel_DrawTexturedPoly(Texture*, int)
{
return 0x28052024;
}
void validate_SAnimFrame(void)
{
VALIDATE_SIZE(SAnimFrame, 0x8);
VALIDATE(SAnimFrame, OffX, 0x0);
VALIDATE(SAnimFrame, OffY, 0x1);
VALIDATE(SAnimFrame, Width, 0x2);
VALIDATE(SAnimFrame, Height, 0x3);
VALIDATE(SAnimFrame, pTexture, 0x4);
}
void validate_Texture(void)
{
2024-07-18 17:48:01 +00:00
VALIDATE_SIZE(Texture, 0x24);
VALIDATE(Texture, field_0, 0x0);
VALIDATE(Texture, field_1, 0x1);
2024-07-18 17:48:01 +00:00
VALIDATE(Texture, field_4, 0x4);
2024-07-18 17:48:01 +00:00
VALIDATE(Texture, field_9, 0x9);
2024-07-18 17:48:01 +00:00
2024-07-21 16:13:12 +00:00
VALIDATE(Texture, TexWin, 0xC);
VALIDATE(Texture, Usage, 0x12);
2024-07-18 17:48:01 +00:00
VALIDATE(Texture, Checksum, 0x14);
VALIDATE(Texture, pNext, 0x20);
}