Batch #5864 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_12829 UISeekPartyListWnd::InitJobFilter: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, KWDev 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/Window/UISeekPartyMBWnd.cpp
68 lines
2 KiB
C++
68 lines
2 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_WINDOW_UISEEKPARTYLISTWND_H
|
|
#define RAGNAROK_SOURCE_UI_WINDOW_UISEEKPARTYLISTWND_H
|
|
|
|
#include "Contents/Party/PartyBookingInfo.h"
|
|
#include "UI/Window/UIFrameWnd.h"
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class UICheckBox;
|
|
class UIComboBoxDefWnd;
|
|
class UIScrollBar;
|
|
struct SeekPartyListWndInfo;
|
|
|
|
struct SeekPartyMapEntry {
|
|
/* 0000 */ std::string name;
|
|
/* 0018 */ unsigned int color;
|
|
};
|
|
|
|
class UISeekPartyListWnd : public UIFrameWnd {
|
|
public:
|
|
void Slot11() override;
|
|
void Slot25(int x, int y) override;
|
|
void Slot26(int x, int y) override;
|
|
void Slot35(int delta) override;
|
|
void NotifyNewAd();
|
|
void UpdateScrollBar();
|
|
bool MatchesFilter(PARTY_BOOKING_AD_INFO info);
|
|
void InitRegionFilter();
|
|
void InitJobFilter();
|
|
void SelectRegion(int region);
|
|
void SelectJobCategory(int category);
|
|
|
|
protected:
|
|
int HitTestRow(int x, int y);
|
|
|
|
/* 00BC */ unsigned char unknown_00BC[0x24];
|
|
/* 00E0 */ UIComboBoxDefWnd* m_regionCombo;
|
|
/* 00E4 */ UIComboBoxDefWnd* m_mapCombo;
|
|
/* 00E8 */ UIComboBoxDefWnd* m_jobCategoryCombo;
|
|
/* 00EC */ UIComboBoxDefWnd* m_jobCombo;
|
|
/* 00F0 */ UICheckBox* m_alarmCheck;
|
|
/* 00F4 */ unsigned char unknown_00F4[0x14];
|
|
/* 0108 */ UIScrollBar* m_scrollBar;
|
|
/* 010C */ unsigned char unknown_010C[0x4];
|
|
/* 0110 */ std::map<int, std::vector<SeekPartyMapEntry>> m_regionMaps;
|
|
/* 0118 */ std::vector<std::string> m_jobOptions[9];
|
|
/* 0184 */ int unknown_0184;
|
|
/* 0188 */ int m_mapIndex;
|
|
/* 018C */ int m_jobCategory;
|
|
/* 0190 */ int m_jobCategoryChanged;
|
|
/* 0194 */ unsigned char unknown_0194[0x10];
|
|
/* 01A4 */ int m_firstRow;
|
|
/* 01A8 */ int m_hoverIndex;
|
|
/* 01AC */ int m_columnCount;
|
|
/* 01B0 */ int m_visibleRows;
|
|
/* 01B4 */ int unknown_01B4;
|
|
/* 01B8 */ int m_scrollable;
|
|
/* 01BC */ unsigned char unknown_01BC[0x8];
|
|
/* 01C4 */ short m_filterLevel;
|
|
/* 01C6 */ short m_filterMap;
|
|
/* 01C8 */ short m_filterJob;
|
|
/* 01CA */ unsigned char unknown_01CA[6];
|
|
/* 01D0 */ SeekPartyListWndInfo* m_saved;
|
|
};
|
|
|
|
#endif
|