From 7fd8a3bd08171bf2b05755af15b79d95a24fa26d Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 13:15:33 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Shop/ItemDrawing.cpp, Source/UI/Shop/ItemDrawing.h Batch #1452 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_11718 DrawItemIconById: logic confirmed by peer review - fn_11719 DrawItemSlotBackground: logic confirmed by peer review Reviewed-by: ragnarok-clanker --- Source/UI/Shop/ItemDrawing.cpp | 20 ++++++++++++++++++++ Source/UI/Shop/ItemDrawing.h | 3 +++ 2 files changed, 23 insertions(+) diff --git a/Source/UI/Shop/ItemDrawing.cpp b/Source/UI/Shop/ItemDrawing.cpp index 73e3a66..dbd7756 100644 --- a/Source/UI/Shop/ItemDrawing.cpp +++ b/Source/UI/Shop/ItemDrawing.cpp @@ -2,6 +2,7 @@ #include "Contents/Items/ItemInfo.h" #include "Resource/Bitmap/BitmapResource.h" #include "Resource/ResourceMgr.h" +#include "Resource/TextureNames.h" #include "UI/Shop/ItemDrawing.h" #include "UI/Window/UIWindow.h" @@ -19,6 +20,25 @@ void DrawItemIcon(UIWindow& window, ResourceMgr& resources, ItemDescriptions& de } } +// OFFSET: 0x008A8F80 +// FUNCTION: fn_11718 +void DrawItemIconById(UIWindow& window, TextureNames& names, ItemDescriptions& descriptions, int x, int y, const char* id, unsigned char identified) { + char path[128]; + descriptions.IconPath(path, id, identified); + CBitmapRes* bitmap = static_cast(ResourceMgr::Instance().Load(names.Resolve(path))); + + if (bitmap) { + window.DrawBitmap(x, y, &bitmap->image, true); + } +} + +// OFFSET: 0x008A9000 +// FUNCTION: fn_11719 +void DrawItemSlotBackground(UIWindow& window, TextureNames& names, int x, int y) { + CBitmapRes* bitmap = static_cast(ResourceMgr::Instance().Load(names.Resolve("유저인터페이스\\basic_interface\\itemwin_mid.bmp"))); + window.DrawBitmap(x, y, bitmap ? &bitmap->image : nullptr, false); +} + // OFFSET: 0x008A9040 // FUNCTION: fn_11720 void DrawItemWithQuantity( diff --git a/Source/UI/Shop/ItemDrawing.h b/Source/UI/Shop/ItemDrawing.h index 29977e8..82b6500 100644 --- a/Source/UI/Shop/ItemDrawing.h +++ b/Source/UI/Shop/ItemDrawing.h @@ -7,8 +7,11 @@ class UIWindow; class ResourceMgr; class FontCache; struct TextLocale; +struct TextureNames; void DrawItemIcon(UIWindow& window, ResourceMgr& resources, ItemDescriptions& descriptions, int x, int y, const ItemInfo& item, unsigned char identified); +void DrawItemIconById(UIWindow& window, TextureNames& names, ItemDescriptions& descriptions, int x, int y, const char* id, unsigned char identified); +void DrawItemSlotBackground(UIWindow& window, TextureNames& names, int x, int y); void DrawItemWithQuantity( UIWindow& window, ResourceMgr& resources, ItemDescriptions& descriptions, FontCache& fonts, const TextLocale& locale, int x, int y, const ItemInfo& item, unsigned char identified, unsigned char plain