Maintenance: [forced, user-approved] Family G29: WindowMouseHit (inventory row, header of former bundle). The header only declared tw

Batch #10255 by ragnarok-clanker: forced by an admin (0 lower score(s), 0 changed function(s)); checked with 5 compiled unit(s), including every includer of Source/UI/Window/WindowMouseHit.h.
Deletes: Source/UI/Window/WindowMouseHit.h
This commit is contained in:
ragnarok-clanker 2026-11-03 12:54:24 +00:00
commit e235d90a62
6 changed files with 9 additions and 32 deletions

View file

@ -10,7 +10,6 @@
#include "UI/UIBroadcastBalloon.h" #include "UI/UIBroadcastBalloon.h"
#include "UI/Window/UIWindow.h" #include "UI/Window/UIWindow.h"
#include "UI/Window/UIWindowMgr.h" #include "UI/Window/UIWindowMgr.h"
#include "UI/Window/WindowMouseHit.h"
#include "Utility/Cipher/XorBytes.h" #include "Utility/Cipher/XorBytes.h"
#include "Utility/Text/FormatString.h" #include "Utility/Text/FormatString.h"
@ -204,7 +203,7 @@ void ShutdownCallback::operator()(Stove::PCSDK::CallbackResult callbackResult, S
const char* caption = captionName.Text(); const char* caption = captionName.Text();
MessageBoxA(hWnd, message.c_str(), caption, MB_OK); MessageBoxA(hWnd, message.c_str(), caption, MB_OK);
g_modeMgr.gameMode->SendMsg(2, 0, 0, 0, 0); g_modeMgr.gameMode->SendMsg(2, 0, 0, 0, 0);
} else if (g_alternateDoubleClickGate == 0) { } else if (g_modeMgr.state == 0) {
g_windowMgr.Confirm(message.c_str(), 0, true, true, 0, "Message", 280, 120, 0); g_windowMgr.Confirm(message.c_str(), 0, true, true, 0, "Message", 280, 120, 0);
} else { } else {
UIBroadcastBalloon* balloonWindow = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->EnsureBroadcastBalloon(); UIBroadcastBalloon* balloonWindow = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->EnsureBroadcastBalloon();

View file

@ -21,7 +21,6 @@
#include "UI/Window/UIResizer.h" #include "UI/Window/UIResizer.h"
#include "UI/Lists/UIScrollBar.h" #include "UI/Lists/UIScrollBar.h"
#include "UI/Lists/UITabControl.h" #include "UI/Lists/UITabControl.h"
#include "UI/Window/WindowMouseHit.h"
#include "UI/Chat/UINewChatWnd.h" #include "UI/Chat/UINewChatWnd.h"
#include "UI/Window/InputFocus.h" #include "UI/Window/InputFocus.h"
#include "UI/Skill/UISkillDescribeWnd.h" #include "UI/Skill/UISkillDescribeWnd.h"
@ -1029,7 +1028,7 @@ void UINewSkillListWnd::Slot31(int x, int y) {
// OFFSET: 0x009B28F0 // OFFSET: 0x009B28F0
// FUNCTION: fn_13819 // FUNCTION: fn_13819
void UINewSkillListWnd::Slot28(int x, int y) { void UINewSkillListWnd::Slot28(int x, int y) {
const int gate = g_mouseRefreshGate; const int gate = g_session.m_simplifiedSkillList;
if (!this->IsSkillArea(x, y) || (gate != 0 && x > 96)) { if (!this->IsSkillArea(x, y) || (gate != 0 && x > 96)) {
return; return;
} }

View file

@ -1,5 +1,5 @@
#include "Client/Session.h"
#include "UI/Window/UINewSkillListWnd.h" #include "UI/Window/UINewSkillListWnd.h"
#include "UI/Window/WindowMouseHit.h"
// OFFSET: 0x009B0240 // OFFSET: 0x009B0240
// FUNCTION: fn_13804 // FUNCTION: fn_13804
@ -10,7 +10,7 @@ int UINewSkillListWnd::SkillIndexAt(int x, int y) {
int column = 0; int column = 0;
int row; int row;
if (g_mouseRefreshGate != 0) { if (g_session.m_simplifiedSkillList != 0) {
row = (y - 34) / 32; row = (y - 34) / 32;
} else { } else {
column = (x - 76) / 68; column = (x - 76) / 68;

View file

@ -28,7 +28,6 @@
#include "UI/Window/UIRoulletteWnd.h" #include "UI/Window/UIRoulletteWnd.h"
#include "UI/Window/UIWindow.h" #include "UI/Window/UIWindow.h"
#include "UI/Window/UIWindowMgr.h" #include "UI/Window/UIWindowMgr.h"
#include "UI/Window/WindowMouseHit.h"
#include <algorithm> #include <algorithm>
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>

View file

@ -1,3 +1,5 @@
#include "Client/Session.h"
#include "Client/Mode/ModeMgr.h"
#include "Client/Browser/WebBrowser.h" #include "Client/Browser/WebBrowser.h"
#include "Client/Input/Mouse.h" #include "Client/Input/Mouse.h"
#include "Client/Replay.h" #include "Client/Replay.h"
@ -11,12 +13,6 @@
#include "UI/Window/UIWindowMgr.h" #include "UI/Window/UIWindowMgr.h"
#include "UI/Layout/WindowCoordinates.h" #include "UI/Layout/WindowCoordinates.h"
#include "UI/Window/WindowManagerWindows.h" #include "UI/Window/WindowManagerWindows.h"
#include "UI/Window/WindowMouseHit.h"
// GLOBAL: gl_24656
int g_alternateDoubleClickGate;
// GLOBAL: gl_24657
int g_mouseRefreshGate;
// INLINED // INLINED
static void PromoteWindow(UIWindowMgr& mgr, UIWindow* window) { static void PromoteWindow(UIWindowMgr& mgr, UIWindow* window) {
@ -197,7 +193,7 @@ int UIWindowMgr::ProcessMouse() {
this->inputWindow->Slot25(localX, localY); this->inputWindow->Slot25(localX, localY);
} }
if (g_mouse.buttons[0] == 4 && (g_replayAnimationScaling == 0 || g_alternateDoubleClickGate == 0)) { if (g_mouse.buttons[0] == 4 && (g_replayAnimationScaling == 0 || g_modeMgr.state == 0)) {
this->inputWindow->Slot25(localX, localY); this->inputWindow->Slot25(localX, localY);
this->inputWindow->Slot26(localX, localY); this->inputWindow->Slot26(localX, localY);
} }
@ -238,7 +234,7 @@ int UIWindowMgr::ProcessMouse() {
const int localX = x - left; const int localX = x - left;
const int localY = y - top; const int localY = y - top;
if (g_mouse.buttons[0] == 4 && (g_replayAnimationScaling == 0 || g_alternateDoubleClickGate == 0)) { if (g_mouse.buttons[0] == 4 && (g_replayAnimationScaling == 0 || g_modeMgr.state == 0)) {
window->Slot26(localX, localY); window->Slot26(localX, localY);
} }
@ -321,7 +317,7 @@ int UIWindowMgr::ProcessMouse() {
if (this->window_03D8) { if (this->window_03D8) {
this->window_03D8->Invalidate(); this->window_03D8->Invalidate();
} }
if (this->window_02C4 && g_mouseRefreshGate == 0) { if (this->window_02C4 && g_session.m_simplifiedSkillList == 0) {
this->window_02C4->Invalidate(); this->window_02C4->Invalidate();
} }
if (this->window_4F170) { if (this->window_4F170) {

View file

@ -1,16 +0,0 @@
#ifndef RAGNAROK_SOURCE_UI_WINDOW_WINDOWMOUSEHIT_H
#define RAGNAROK_SOURCE_UI_WINDOW_WINDOWMOUSEHIT_H
#include <array>
#include <cstdint>
#include <deque>
#include <list>
#include <map>
class UIWindow;
#include "UI/Window/WindowManagerWindows.h"
extern int g_alternateDoubleClickGate;
extern int g_mouseRefreshGate;
#endif