Decompile 2 functions in Source/UI/Buttons/UIButton.cpp
Batch #11558 by dori: 0 byte-identical, 2 confirmed by peer review. - fn_10858 UIButton::Slot28: logic confirmed by peer review - fn_10875 UIButton::ResetCursor: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, Tanke, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
5310f019c9
commit
922c094330
1 changed files with 3 additions and 2 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "UI/Window/UINewSelectCharWnd.h"
|
||||
#include "Contents/MessageTable.h"
|
||||
#include "Client/Mode/CMode.h"
|
||||
#include "Client/Mode/ModeMgr.h"
|
||||
#include "Client/Mode/ModeEvents.h"
|
||||
#include "Resource/Bitmap/BitmapResource.h"
|
||||
#include "Resource/ResourceMgr.h"
|
||||
|
|
@ -119,7 +120,7 @@ void UIButton::Slot28(int x, int y) {
|
|||
screenY = (screenY + window->geometry.y);
|
||||
}
|
||||
|
||||
static_cast<CMode*>(g_charViewMode)->ShowTooltip(this->m_tooltip.c_str(), screenX, screenY, -1, false, true);
|
||||
g_modeMgr.gameMode->ShowTooltip(this->m_tooltip.c_str(), screenX, screenY, -1, false, true);
|
||||
}
|
||||
|
||||
if (this->m_disabled == 0) {
|
||||
|
|
@ -141,7 +142,7 @@ void UIButton::Slot29(int x, int y) {
|
|||
// OFFSET: 0x0085F950
|
||||
// FUNCTION: fn_10875
|
||||
void UIButton::ResetCursor(int, int) {
|
||||
static_cast<CMode*>(g_charViewMode)->SetCursorAction(this->m_disabled != 0 ? 0 : 2);
|
||||
g_modeMgr.gameMode->SetCursorAction(this->m_disabled != 0 ? 0 : 2);
|
||||
}
|
||||
|
||||
// OFFSET: 0x0085EED0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue