Batch #8166 by Montyla: 0 byte-identical, 3 confirmed by peer review. - fn_11059 UIListBoxTitle::UIListBoxTitle: logic confirmed by peer review - fn_11070 UIScrollBar2::UIScrollBar2: logic confirmed by peer review - fn_11071 UIScrollBar3::UIScrollBar3: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy, ragnarok-clanker, secret Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
69 lines
1.6 KiB
C++
69 lines
1.6 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_LISTS_UISCROLLBARVARIANTS_H
|
|
#define RAGNAROK_SOURCE_UI_LISTS_UISCROLLBARVARIANTS_H
|
|
|
|
#include "UI/Lists/UIScrollBar.h"
|
|
#include "UI/Text/UIString.h"
|
|
|
|
#include <string>
|
|
|
|
#include "Contents/SkinMgr.h"
|
|
#include "Resource/SkinPalette.h"
|
|
#include "UI/Lists/UIListBoxID.h"
|
|
|
|
class CBitmapRes;
|
|
|
|
class UIScrollBar2 : public UIScrollBar {
|
|
public:
|
|
UIScrollBar2();
|
|
explicit UIScrollBar2(UIWindowContext& windows) : UIScrollBar(windows) {
|
|
this->arrowLength = 10;
|
|
}
|
|
|
|
void Paint() override;
|
|
};
|
|
|
|
class UIScrollBar3 : public UIScrollBar {
|
|
public:
|
|
UIScrollBar3();
|
|
explicit UIScrollBar3(UIWindowContext& windows) : UIScrollBar(windows) {
|
|
this->arrowLength = 9;
|
|
}
|
|
|
|
void Paint() override;
|
|
};
|
|
|
|
class UIScrollBar4 : public UIScrollBar {
|
|
public:
|
|
explicit UIScrollBar4(UIWindowContext& windows);
|
|
|
|
void Paint() override;
|
|
|
|
/* 00B4 */ int m_thumbLength;
|
|
};
|
|
|
|
class UIScrollBar_Custom : public UIScrollBar {
|
|
public:
|
|
explicit UIScrollBar_Custom(UIWindowContext& windows);
|
|
|
|
/* 00B4 */ CBitmapRes* m_trackTop;
|
|
/* 00B8 */ CBitmapRes* m_trackMiddle;
|
|
/* 00BC */ CBitmapRes* m_trackBottom;
|
|
/* 00C0 */ CBitmapRes* m_arrowUp;
|
|
/* 00C4 */ CBitmapRes* m_arrowDown;
|
|
/* 00C8 */ CBitmapRes* m_thumbTop;
|
|
/* 00CC */ CBitmapRes* m_thumbMiddle;
|
|
/* 00D0 */ CBitmapRes* m_thumbBottom;
|
|
|
|
void Paint() override;
|
|
void SetArrowBitmaps(std::string up, std::string down);
|
|
void SetThumbBitmaps(std::string top, std::string middle, std::string bottom);
|
|
};
|
|
|
|
class UIZeroQuestScrollBar : public UIScrollBar {
|
|
public:
|
|
explicit UIZeroQuestScrollBar(UIWindowContext& windows);
|
|
|
|
void Paint() override;
|
|
};
|
|
|
|
#endif
|