2024-05-16 16:14:11 +00:00
|
|
|
#include "panel.h"
|
2024-05-28 18:49:55 +00:00
|
|
|
#include "validate.h"
|
2024-05-16 16:14:11 +00:00
|
|
|
|
|
|
|
|
2024-07-12 16:22:59 +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
|
|
|
|
2024-05-24 16:10:06 +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;
|
|
|
|
}
|
2024-05-28 18:49:55 +00:00
|
|
|
|
|
|
|
// @Ok
|
|
|
|
int Panel_DrawTexturedPoly(SAnimFrame* pFrame, int a2)
|
|
|
|
{
|
|
|
|
return Panel_DrawTexturedPoly(pFrame->pTexture, a2);
|
|
|
|
}
|
|
|
|
|
2024-07-12 16:22:59 +00:00
|
|
|
// @SMALLTODO
|
2024-05-28 18:49:55 +00:00
|
|
|
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);
|
|
|
|
}
|
2024-06-03 16:44:54 +00:00
|
|
|
|
|
|
|
void validate_Texture(void)
|
|
|
|
{
|
2024-07-18 17:48:01 +00:00
|
|
|
VALIDATE_SIZE(Texture, 0x24);
|
|
|
|
|
2024-06-03 16:44:54 +00:00
|
|
|
VALIDATE(Texture, field_0, 0x0);
|
|
|
|
VALIDATE(Texture, field_1, 0x1);
|
2024-07-18 17:48:01 +00:00
|
|
|
|
2024-06-03 16:44:54 +00:00
|
|
|
VALIDATE(Texture, field_4, 0x4);
|
2024-07-18 17:48:01 +00:00
|
|
|
|
2024-06-03 16:44:54 +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);
|
2024-06-03 16:44:54 +00:00
|
|
|
}
|