mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-24 15:00:55 -04:00
4346df764b
* add "global.h" to files that use it * add MSL_C includes to files that use them * remove dolphin includes from headers that don't need them * remove JSupport includes from headers that don't need them * remove JKernel includes from headers that don't need them * remove JUtility includes from headers that don't need them * remove J3D includes from headers that don't need them * remove J2D includes from headers that don't need them * remove JAudio2 includes from headers that don't need them * remove Z2AudioLib includes from headers that don't need them * remove JMessage includes from headers that don't need them * remove JParticle includes from headers that don't need them * remove SComponent includes from headers that don't need them * remove dol includes from headers that don't need them * sort includes
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#include "d/d_select_icon.h"
|
|
#include "JSystem/J2DGraph/J2DAnimation.h"
|
|
|
|
dSi_HIO_c::dSi_HIO_c() {}
|
|
|
|
void dSelect_icon_c::animation() {
|
|
if (field_0x10->getAlpha() != 0) {
|
|
field_0x20 += field_0x2c;
|
|
if (field_0x20 >= field_0x1c->getFrameMax()) {
|
|
field_0x20 = 0.0f;
|
|
}
|
|
field_0x1c->setFrame(field_0x20);
|
|
|
|
field_0x28 += field_0x2c;
|
|
if (field_0x28 >= field_0x24->getFrameMax()) {
|
|
field_0x28 = 0.0f;
|
|
}
|
|
|
|
field_0x24->setFrame(field_0x28);
|
|
field_0x8->animation();
|
|
field_0x10->paneScale(field_0x14, field_0x14);
|
|
}
|
|
}
|
|
|
|
void dSelect_icon_c::setAlpha(u8 param_0) {
|
|
field_0x10->setAlpha(param_0);
|
|
}
|
|
|
|
void dSelect_icon_c::setPos(J2DPane* param_0, f32 transX, f32 transY) {
|
|
field_0x14 = param_0->getWidth() / 100.0f;
|
|
field_0x18 = param_0->getHeight() / 100.0f;
|
|
|
|
field_0x10->paneScale(field_0x14, field_0x14);
|
|
field_0xc->getPanePtr()->translate(transX, transY);
|
|
}
|
|
|
|
dSi_HIO_c::~dSi_HIO_c() {}
|
|
|
|
static dSi_HIO_c g_siHIO; |