Batch #4796 by willerthal: 0 byte-identical, 7 confirmed by peer review. - fn_04150 UILapineBoxWnd::Slot10: logic confirmed by peer review - fn_04151 UILapineBox_IngredientListWnd::Slot10: logic confirmed by peer review - fn_04153 UILapineBoxWnd::Slot15: logic confirmed by peer review - fn_04154 UILapineBox_IngredientListWnd::Slot15: logic confirmed by peer review - fn_04156 UILapineBoxWnd::Paint: logic confirmed by peer review - fn_04177 UILapineBoxWnd::AddIngredient: logic confirmed by peer review - fn_45447 UILapineBox_IngredientListWnd::UILapineBox_IngredientListWnd: logic confirmed by peer review Peer-reviewed-by: eAthena, Lumen, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_UISCROLLWND_H
|
|
#define RAGNAROK_SOURCE_UI_UISCROLLWND_H
|
|
|
|
#include "UI/Window/UIWindow.h"
|
|
|
|
#include <map>
|
|
#include <utility>
|
|
|
|
class CTexture;
|
|
class UIScrollBar;
|
|
|
|
class UIScrollWnd : public UIWindow {
|
|
public:
|
|
// INLINED
|
|
UIScrollWnd(UIWindowContext& windows, int width, int height, unsigned char cached)
|
|
: UIWindow(windows, cached), viewHeight(0), contentWidth(0), contentHeight(0), horizontalBar(nullptr), scrollBar(nullptr),
|
|
scrollBarWidth(13), scrollBarHeight(13), unknown_009C(0), scrollPosition(0), unknown_00A4(0), wheelScroll(0) {
|
|
this->Resize(width, height);
|
|
this->Slot15(width, height);
|
|
}
|
|
~UIScrollWnd() override;
|
|
void Slot15(int width, int height) override;
|
|
void Slot35(int delta) override;
|
|
RenderPrimitive* DrawPrimitive() override;
|
|
|
|
RenderPrimitive* BuildPrimitive(int x, int y, int sourceX, int sourceY, int width, int height, CTexture* texture, std::uint32_t color);
|
|
void Clear();
|
|
void RemoveChild(UIWindow* child, unsigned char destroy);
|
|
|
|
/* 0080 */ int viewHeight;
|
|
/* 0084 */ int contentWidth;
|
|
/* 0088 */ int contentHeight;
|
|
/* 008C */ UIScrollBar* horizontalBar;
|
|
/* 0090 */ UIScrollBar* scrollBar;
|
|
/* 0094 */ int scrollBarWidth;
|
|
/* 0098 */ int scrollBarHeight;
|
|
/* 009C */ int unknown_009C;
|
|
/* 00A0 */ int scrollPosition;
|
|
/* 00A4 */ unsigned char unknown_00A4;
|
|
/* 00A5 */ unsigned char wheelScroll;
|
|
/* 00A8 */ std::map<UIWindow*, std::pair<int, int>> childOrigins;
|
|
};
|
|
|
|
#endif
|