Skip to content

Commit

Permalink
Update MapEngine.js
Browse files Browse the repository at this point in the history
Moved versioned ui hooks
  • Loading branch information
MrAntares authored Oct 7, 2024
1 parent c485e14 commit 8f29715
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/Engine/MapEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,8 @@ define(function( require )
}

// Bind UI
WinStats.getUI().onRequestUpdate = onRequestStatUpdate;
Equipment.getUI().onUnEquip = onUnEquip;
Equipment.getUI().onConfigUpdate = onConfigUpdate;
Equipment.getUI().onEquipItem = onEquipItem;
Equipment.getUI().onRemoveOption = onRemoveOption;
PetInformations.onConfigUpdate = onConfigUpdate;
HomunInformations.onConfigUpdate = onConfigUpdate;
Inventory.getUI().onUseItem = onUseItem;
Inventory.getUI().onEquipItem = onEquipItem;
Escape.onExitRequest = onExitRequest;
Escape.onCharSelectionRequest = onRestartRequest;
Escape.onReturnSavePointRequest = onReturnSavePointRequest;
Expand All @@ -349,7 +342,13 @@ define(function( require )
WinStats.getUI().prepare();

// Bind UIs
// nothing yet
WinStats.getUI().onRequestUpdate = onRequestStatUpdate;
Equipment.getUI().onUnEquip = onUnEquip;
Equipment.getUI().onConfigUpdate = onConfigUpdate;
Equipment.getUI().onEquipItem = onEquipItem;
Equipment.getUI().onRemoveOption = onRemoveOption;
Inventory.getUI().onUseItem = onUseItem;
Inventory.getUI().onEquipItem = onEquipItem;

// Avoid zone server change init
MapEngine.needsUIVerUpdate = false;
Expand Down

0 comments on commit 8f29715

Please sign in to comment.