Skip to content

Commit 28884aa

Browse files
committed
Add SpelllDisplayManager__ShowSpell
1 parent 945c131 commit 28884aa

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

include/eqlib/game/Globals.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ EQLIB_VAR uintptr_t CSliderWnd__GetValue;
521521
EQLIB_VAR uintptr_t CSliderWnd__SetNumTicks;
522522
EQLIB_VAR uintptr_t CSliderWnd__SetValue;
523523
EQLIB_VAR uintptr_t CSpellBookWnd__MemorizeSet;
524+
EQLIB_VAR uintptr_t CSpellDisplayManager__ShowSpell;
524525
EQLIB_VAR uintptr_t CSpellDisplayWnd__SetSpell;
525526
EQLIB_VAR uintptr_t CSpellDisplayWnd__UpdateStrings;
526527
EQLIB_VAR uintptr_t CStmlWnd__AppendSTML;

include/eqlib/game/UI.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7298,6 +7298,8 @@ class CSpellDisplayManager : public CWndDisplayManager
72987298
{
72997299
public:
73007300
CSpellDisplayWnd* GetWindow(int index) const { return static_cast<CSpellDisplayWnd*>(CWndDisplayManager::GetWindow(index)); }
7301+
7302+
EQLIB_OBJECT void ShowSpell(int SpellID, bool NewWindow, bool FullDisplay, ESpellDisplayType SpellDisplayType);
73017303
};
73027304

73037305
//----------------------------------------------------------------------------

include/eqlib/offsets/eqgame.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@
411411
// CItemDisplayManager
412412
#define CItemDisplayManager__CreateWindowInstance_x 0x14043D460
413413

414+
// CSpellDisplayManager
415+
#define CSpellDisplayManager__ShowSpell_x 0x1405139B0
416+
414417
// CKeyRingWnd
415418
#define CKeyRingWnd__ExecuteRightClick_x 0x140159B70
416419

src/game/FunctionDefs.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5434,6 +5434,7 @@ FUNCTION_AT_ADDRESS(CXStr, CItemDisplayWnd::CreateEquipmentStatusString(const It
54345434

54355435
FUNCTION_AT_ADDRESS(void, CSpellDisplayWnd::SetSpell(int SpellID, int), CSpellDisplayWnd__SetSpell);
54365436
FUNCTION_AT_ADDRESS(void, CSpellDisplayWnd::UpdateStrings(), CSpellDisplayWnd__UpdateStrings);
5437+
FUNCTION_AT_ADDRESS(void, CSpellDisplayManager::ShowSpell(int SpellID, bool NewWindow, bool FullDisplay, ESpellDisplayType SpellDisplayType), CSpellDisplayManager__ShowSpell);
54375438

54385439
//----------------------------------------------------------------------------
54395440
// CKeyRingWnd

src/game/Globals.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ INITIALIZE_EQGAME_OFFSET(CSliderWnd__GetValue);
849849
INITIALIZE_EQGAME_OFFSET(CSliderWnd__SetNumTicks);
850850
INITIALIZE_EQGAME_OFFSET(CSliderWnd__SetValue);
851851
INITIALIZE_EQGAME_OFFSET(CSpellBookWnd__MemorizeSet);
852+
INITIALIZE_EQGAME_OFFSET(CSpellDisplayManager__ShowSpell);
852853
INITIALIZE_EQGAME_OFFSET(CSpellDisplayWnd__SetSpell);
853854
INITIALIZE_EQGAME_OFFSET(CSpellDisplayWnd__UpdateStrings);
854855
INITIALIZE_EQGAME_OFFSET(CStmlWnd__AppendSTML);

0 commit comments

Comments
 (0)