CGlow::SetRadius

This commit is contained in:
krystalgamer 2024-05-29 18:37:14 +02:00
parent b76a9412db
commit a742e9bbb8
2 changed files with 20 additions and 1 deletions

13
bit.cpp
View File

@ -315,6 +315,16 @@ void CTexturedRibbon::SetOuterRGBi(int index, unsigned char a3, unsigned char a4
this->field_60[index+1] = (a3 | (((a5 << 8) | a4) << 8));
}
// @NotOk
// understand what 3C is
void CGlow::SetRadius(int radius)
{
for (int i = 0; i < this->field_44; i++)
{
this->field_3C[2*i] = radius;
}
}
void validate_CFlatBit(void){
VALIDATE(CFlatBit, field_58, 0x58);
VALIDATE(CFlatBit, field_5A, 0x5A);
@ -374,6 +384,9 @@ void validate_CGlow(void)
{
VALIDATE_SIZE(CGlow, 0x5C);
VALIDATE(CGlow, field_3C, 0x3C);
VALIDATE(CGlow, field_44, 0x44);
VALIDATE(CGlow, field_4C, 0x4C);
}

8
bit.h
View File

@ -130,7 +130,13 @@ class CGlow : public CBit
{
public:
EXPORT void SetCentreRGB(unsigned char, unsigned char, unsigned char);
unsigned char padTop[0x10];
EXPORT void SetRadius(int);
int* field_3C;
unsigned char padAfter3C[0x44-0x3C-4];
unsigned int field_44;
unsigned char padAfter44[0x4C-0x44-4];
int field_4C;
unsigned char padBottom[0x5C-0x4C-4];