Decompile fn_13565 (UIMiniMapWnd::Slot11)
Batch #6222 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_13565 UIMiniMapWnd::Slot11: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, System4z 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
055b023898
commit
717ae1a811
2 changed files with 18 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include "Client/Session.h"
|
||||
#include "Contents/MessageTable.h"
|
||||
#include "Contents/TownInfoMgr.h"
|
||||
#include "Contents/UserData/NormalItemSlots.h"
|
||||
#include "UI/Buttons/UIBitmapButton.h"
|
||||
#include "UI/Buttons/UIButton.h"
|
||||
#include "UI/Dialogs/UIMiniMapWnd.h"
|
||||
|
|
@ -148,3 +149,17 @@ void UIMiniMapWnd::ResetCursor(int, int) {
|
|||
this->m_context->cursor.Set(0, this->m_context->cursorTick);
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x0099DC90
|
||||
// FUNCTION: fn_13565
|
||||
void UIMiniMapWnd::Slot11() {
|
||||
if (this->m_saved) {
|
||||
this->m_saved->width = this->geometry.x;
|
||||
this->m_saved->height = this->geometry.y;
|
||||
this->m_saved->unknown_0010 = this->geometry.width;
|
||||
this->m_saved->unknown_0014 = this->geometry.height;
|
||||
}
|
||||
this->m_saved->unknown_0018 = this->unknown_011C->geometry.unknown_0030 != 0;
|
||||
this->m_saved->unknown_001C = this->unknown_0120->geometry.unknown_0030 != 0;
|
||||
this->m_saved->unknown_0020 = this->unknown_0124->geometry.unknown_0030 != 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include <vector>
|
||||
|
||||
class UIBitmapButton;
|
||||
struct MiniMapWndInfo;
|
||||
struct UIButtonContext;
|
||||
|
||||
struct MiniMapMark {
|
||||
|
|
@ -16,12 +17,13 @@ struct MiniMapMark {
|
|||
|
||||
class UIMiniMapWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Slot11() override;
|
||||
void Slot25(int x, int y) override;
|
||||
void ResetCursor(int x, int y) override;
|
||||
void AddTownMarks();
|
||||
int LoadMemos();
|
||||
|
||||
/* 00B4 */ unsigned char unknown_00B4[0x4];
|
||||
/* 00B4 */ MiniMapWndInfo* m_saved;
|
||||
/* 00B8 */ float scale;
|
||||
/* 00BC */ float originX;
|
||||
/* 00C0 */ float originY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue