mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2024-11-30 04:35:58 +00:00
right in npc inv no longer causes issue
This commit is contained in:
parent
bcadeed0e7
commit
d7fab9d077
@ -403,7 +403,7 @@ public:
|
|||||||
int filledStaminaWidth = static_cast<int>(staminaPercentage * barWidth);
|
int filledStaminaWidth = static_cast<int>(staminaPercentage * barWidth);
|
||||||
|
|
||||||
// at 345 we need to minus the width of the text
|
// at 345 we need to minus the width of the text
|
||||||
int sWCenter = barX + 100 - (diablo2::d2_win::get_text_pixel_width(const_cast<wchar_t*>(mana.c_str())) / 2);
|
sWCenter = barX + 100 - (diablo2::d2_win::get_text_pixel_width(const_cast<wchar_t*>(mana.c_str())) / 2);
|
||||||
|
|
||||||
HWND diabloIIWnd = FindDiabloIIWindow();
|
HWND diabloIIWnd = FindDiabloIIWindow();
|
||||||
|
|
||||||
|
@ -459,7 +459,7 @@ LRESULT d2_tweaks::ui::ui_manager::wnd_proc(HWND hWnd, UINT msg, WPARAM wParam,
|
|||||||
auto currentPage = diablo2::d2_common::get_item_page(g_hoverItem);
|
auto currentPage = diablo2::d2_common::get_item_page(g_hoverItem);
|
||||||
|
|
||||||
if (currentPage == 0 || currentPage == 3 || currentPage == 4) {
|
if (currentPage == 0 || currentPage == 3 || currentPage == 4) {
|
||||||
|
if (diablo2::d2_client::get_ui_window_state(diablo2::UI_WINDOW_STASH) || diablo2::d2_client::get_ui_window_state(diablo2::UI_WINDOW_CUBE) || diablo2::d2_client::get_ui_window_state(diablo2::UI_WINDOW_INVENTORY)) {
|
||||||
for (const auto& gem : gemTypes) {
|
for (const auto& gem : gemTypes) {
|
||||||
// Accessing key and value
|
// Accessing key and value
|
||||||
const std::string& key = gem.first;
|
const std::string& key = gem.first;
|
||||||
@ -485,7 +485,7 @@ LRESULT d2_tweaks::ui::ui_manager::wnd_proc(HWND hWnd, UINT msg, WPARAM wParam,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
block = instance.process_right_mouse(false);
|
block = instance.process_right_mouse(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user