diff --git a/Source/UI/Rodex/UIRodexComposeWnd.cpp b/Source/UI/Rodex/UIRodexComposeWnd.cpp new file mode 100644 index 00000000..299f1993 --- /dev/null +++ b/Source/UI/Rodex/UIRodexComposeWnd.cpp @@ -0,0 +1,41 @@ +#include "UI/Rodex/UIRodexComposeWnd.h" + +#include "Resource/Bitmap/BitmapResource.h" +#include "Resource/ResourceMgr.h" +#include "Resource/TextureNames.h" + +// OFFSET: 0x00800DD0 +// FUNCTION: fn_10008 +void UIRodexScrollBar::Paint() { + this->ClearSurface(0xFF00FF); + + if (this->maximum == 0) { + return; + } + + if (this->vertical == 1) { + this->FillRegion(0, 0, 5, this->geometry.height, 0xFFFFFF); + const auto* upper = static_cast( + ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\scrollbar_arrow_upper.bmp")) + ); + this->DrawBitmap(0, 0, &upper->image, false); + + int offset = this->ThumbOffset() + this->arrowLength; + if (offset < 5) { + offset = 5; + } + + int length = this->ThumbLength(); + if (this->geometry.height - 10 < length) { + length = 1; + } + + this->FillRegion(0, offset, 5, length, 0xE9E9E9); + const auto* lower = static_cast( + ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\rodexsystem\\renewal\\scrollbar_arrow_down.bmp")) + ); + this->DrawBitmap(0, this->geometry.height - this->arrowLength, &lower->image, false); + } + + this->minimumThumb = 0; +} diff --git a/Source/UI/Rodex/UIRodexComposeWnd.h b/Source/UI/Rodex/UIRodexComposeWnd.h new file mode 100644 index 00000000..d33646a9 --- /dev/null +++ b/Source/UI/Rodex/UIRodexComposeWnd.h @@ -0,0 +1,11 @@ +#ifndef RAGNAROK_SOURCE_UI_RODEX_UIRODEXCOMPOSEWND_H +#define RAGNAROK_SOURCE_UI_RODEX_UIRODEXCOMPOSEWND_H + +#include "UI/Lists/UIScrollBar.h" + +class UIRodexScrollBar : public UIScrollBar { +public: + void Paint() override; +}; + +#endif diff --git a/data/compile.json b/data/compile.json index 31ad6baa..a17f69d3 100644 --- a/data/compile.json +++ b/data/compile.json @@ -821,6 +821,7 @@ "Source/UI/Quest/UIRecommendedQuestInfo.cpp": 2, "Source/UI/Quest/UIRenewQuestUI.cpp": 2, "Source/UI/Quest/UIRenewQuestWnd.cpp": 2, + "Source/UI/Rodex/UIRodexComposeWnd.cpp": 2, "Source/UI/RuneSystem/UIRuneSystemWnd.cpp": 2, "Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp": 2, "Source/UI/Shop/ItemDrawing.cpp": 2,