summaryrefslogtreecommitdiff
path: root/src/d/d_pane_class_alpha.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-11-30 14:23:42 -0800
committerGitHub <noreply@github.com>2025-11-30 15:23:42 -0700
commita6e76c0841cae03cae0c0e6ac75c32f979043093 (patch)
tree76b5f590c59c6abdf2c80d0a3d5c0ccb31ebd0fe /src/d/d_pane_class_alpha.cpp
parent434415337d268e405b09f6b72935a7e918e4cfe7 (diff)
project cleanup (#2895)
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
Diffstat (limited to 'src/d/d_pane_class_alpha.cpp')
-rw-r--r--src/d/d_pane_class_alpha.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/d/d_pane_class_alpha.cpp b/src/d/d_pane_class_alpha.cpp
index 66e6cff567..31bc8bc9b4 100644
--- a/src/d/d_pane_class_alpha.cpp
+++ b/src/d/d_pane_class_alpha.cpp
@@ -1,8 +1,3 @@
-//
-// Generated By: dol2asm
-// Translation Unit: d/d_pane_class_alpha
-//
-
#include "d/dolzel.h" // IWYU pragma: keep
#include "d/d_pane_class_alpha.h"
@@ -10,18 +5,14 @@
#include "JSystem/JKernel/JKRExpHeap.h"
#include "m_Do/m_Do_ext.h"
-/* 802553EC-802553FC 24FD2C 0010+00 0/0 2/2 0/0 .text __ct__13CPaneMgrAlphaFv */
CPaneMgrAlpha::CPaneMgrAlpha() {}
-/* 802553FC-8025546C 24FD3C 0070+00 1/1 9/9 1/1 .text
- * __ct__13CPaneMgrAlphaFP9J2DScreenUxUcP10JKRExpHeap */
CPaneMgrAlpha::CPaneMgrAlpha(J2DScreen* p_screen, u64 tag, u8 flags, JKRExpHeap* p_heap) {
J2DPane* pane = p_screen->search(tag);
mFlags = flags;
initiateAlpha(pane, p_heap);
}
-/* 8025546C-802554E0 24FDAC 0074+00 2/1 1/1 0/0 .text __dt__13CPaneMgrAlphaFv */
CPaneMgrAlpha::~CPaneMgrAlpha() {
if (mpFirstStackAlpha != NULL) {
heap->free(mpFirstStackAlpha);
@@ -29,8 +20,6 @@ CPaneMgrAlpha::~CPaneMgrAlpha() {
}
}
-/* 802554E0-802555C8 24FE20 00E8+00 1/1 0/0 0/0 .text
- * initiateAlpha__13CPaneMgrAlphaFP7J2DPaneP10JKRExpHeap */
void CPaneMgrAlpha::initiateAlpha(J2DPane* p_pane, JKRExpHeap* p_heap) {
mPane = p_pane;
@@ -63,26 +52,22 @@ void CPaneMgrAlpha::initiateAlpha(J2DPane* p_pane, JKRExpHeap* p_heap) {
mAlphaTimer = 0;
}
-/* 802555C8-80255608 24FF08 0040+00 0/0 40/40 2/2 .text show__13CPaneMgrAlphaFv */
void CPaneMgrAlpha::show() {
if (!isVisible()) {
mPane->show();
}
}
-/* 80255608-8025564C 24FF48 0044+00 0/0 46/46 2/2 .text hide__13CPaneMgrAlphaFv */
void CPaneMgrAlpha::hide() {
if (isVisible() == true) {
mPane->hide();
}
}
-/* 8025564C-80255658 24FF8C 000C+00 2/2 12/12 0/0 .text isVisible__13CPaneMgrAlphaFv */
bool CPaneMgrAlpha::isVisible() {
return mPane->isVisible();
}
-/* 80255658-80255758 24FF98 0100+00 2/2 2/2 0/0 .text rateCalc__13CPaneMgrAlphaFssUc */
f32 CPaneMgrAlpha::rateCalc(s16 maxTimer, s16 curTimer, u8 calcType) {
if (maxTimer <= curTimer) {
return 1.0f;
@@ -98,7 +83,6 @@ f32 CPaneMgrAlpha::rateCalc(s16 maxTimer, s16 curTimer, u8 calcType) {
}
}
-/* 80255758-802557D0 250098 0078+00 2/0 0/0 0/0 .text setAlpha__13CPaneMgrAlphaFUc */
void CPaneMgrAlpha::setAlpha(u8 alpha) {
if (mFlags & 2) {
field_0x10 = (u8*)mpFirstStackAlpha;
@@ -107,14 +91,10 @@ void CPaneMgrAlpha::setAlpha(u8 alpha) {
mPane->setAlpha(alpha);
}
-/* 802557D0-80255828 250110 0058+00 1/1 173/173 5/5 .text setAlphaRate__13CPaneMgrAlphaFf
- */
void CPaneMgrAlpha::setAlphaRate(f32 rate) {
setAlpha(mInitAlpha * rate);
}
-/* 80255828-80255878 250168 0050+00 0/0 107/107 2/2 .text getAlphaRate__13CPaneMgrAlphaFv
- */
f32 CPaneMgrAlpha::getAlphaRate() {
f32 rate = 0.0f;
@@ -125,7 +105,6 @@ f32 CPaneMgrAlpha::getAlphaRate() {
return rate;
}
-/* 80255878-80255964 2501B8 00EC+00 0/0 31/31 1/1 .text alphaAnime__13CPaneMgrAlphaFsUcUcUc */
bool CPaneMgrAlpha::alphaAnime(s16 timer, u8 startAlpha, u8 endAlpha, u8 calcType) {
if (mAlphaTimer < timer - 1) {
mAlphaTimer++;
@@ -140,7 +119,6 @@ bool CPaneMgrAlpha::alphaAnime(s16 timer, u8 startAlpha, u8 endAlpha, u8 calcTyp
return false;
}
-/* 80255964-80255A60 2502A4 00FC+00 0/0 0/0 1/1 .text alphaAnimeLoop__13CPaneMgrAlphaFsUcUcUc */
bool CPaneMgrAlpha::alphaAnimeLoop(s16 param_0, u8 param_1, u8 param_2, u8 param_3) {
bool ret = false;
s16 temp_r4 = param_0 / 2;
@@ -165,7 +143,6 @@ bool CPaneMgrAlpha::alphaAnimeLoop(s16 param_0, u8 param_1, u8 param_2, u8 param
return ret;
}
-/* 80255A60-80255ACC 2503A0 006C+00 1/1 1/1 0/0 .text childPaneCount__13CPaneMgrAlphaFP7J2DPane */
void CPaneMgrAlpha::childPaneCount(J2DPane* p_pane) {
if (p_pane != NULL) {
mChildPaneCount++;
@@ -174,8 +151,6 @@ void CPaneMgrAlpha::childPaneCount(J2DPane* p_pane) {
}
}
-/* 80255ACC-80255B5C 25040C 0090+00 1/1 1/1 0/0 .text childPaneGetAlpha__13CPaneMgrAlphaFP7J2DPane
- */
void CPaneMgrAlpha::childPaneGetAlpha(J2DPane* p_pane) {
if (p_pane != NULL) {
u8 alpha;
@@ -192,8 +167,6 @@ void CPaneMgrAlpha::childPaneGetAlpha(J2DPane* p_pane) {
}
}
-/* 80255B5C-80255C68 25049C 010C+00 1/1 1/1 0/0 .text
- * childPaneSetAlpha__13CPaneMgrAlphaFP7J2DPaneUc */
void CPaneMgrAlpha::childPaneSetAlpha(J2DPane* p_pane, u8 alpha) {
if (p_pane != NULL) {
if (!p_pane->mIsInfluencedAlpha) {
@@ -213,15 +186,12 @@ void CPaneMgrAlpha::childPaneSetAlpha(J2DPane* p_pane, u8 alpha) {
}
}
-/* 80255C68-80255CAC 2505A8 0044+00 0/0 5/5 0/0 .text
- * __ct__17CPaneMgrAlphaMorfFP9J2DScreenUxUcP10JKRExpHeap */
CPaneMgrAlphaMorf::CPaneMgrAlphaMorf(J2DScreen* p_screen, u64 tag, u8 flags,
JKRExpHeap* p_heap)
: CPaneMgrAlpha(p_screen, tag, flags, p_heap) {
initiateAlphaMorf();
}
-/* 80255CAC-80255D48 2505EC 009C+00 1/0 0/0 0/0 .text __dt__17CPaneMgrAlphaMorfFv */
CPaneMgrAlphaMorf::~CPaneMgrAlphaMorf() {
if (mpFirstSaveAlpha != NULL) {
heap->free(mpFirstSaveAlpha);
@@ -234,7 +204,6 @@ CPaneMgrAlphaMorf::~CPaneMgrAlphaMorf() {
}
}
-/* 80255D48-80255DD0 250688 0088+00 1/1 0/0 0/0 .text initiateAlphaMorf__17CPaneMgrAlphaMorfFv */
void CPaneMgrAlphaMorf::initiateAlphaMorf() {
mpFirstSaveAlpha = NULL;
field_0x20 = NULL;
@@ -252,7 +221,6 @@ void CPaneMgrAlphaMorf::initiateAlphaMorf() {
}
}
-/* 80255DD0-80255E28 250710 0058+00 1/1 3/3 0/0 .text setBackupAlpha__17CPaneMgrAlphaMorfFv */
void CPaneMgrAlphaMorf::setBackupAlpha() {
if (mpFirstStackAlpha != NULL) {
field_0x20 = (u8*)mpFirstSaveAlpha;
@@ -262,7 +230,6 @@ void CPaneMgrAlphaMorf::setBackupAlpha() {
}
}
-/* 80255E28-80255E98 250768 0070+00 0/0 3/3 0/0 .text setAlphaMorfRate__17CPaneMgrAlphaMorfFf */
void CPaneMgrAlphaMorf::setAlphaMorfRate(f32 rate) {
if (mpFirstStackAlpha != NULL) {
field_0x20 = (u8*)mpFirstSaveAlpha;
@@ -274,8 +241,6 @@ void CPaneMgrAlphaMorf::setAlphaMorfRate(f32 rate) {
}
}
-/* 80255E98-80255F28 2507D8 0090+00 1/1 0/0 0/0 .text
- * childPaneBackupAlpha__17CPaneMgrAlphaMorfFP7J2DPane */
void CPaneMgrAlphaMorf::childPaneBackupAlpha(J2DPane* p_pane) {
if (p_pane != NULL) {
*field_0x20 = p_pane->getAlpha();
@@ -289,8 +254,6 @@ void CPaneMgrAlphaMorf::childPaneBackupAlpha(J2DPane* p_pane) {
}
}
-/* 80255F28-80256018 250868 00F0+00 1/1 0/0 0/0 .text
- * childPaneSetAlphaMorf__17CPaneMgrAlphaMorfFP7J2DPanef */
void CPaneMgrAlphaMorf::childPaneSetAlphaMorf(J2DPane* p_pane, f32 morf) {
if (p_pane != NULL) {
if (*field_0x20 == *field_0x28) {