Batch #4805 by youko: 0 byte-identical, 2 confirmed by peer review. - fn_13540 UIRoundBoxTooltipWnd::Slot15: logic confirmed by peer review - fn_13555 UIMiniMapWnd::LoadMemos: logic confirmed by peer review Peer-reviewed-by: eAthena, alisonrag, Lumen, Snow, Qwenkler3.8, willerthal 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 "UI/UIRoundBoxTooltipWnd.h"
|
|
|
|
#include "Contents/Items/ItemDescription.h"
|
|
#include "Resource/ResourceMgr.h"
|
|
#include "Resource/SkinPalette.h"
|
|
#include "UI/Text/ColoredText.h"
|
|
#include "UI/Text/TextWrapping.h"
|
|
#include "UI/Window/WindowBorder.h"
|
|
|
|
#include <algorithm>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
// INLINED
|
|
UIColoringTextViewer::UIColoringTextViewer(UIWindowContext& windows, UIListBoxContext& list) : UIListBox(windows, list), color(0), lineLimit(0) {
|
|
}
|
|
|
|
// OFFSET: 0x0099A1F0
|
|
// FUNCTION: fn_13540
|
|
void UIRoundBoxTooltipWnd::Slot15(int width, int height) {
|
|
if (this->viewer) {
|
|
return;
|
|
}
|
|
|
|
this->viewer = new UIColoringTextViewer(*this->m_context, *this->m_listContext);
|
|
this->viewer->Configure(4, 4, width - 6, height - 6, 0);
|
|
|
|
unsigned red;
|
|
unsigned green;
|
|
unsigned blue;
|
|
SkinPaletteChannels(ResourceMgr::Instance(), 1, 1, red, green, blue);
|
|
|
|
this->viewer->backgroundColor = 0xFFFF00FF;
|
|
this->viewer->Invalidate();
|
|
this->viewer->color = 0x803B1A;
|
|
this->AddChild(this->viewer);
|
|
}
|
|
|
|
// OFFSET: 0x0099A300
|
|
|
|
// OFFSET: 0x0099A3F0
|
|
// FUNCTION: fn_13542
|
|
void UIRoundBoxTooltipWnd::Paint() {
|
|
DrawFilledRoundedBorder(*this, 0, 0, this->geometry.width, this->geometry.height, 0xEFB8B8);
|
|
DrawFilledRoundedBorder(*this, 1, 1, this->geometry.width - 2, this->geometry.height - 2, 0xEFE7E7);
|
|
}
|
|
|
|
// OFFSET: 0x0099A430
|