rodecomp/Source/UI/UIItemReformWnd.h
ragnarok-clanker ffbeee0f2a Maintenance: Forced maintainer submission (resubmission of 14678 after td sync to 8deac7a3; replaces 14460 and 14473). Native-run fix
Batch #14681 by ragnarok-clanker: forced by an admin (6 lower score(s), 70 changed function(s)); checked with 555 compiled unit(s), including every includer of Source/Client/Mode/CLoginMode.h, Source/Client/Session.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/GrannyGameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/Actors/RenderObject.h, Source/Contents/EffectResourceSwitcher.h, Source/Contents/Effects/CartCannon.h, Source/Contents/Effects/EZ2STREffectEx.h, Source/Contents/Effects/EffectActor.h, Source/Contents/Effects/MonsterSkillEffects.h, Source/Contents/Effects/RagEffect.h, Source/Contents/Effects/RectUpEffect.h, Source/Contents/Ground/GroundGeometry.h, Source/Network/Connection/Connection.h, Source/Resource/Audio/WaveResource.h, Source/Resource/Bitmap/BitmapResource.h, Source/Resource/EZeffectResource.h, Source/Resource/EmblemResource.h, Source/Resource/GifResource.h, Source/Resource/ImfResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Models/ModelResource.h, Source/Resource/PaletteResource.h, Source/Resource/RmaResource.h, Source/Resource/Sprites/ActionResource.h, Source/Resource/Sprites/SpriteResource.h, Source/Resource/World/GroundResource.h, Source/Resource/World/TerrainResource.h, Source/Resource/World/WorldResource.h, Source/UI/Buttons/UIBmpRadioBtn.h, Source/UI/Buttons/UITextButton.h, Source/UI/Item/UIItemPurchaseWnd.h, Source/UI/Item/UIItemSellWnd.h, Source/UI/Item/UIItemSellWnd2.h, Source/UI/Item/UIItemStoreWnd.h, Source/UI/Item/UIItemWnd.h, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Items/UIItemRepairWnd.h, Source/UI/Items/UIMakeTargetListWnd.h, Source/UI/Items/UIMakeTargetProcessWnd.h, Source/UI/Items/UIWeaponRefineWnd.h, Source/UI/Rodex/UIRodexInboxWnd.h, Source/UI/Shop/UIMerchantItemShopWnd.h, Source/UI/Shop/UIMerchantMirrorItemWnd.h, Source/UI/Shop/UIMerchantShopMakeWnd.h, Source/UI/StylingShop/UIStylingShopWnd.h, Source/UI/UIChangeMaterialWnd.h, Source/UI/UIIngredientInfoWnd.h, Source/UI/UIItemReformWnd.h, Source/UI/UILapineScrollBar.h, Source/UI/Window/UIHotKeyWnd.h, Source/UI/Window/UINewSelectCharWnd.h.
2026-11-07 14:05:21 +00:00

98 lines
2.8 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_UIITEMREFORMWND_H
#define RAGNAROK_SOURCE_UI_UIITEMREFORMWND_H
#include "Contents/Items/ItemInfo.h"
#include "UI/Buttons/UIButton.h"
#include "UI/Lists/UIScrollBar.h"
#include "UI/Window/UIFrameWnd.h"
#include <cstdint>
#include <string>
#include <vector>
class UIBasicButton;
class UIItemReformWnd_List : public UIFrameWnd {
public:
UIItemReformWnd_List();
void Move(int x, int y) override;
void Slot15(int width, int height) override;
void Paint() override;
// INLINED
void Slot25(int, int) override {}
// INLINED
void Slot27(int, int) override {}
void Slot28(int x, int y) override;
void Slot31(int x, int y) override;
void Slot33(int x, int y) override;
void Slot35(int delta) override;
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
/* 00B4 */ unsigned int itemHeight;
/* 00B8 */ unsigned int visibleCount;
/* 00BC */ unsigned int selectedIndex;
/* 00C0 */ unsigned int hoverIndex;
/* 00C4 */ unsigned int scrollPosition;
/* 00C8 */ UIScrollBar* scrollBar;
/* 00CC */ std::vector<ITEM_INFO> items;
void UpdateScrollBar();
};
class UIItemReformWnd_Item : public UIWindow {
public:
// INLINED
explicit UIItemReformWnd_Item() : UIWindow(0), item(nullptr) {
}
void Paint() override;
void Slot28(int x, int y) override;
void Slot32(int x, int y) override;
/* 007C */ ITEM_INFO* item;
};
class UIItemReformWnd_DetailBtn : public UIButton {
public:
// INLINED
UIItemReformWnd_DetailBtn() : UIButton() {
}
void Paint() override;
void Slot47() override;
void Slot48() override;
};
class UIItemReformWnd_DetailMsg : public UIWindow {
public:
// INLINED
explicit UIItemReformWnd_DetailMsg() : UIWindow(0) {
}
void Paint() override;
void SetText(const std::string& text);
};
class UIItemReformWnd : public UIFrameWnd {
public:
UIItemReformWnd();
void Slot15(int width, int height) override;
void Slot19() override;
void Paint() override;
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
void SelectItem(ITEM_INFO* item);
/* 00B4 */ UIBasicButton* reformButton;
/* 00B8 */ UIItemReformWnd_List* list;
/* 00BC */ UIItemReformWnd_Item* baseIcon;
/* 00C0 */ UIItemReformWnd_Item* resultIcon;
/* 00C4 */ std::vector<UIItemReformWnd_Item*> materialIcons;
/* 00D0 */ UIItemReformWnd_DetailBtn* detailButton;
/* 00D4 */ UIItemReformWnd_DetailMsg* detailMsg;
/* 00D8 */ ITEM_INFO reformItem;
/* 01D0 */ ITEM_INFO* selectedItem;
/* 01D8 */ ITEM_INFO resultItem;
/* 02D0 */ std::vector<ITEM_INFO> materials;
/* 02DC */ std::string information;
/* 02F4 */ std::string warning;
};
#endif