Batch #3711 by youko: 0 byte-identical, 21 confirmed by peer review. - fn_10797 UIBitmapTab::Paint: logic confirmed by peer review - fn_10798 UIBmpTextButton2::Paint: logic confirmed by peer review - fn_10802 UIChatRoomTitle::Paint: logic confirmed by peer review - fn_10804 UIColorButton::Paint: logic confirmed by peer review - fn_10805 UIColorTransBalloonText::Paint: logic confirmed by peer review - fn_10806 UIEditCtrl3::Paint: logic confirmed by peer review - fn_10808 UIEditCtrl_OldList::Paint: logic confirmed by peer review - fn_10809 UIEmblemWnd::Paint: logic confirmed by peer review - fn_10815 UIResizer::Paint: logic confirmed by peer review - fn_10819 UIStaticText3::Paint: logic confirmed by peer review - fn_10821 UITab::Paint: logic confirmed by peer review - fn_10825 UIWordDisplayWnd::Paint: logic confirmed by peer review - fn_10832 UIMerchantShopTitle::Slot26: logic confirmed by peer review - fn_10838 UIBitmapTab::Slot25: logic confirmed by peer review - fn_10840 UIChatEditCtrl::Slot25: logic confirmed by peer review - fn_10843 UIMerchantShopTitle::Slot25: logic confirmed by peer review - fn_10851 UITab::Slot25: logic confirmed by peer review - fn_10856 UITextureButton::Slot31: logic confirmed by peer review - fn_10883 UIEmblemWnd::Slot19: logic confirmed by peer review - fn_10884 UINameBalloonText::Slot19: logic confirmed by peer review - fn_10885 UIWordDisplayWnd::Slot19: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena, Yommy Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
#include "Client/Mode/ModeCursor.h"
|
|
#include "Resource/Bitmap/BitmapResource.h"
|
|
#include "Resource/ResourceMgr.h"
|
|
#include "Resource/TextureNames.h"
|
|
#include "UI/Window/UIResizer.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
|
|
// OFFSET: 0x0085D650
|
|
// FUNCTION: fn_10815
|
|
void UIResizer::Paint() {
|
|
if (!this->bitmapName.empty()) {
|
|
CBitmapRes* bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(this->bitmapName.c_str())));
|
|
this->DrawBitmap(0, 0, bitmap ? &bitmap->image : nullptr, false);
|
|
return;
|
|
}
|
|
|
|
this->ClearSurface(this->backgroundColor);
|
|
this->FillRegion(0, 0, this->geometry.width, 2, this->lineColor);
|
|
}
|
|
|
|
// OFFSET: 0x0085F470
|
|
// FUNCTION: fn_10862
|
|
void UIResizer::Slot28(int, int) {
|
|
}
|
|
|
|
// OFFSET: 0x0085FA20
|
|
// FUNCTION: fn_10879
|
|
void UIResizer::ResetCursor(int x, int y) {
|
|
if (g_windowMgr.Capture() == this || (x >= 0 && x < this->geometry.width && y >= 0 && y <= this->geometry.height)) {
|
|
this->m_context->cursor.Set(2, this->m_context->cursorTick);
|
|
} else if (g_windowMgr.Capture() != this) {
|
|
this->m_context->cursor.Set(0, this->m_context->cursorTick);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x0085EFD0
|
|
// FUNCTION: fn_10853
|
|
void UIResizer::Slot31(int, int) {
|
|
if (g_windowMgr.Capture() != this) {
|
|
return;
|
|
}
|
|
|
|
if (this->parent) {
|
|
this->parent->Slot36();
|
|
}
|
|
|
|
g_windowMgr.ReleaseCapture();
|
|
}
|