Batch #16845 by eAthena: 1 byte-identical, 3 confirmed by peer review. - fn_15025 CUIListBoxEx<EquipmentPropertiesWnd::CUIItemEquipmentPropertiesLine,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::CUIListBoxEx<EquipmentPropertiesWnd::CUIItemEquipmentPropertiesLine,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >: byte-identical - fn_15034 CUIListBoxEx<EquipmentPropertiesWnd::CUIItemEquipmentPropertiesLine,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::OnCreate: logic confirmed by peer review - fn_09312 UIAdvenPartyBoardWnd::SendMsg: logic confirmed by peer review (already on main) - fn_09314 UIRegisterPartyWnd::SendMsg: logic confirmed by peer review (already on main) Peer-reviewed-by: ragnarok-clanker, Yommy, br4yan Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
34 lines
915 B
C++
34 lines
915 B
C++
#include "UI/Party/UIJobSlotButton.h"
|
|
|
|
// OFFSET: 0x007BAD70
|
|
// FUNCTION: fn_09276
|
|
UIJobSlotButton::UIJobSlotButton() : UIBitmapButton(), selected(0) {
|
|
}
|
|
|
|
UIJobSlotButton::~UIJobSlotButton() = default;
|
|
|
|
// OFFSET: 0x007BFC70
|
|
// FUNCTION: fn_09307
|
|
void UIJobSlotButton::OnLBtnUp(int x, int y) {
|
|
this->UIButton::OnLBtnUp(x, y);
|
|
this->SetSelected(this->selected == 0);
|
|
}
|
|
|
|
// OFFSET: 0x007C1C50
|
|
// FUNCTION: fn_09318
|
|
void UIJobSlotButton::SetSelected(bool value) {
|
|
this->selected = value;
|
|
this->SetState(0);
|
|
|
|
if (value == 1) {
|
|
this->SetBitmap(this->selectedImage.c_str(), 0, 0);
|
|
this->SetBitmap(this->selectedImage.c_str(), 1, 0);
|
|
this->SetBitmap(this->unselectedImage.c_str(), 2, 0);
|
|
} else {
|
|
this->SetBitmap(this->unselectedImage.c_str(), 0, 0);
|
|
this->SetBitmap(this->unselectedImage.c_str(), 1, 0);
|
|
this->SetBitmap(this->selectedImage.c_str(), 2, 0);
|
|
}
|
|
|
|
this->Invalidate();
|
|
}
|