Decompile fn_13609 (UIItemRepairWnd::Paint)
Batch #2901 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_13609 UIItemRepairWnd::Paint: logic confirmed by peer review Peer-reviewed-by: meitogi, willerthal, Lumen Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/UI/Items/UIItemRepairWnd.cpp, Source/UI/Items/UIMakeTargetListWnd.cpp, Source/UI/Items/UIWeaponRefineWnd.cpp
This commit is contained in:
parent
67ad843c28
commit
c331f8da05
7 changed files with 76 additions and 0 deletions
13
Source/UI/Items/UIItemRepairWnd.cpp
Normal file
13
Source/UI/Items/UIItemRepairWnd.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "UI/Items/UIItemRepairWnd.h"
|
||||
|
||||
#include "Contents/MessageTable.h"
|
||||
#include "UI/Buttons/UIButton.h"
|
||||
|
||||
// OFFSET: 0x009A3860
|
||||
// FUNCTION: fn_13609
|
||||
void UIItemRepairWnd::Paint() {
|
||||
auto& controls = *this->m_controls;
|
||||
const int titleHeight = this->DrawTitleBar(controls.fonts, controls.locale, true, LookupMessage(812), 0);
|
||||
this->DrawPanelBackground(titleHeight, 0, "");
|
||||
this->DrawButtonBar(2, 0, 1);
|
||||
}
|
||||
16
Source/UI/Items/UIItemRepairWnd.h
Normal file
16
Source/UI/Items/UIItemRepairWnd.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef RAGNAROK_SOURCE_UI_ITEMS_UIITEMREPAIRWND_H
|
||||
#define RAGNAROK_SOURCE_UI_ITEMS_UIITEMREPAIRWND_H
|
||||
|
||||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
struct UIButtonContext;
|
||||
|
||||
class UIItemRepairWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Paint() override;
|
||||
|
||||
protected:
|
||||
UIButtonContext* m_controls;
|
||||
};
|
||||
|
||||
#endif
|
||||
6
Source/UI/Items/UIMakeTargetListWnd.cpp
Normal file
6
Source/UI/Items/UIMakeTargetListWnd.cpp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include "UI/Items/UIMakeTargetListWnd.h"
|
||||
|
||||
#include "Contents/MessageTable.h"
|
||||
#include "UI/Buttons/UIButton.h"
|
||||
|
||||
// OFFSET: 0x009A38A0
|
||||
16
Source/UI/Items/UIMakeTargetListWnd.h
Normal file
16
Source/UI/Items/UIMakeTargetListWnd.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef RAGNAROK_SOURCE_UI_ITEMS_UIMAKETARGETLISTWND_H
|
||||
#define RAGNAROK_SOURCE_UI_ITEMS_UIMAKETARGETLISTWND_H
|
||||
|
||||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
struct UIButtonContext;
|
||||
|
||||
class UIMakeTargetListWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Paint() override;
|
||||
|
||||
protected:
|
||||
UIButtonContext* m_controls;
|
||||
};
|
||||
|
||||
#endif
|
||||
6
Source/UI/Items/UIWeaponRefineWnd.cpp
Normal file
6
Source/UI/Items/UIWeaponRefineWnd.cpp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include "UI/Items/UIWeaponRefineWnd.h"
|
||||
|
||||
#include "Contents/MessageTable.h"
|
||||
#include "UI/Buttons/UIButton.h"
|
||||
|
||||
// OFFSET: 0x009A3CD0
|
||||
16
Source/UI/Items/UIWeaponRefineWnd.h
Normal file
16
Source/UI/Items/UIWeaponRefineWnd.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef RAGNAROK_SOURCE_UI_ITEMS_UIWEAPONREFINEWND_H
|
||||
#define RAGNAROK_SOURCE_UI_ITEMS_UIWEAPONREFINEWND_H
|
||||
|
||||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
struct UIButtonContext;
|
||||
|
||||
class UIWeaponRefineWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Paint() override;
|
||||
|
||||
protected:
|
||||
UIButtonContext* m_controls;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -640,6 +640,9 @@
|
|||
"Source/UI/Edit/UIEditLinks.cpp": 2,
|
||||
"Source/UI/Edit/UIEditVariants.cpp": 2,
|
||||
"Source/UI/FrameSkin.cpp": 2,
|
||||
"Source/UI/Items/UIItemRepairWnd.cpp": 2,
|
||||
"Source/UI/Items/UIMakeTargetListWnd.cpp": 2,
|
||||
"Source/UI/Items/UIWeaponRefineWnd.cpp": 2,
|
||||
"Source/UI/Layout/SnapMgr.cpp": 2,
|
||||
"Source/UI/Layout/SnapObject.cpp": 2,
|
||||
"Source/UI/Layout/SnapRectangle.cpp": 2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue