Batch #3721 by youko: 5 byte-identical, 3 confirmed by peer review. - fn_10813 UINoneVisibleButton::Paint: byte-identical - fn_10822 UITextureButton::Paint: byte-identical - fn_10827 UIEditCtrlVarId::Slot24: byte-identical - fn_10833 UISlotBitmap::Slot26: byte-identical - fn_10844 UIRadioBtn::Slot25: logic confirmed by peer review - fn_10846 UISlotBitmap::Slot25: logic confirmed by peer review - fn_10862 UIResizer::Slot28: byte-identical - fn_10887 UISlotBitmap::Slot32: logic confirmed by peer review 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/Buttons/UIBmpTextButton2.cpp, Source/UI/Buttons/UIColorButton.cpp, Source/UI/Buttons/UINoneVisibleButton.cpp, Source/UI/Buttons/UIRadioBtn.cpp, Source/UI/Buttons/UITextureButton.cpp, Source/UI/Chat/UIChatRoomTitle.cpp, Source/UI/Shop/UIMerchantShopTitle.cpp, Source/UI/UISlotBitmap.cpp, Source/UI/Window/UIBitmapTab.cpp, Source/UI/Window/UIEmblemWnd.cpp, Source/UI/Window/UIResizer.cpp, Source/UI/Window/UITab.cpp, Source/UI/Window/UIWordDisplayWnd.cpp
130 lines
3.2 KiB
C++
130 lines
3.2 KiB
C++
#include "Client/Input/Language.h"
|
|
#include "Contents/SkinMgr.h"
|
|
#include "Resource/Bitmap/BitmapResource.h"
|
|
#include "Resource/ResourceMgr.h"
|
|
#include "Resource/SkinPalette.h"
|
|
#include "Resource/TextureNames.h"
|
|
#include "UI/Window/InputFocus.h"
|
|
#include "UI/Edit/UIEditCtrl.h"
|
|
|
|
// OFFSET: 0x0084F250
|
|
// FUNCTION: fn_10657
|
|
UIEditCtrl2::UIEditCtrl2(UIWindowContext& windows, UIEditContext& edit) : UIEditCtrl(windows, edit) {
|
|
}
|
|
|
|
// OFFSET: 0x00852700
|
|
UIEditCtrl2::~UIEditCtrl2() = default;
|
|
|
|
// OFFSET: 0x00863BF0
|
|
// FUNCTION: fn_10911
|
|
int UIEditCtrl2::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
|
|
if (message != 0) {
|
|
this->UIEditCtrl::SendMsg(sender, message, a, b, c, d);
|
|
} else {
|
|
InputFocus& focus = this->m_edit->focus;
|
|
if (focus.IsLast(focus.window)) {
|
|
focus.First();
|
|
} else {
|
|
focus.Next();
|
|
}
|
|
|
|
this->UIWindow::SendMsg(sender, message, a, b, c, d);
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x0084F570
|
|
// FUNCTION: fn_10659
|
|
UIEditCtrl3::UIEditCtrl3(UIWindowContext& windows, UIEditContext& edit) : UIEditCtrl2(windows, edit) {
|
|
this->unknown_0130 = 0;
|
|
this->unknown_0134 = 0;
|
|
this->unknown_0138 = 14;
|
|
this->unknown_013C = 0;
|
|
this->unknown_0140 = 0;
|
|
this->unknown_0144 = 0;
|
|
this->unknown_0148 = 0;
|
|
this->unknown_014C = 0;
|
|
this->unknown_0150 = 0;
|
|
this->unknown_0154 = 0;
|
|
this->unknown_0158 = 0;
|
|
this->unknown_015C = 0;
|
|
this->unknown_015E = 0;
|
|
this->unknown_0184 = 0;
|
|
this->unknown_0160 = 0;
|
|
this->unknown_0164 = 0;
|
|
}
|
|
|
|
// OFFSET: 0x0084F7B0
|
|
// FUNCTION: fn_10660
|
|
UIEditCtrl4::UIEditCtrl4(UIWindowContext& windows, UIEditContext& edit) : UIEditCtrl(windows, edit), placeholderColor(0xFFFFFFFFu), placeholderEnabled(0) {
|
|
}
|
|
|
|
// OFFSET: 0x00852870
|
|
UIEditCtrl4::~UIEditCtrl4() = default;
|
|
|
|
// OFFSET: 0x0085AA40
|
|
// FUNCTION: fn_10782
|
|
void UIEditCtrl4::Slot23() {
|
|
this->text.clear();
|
|
this->m_edit->input.ResetInput();
|
|
this->m_edit->input.ResetInput();
|
|
this->m_edit->input.Insert(this->text.c_str());
|
|
this->m_edit->password = this->mask != 0;
|
|
this->SelectAll();
|
|
}
|
|
|
|
// OFFSET: 0x008563D0
|
|
// FUNCTION: fn_10754
|
|
void UIEditCtrl4::PaintText() {
|
|
this->PaintTextWithPolicy(true, &this->placeholder, this->placeholderColor, this->placeholderEnabled == 1);
|
|
}
|
|
|
|
// OFFSET: 0x0084F7B0
|
|
// FUNCTION: fn_10661
|
|
UIEditCtrl5::UIEditCtrl5(UIWindowContext& windows, UIEditContext& edit) : UIEditCtrl4(windows, edit) {
|
|
}
|
|
|
|
// OFFSET: 0x008528F0
|
|
UIEditCtrl5::~UIEditCtrl5() = default;
|
|
|
|
// OFFSET: 0x00864140
|
|
// FUNCTION: fn_10913
|
|
int UIEditCtrl5::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
|
|
if (message != 0) {
|
|
this->UIEditCtrl::SendMsg(sender, message, a, b, c, d);
|
|
} else {
|
|
InputFocus& focus = this->m_edit->focus;
|
|
if (focus.IsLast(focus.window)) {
|
|
focus.First();
|
|
} else {
|
|
focus.Next();
|
|
}
|
|
|
|
this->UIWindow::SendMsg(sender, message, a, b, c, d);
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
// OFFSET: 0x0085CBF0
|
|
|
|
// OFFSET: 0x0085FF60
|
|
|
|
// OFFSET: 0x0085BB60
|
|
|
|
// OFFSET: 0x0085EB50
|
|
|
|
// OFFSET: 0x0085CDE0
|
|
|
|
// OFFSET: 0x0085FFC0
|
|
|
|
// OFFSET: 0x0085E3D0
|
|
// FUNCTION: fn_10827
|
|
void UIEditCtrlVarId::Slot24(int) {
|
|
this->Synchronize();
|
|
this->Invalidate();
|
|
this->SendMsg(this, 0, 0, 0, 0, 0);
|
|
}
|
|
|
|
// OFFSET: 0x0085FFA0
|