Decompile fn_10008 (UIRodexScrollBar::Paint)
Batch #4279 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_10008 UIRodexScrollBar::Paint: logic confirmed by peer review Peer-reviewed-by: bigodeira, KWDev, Snow 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/Rodex/UIRodexComposeWnd.cpp
This commit is contained in:
parent
b7355e9069
commit
fe40d65c4f
3 changed files with 53 additions and 0 deletions
41
Source/UI/Rodex/UIRodexComposeWnd.cpp
Normal file
41
Source/UI/Rodex/UIRodexComposeWnd.cpp
Normal file
|
|
@ -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<CBitmapRes*>(
|
||||
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<CBitmapRes*>(
|
||||
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;
|
||||
}
|
||||
11
Source/UI/Rodex/UIRodexComposeWnd.h
Normal file
11
Source/UI/Rodex/UIRodexComposeWnd.h
Normal file
|
|
@ -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
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue