Batch #3854 by youko: 5 byte-identical, 5 confirmed by peer review. - fn_15193 CUIListBoxEx<ExchangeUI::CUIItem,ExchangeUI::CItemData>::Paint: byte-identical - fn_15194 CUIListBoxEx<ExchangeUI::CUIItem,ExchangeUI::CItemData>::Slot35: logic confirmed by peer review - fn_15196 CUIListBoxEx<ExchangeUI::CUIItem,ExchangeUI::CItemData>::SetOnSelect: logic confirmed by peer review - fn_15197 CUIListBoxEx<ExchangeUI::CUIItem,ExchangeUI::CItemData>::SetBinder: logic confirmed by peer review - fn_15201 CUIListBoxEx<ExchangeUI::CUIItem,ExchangeUI::CItemData>::SetImages: logic confirmed by peer review - fn_15289 CUIExchangeUI::OnCheckChanged: byte-identical - fn_15292 CUIExchangeUI::OnEditSubmit: byte-identical - fn_15293 CUIExchangeUI::OnSelectFirstListItem: byte-identical - fn_15295 CUIExchangeUI::OnSelectSecondListItem: byte-identical - fn_15297 ExchangeUI::CUIItem::Paint: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy 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/Exchange/UIExchangeUI.cpp
71 lines
2.1 KiB
C++
71 lines
2.1 KiB
C++
#include "UI/Exchange/UIExchangeUI.h"
|
|
|
|
#include "Resource/ResourceMgr.h"
|
|
#include "Resource/SkinPalette.h"
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
#include <windows.h>
|
|
|
|
template void CUIListBoxEx<ExchangeUI::CUIItem, ExchangeUI::CItemData>::SetOnSelect(std::function<void(ExchangeUI::CUIItem*, const ExchangeUI::CItemData&)>);
|
|
template void CUIListBoxEx<ExchangeUI::CUIItem, ExchangeUI::CItemData>::SetBinder(std::function<void(ExchangeUI::CUIItem*, const ExchangeUI::CItemData&)>);
|
|
template void CUIListBoxEx<ExchangeUI::CUIItem, ExchangeUI::CItemData>::SetImages(const std::string&, const std::string&, const std::string&,
|
|
const std::string&);
|
|
|
|
// OFFSET: 0x00A15150
|
|
// FUNCTION: fn_15193
|
|
template <>
|
|
void CUIListBoxEx<ExchangeUI::CUIItem, ExchangeUI::CItemData>::Paint() {
|
|
this->ClearSurface(0xFFFF00FF);
|
|
}
|
|
|
|
// OFFSET: 0x00A15160
|
|
// FUNCTION: fn_15194
|
|
template <>
|
|
void CUIListBoxEx<ExchangeUI::CUIItem, ExchangeUI::CItemData>::Slot35(int value) {
|
|
if (!this->scrollBar->dragging && this->scrollBar->total > this->scrollBar->visible) {
|
|
this->scrollBar->Slot35(value);
|
|
} else if (this->parent) {
|
|
this->parent->Slot35(value);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00A157C0
|
|
|
|
// OFFSET: 0x00A171A0
|
|
|
|
// OFFSET: 0x00A17530
|
|
// FUNCTION: fn_15289
|
|
void CUIExchangeUI::OnCheckChanged(bool) {
|
|
}
|
|
|
|
// OFFSET: 0x00A17540
|
|
|
|
// OFFSET: 0x00A17670
|
|
// FUNCTION: fn_15292
|
|
void CUIExchangeUI::OnEditSubmit() {
|
|
}
|
|
|
|
// OFFSET: 0x00A17680
|
|
// FUNCTION: fn_15293
|
|
void CUIExchangeUI::OnSelectFirstListItem(ExchangeUI::CUIItem*, const ExchangeUI::CItemData&) {
|
|
}
|
|
|
|
// OFFSET: 0x00A176A0
|
|
// FUNCTION: fn_15295
|
|
void CUIExchangeUI::OnSelectSecondListItem(ExchangeUI::CUIItem*, const ExchangeUI::CItemData&) {
|
|
}
|
|
|
|
// OFFSET: 0x00A176C0
|
|
// FUNCTION: fn_15297
|
|
void ExchangeUI::CUIItem::Paint() {
|
|
if (this->frozen) {
|
|
unsigned red = 0;
|
|
unsigned green = 0;
|
|
unsigned blue = 0;
|
|
SkinPaletteChannels(ResourceMgr::Instance(), 10, 6, red, green, blue);
|
|
this->ClearSurface(RGB(red, green, blue));
|
|
} else {
|
|
this->ClearSurface(0xFFFFFFFF);
|
|
}
|
|
}
|