diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2024-11-12 02:41:55 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-12 05:41:55 -0500 |
| commit | ebd7e3feed369cc482ec7b5f537c4d363f81eb60 (patch) | |
| tree | 9b7ed830aeff3a3af912df33efdb56d90c3cff8b /include | |
| parent | f2a7b2a83a8976076eaf13d5754e6096a5887f24 (diff) | |
d_error_msg mostly done, little Z2LinkMgr work (#2248)
Diffstat (limited to 'include')
| -rw-r--r-- | include/JSystem/J2DGraph/J2DTextBox.h | 14 | ||||
| -rw-r--r-- | include/JSystem/JFramework/JFWDisplay.h | 1 | ||||
| -rw-r--r-- | include/JSystem/JUtility/JUTFont.h | 3 | ||||
| -rw-r--r-- | include/Z2AudioLib/Z2AudioMgr.h | 3 | ||||
| -rw-r--r-- | include/Z2AudioLib/Z2Creature.h | 4 | ||||
| -rw-r--r-- | include/Z2AudioLib/Z2SoundHandles.h | 7 | ||||
| -rw-r--r-- | include/d/d_error_msg.h | 8 | ||||
| -rw-r--r-- | include/m_Do/m_Do_graphic.h | 1 |
8 files changed, 30 insertions, 11 deletions
diff --git a/include/JSystem/J2DGraph/J2DTextBox.h b/include/JSystem/J2DGraph/J2DTextBox.h index dc8604e26b..2663da7621 100644 --- a/include/JSystem/J2DGraph/J2DTextBox.h +++ b/include/JSystem/J2DGraph/J2DTextBox.h @@ -76,7 +76,11 @@ public: /* 8021C7F4 */ virtual JUTFont* getFont() const { return mFont; } /* 80254408 */ virtual bool setBlack(JUtility::TColor); /* 80186C84 */ virtual bool setWhite(JUtility::TColor white) { mWhiteColor = white; return true; } - /* 8019230C */ virtual bool setBlackWhite(JUtility::TColor, JUtility::TColor); + /* 8019230C */ virtual bool setBlackWhite(JUtility::TColor black, JUtility::TColor white) { + mBlackColor = black; + mWhiteColor = white; + return true; + } /* 801DFA34 */ virtual JUtility::TColor getBlack() const { return mBlackColor; } @@ -126,6 +130,14 @@ public: mGradientColor = i_GradientColor; } + void setCharColor(JUtility::TColor i_charColor) { + mCharColor.set(i_charColor); + } + + void setGradColor(JUtility::TColor i_GradientColor) { + mGradientColor.set(i_GradientColor); + } + void setCharSpace(f32 space) { mCharSpacing = space; } f32 getCharSpace() const { return mCharSpacing; } void setLineSpace(f32 space) { mLineSpacing = space; } diff --git a/include/JSystem/JFramework/JFWDisplay.h b/include/JSystem/JFramework/JFWDisplay.h index 5aa79d3792..69ae5bfc37 100644 --- a/include/JSystem/JFramework/JFWDisplay.h +++ b/include/JSystem/JFramework/JFWDisplay.h @@ -98,6 +98,7 @@ public: void setDrawDoneMethod(EDrawDone drawDone) { mDrawDoneMethod = drawDone; } void setFader(JUTFader* fader) { mFader = fader; } + void resetFader() { setFader(NULL); } JUTFader* getFader() const { return mFader; } void setClearColor(JUtility::TColor color) { mClearColor = color; } diff --git a/include/JSystem/JUtility/JUTFont.h b/include/JSystem/JUtility/JUTFont.h index ec7c7a1099..310148f42f 100644 --- a/include/JSystem/JUtility/JUTFont.h +++ b/include/JSystem/JUtility/JUTFont.h @@ -100,6 +100,9 @@ public: static bool isLeadByte_ShiftJIS(int b) { return (b >= 0x81 && b <= 0x9f) || (b >= 0xe0 && b <= 0xfc); } + static bool isLeadByte_EUC(int b) { + return (b >= 0xA1 && b <= 0xFE) || b == 0x8E; + } void initialize_state(); void setCharColor(JUtility::TColor col1); diff --git a/include/Z2AudioLib/Z2AudioMgr.h b/include/Z2AudioLib/Z2AudioMgr.h index b118ef2e97..106b78aebb 100644 --- a/include/Z2AudioLib/Z2AudioMgr.h +++ b/include/Z2AudioLib/Z2AudioMgr.h @@ -29,8 +29,9 @@ public: void resetRecover(); bool hasReset() const; - static Z2AudioMgr* getInterface() { return mAudioMgrPtr; } + bool isResetting() { return mResettingFlag; } + static Z2AudioMgr* getInterface() { return mAudioMgrPtr; } static Z2AudioMgr* mAudioMgrPtr; /* 0x0514 */ virtual bool startSound(JAISoundID, JAISoundHandle*, JGeometry::TVec3<f32> const*); diff --git a/include/Z2AudioLib/Z2Creature.h b/include/Z2AudioLib/Z2Creature.h index 8387da2bdd..54e26ddad0 100644 --- a/include/Z2AudioLib/Z2Creature.h +++ b/include/Z2AudioLib/Z2Creature.h @@ -64,8 +64,8 @@ public: void setRiding(bool); void setMagnetized(bool); void setWolfEyeOpen(bool); - void startLinkSound(JAISoundID, u32, s8); - void startLinkSoundLevel(JAISoundID, u32, s8); + Z2SoundHandlePool* startLinkSound(JAISoundID, u32, s8); + JAISoundHandle* startLinkSoundLevel(JAISoundID, u32, s8); void startLinkVoice(JAISoundID, s8); void startLinkVoiceLevel(JAISoundID, s8); void startLinkSwordSound(JAISoundID, u32, s8); diff --git a/include/Z2AudioLib/Z2SoundHandles.h b/include/Z2AudioLib/Z2SoundHandles.h index 352dbaa99d..117661fb79 100644 --- a/include/Z2AudioLib/Z2SoundHandles.h +++ b/include/Z2AudioLib/Z2SoundHandles.h @@ -30,6 +30,13 @@ public: void stopAllSounds(u32 fadeout); + void stopSound(JAISoundID soundID, u32 param_1) { + JAISoundHandle* phandle = getHandleSoundID(soundID); + if (phandle != NULL) { + (*phandle)->stop(param_1); + } + } + void setPos(const JGeometry::TVec3<f32>& pos); int getNumHandles() const { return getNumLinks(); } diff --git a/include/d/d_error_msg.h b/include/d/d_error_msg.h index e161f96775..b38c67403f 100644 --- a/include/d/d_error_msg.h +++ b/include/d/d_error_msg.h @@ -8,14 +8,8 @@ struct dShutdownErrorMsg_c { }; struct dDvdErrorMsg_c { - /* 8009D194 */ void draw(s32); + /* 8009D194 */ static void draw(s32); /* 8009D354 */ static u8 execute(); }; -struct J2DOrthoGraph { - /* 802E96D0 */ J2DOrthoGraph(f32, f32, f32, f32, f32, f32); - /* 802E97B4 */ void setPort(); - /* 802E980C */ void setOrtho(JGeometry::TBox2<f32> const&, f32, f32); -}; - #endif /* D_D_ERROR_MSG_H */ diff --git a/include/m_Do/m_Do_graphic.h b/include/m_Do/m_Do_graphic.h index 2c002c191f..fa458c501b 100644 --- a/include/m_Do/m_Do_graphic.h +++ b/include/m_Do/m_Do_graphic.h @@ -7,6 +7,7 @@ class JUTFader; int mDoGph_Create(); +void mDoGph_drawFilterQuad(s8 param_0, s8 param_1); extern bool data_80450BE7; // AutoForcus |
