Decompile 3 functions in Source/UI/Window/UIWindow.cpp, Source/UI/Window/UIWindow.h, ...
Batch #5106 by Yommy: 0 byte-identical, 3 confirmed by peer review. - fn_10811 UIMerchantShopTitle::Paint: logic confirmed by peer review - fn_10818 UIStaticText2::Paint: logic confirmed by peer review - fn_10861 UIRadioBtn::Slot28: logic confirmed by peer review Peer-reviewed-by: youko, SapitoSucio Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
1b7cbe5dd0
commit
3bcf274d29
3 changed files with 40 additions and 0 deletions
|
|
@ -168,6 +168,26 @@ void UIStaticText::Slot35(int value) {
|
|||
}
|
||||
|
||||
// OFFSET: 0x0085DAF0
|
||||
// FUNCTION: fn_10818
|
||||
void UIStaticText2::Paint() {
|
||||
UIButtonContext& controls = *this->m_controls;
|
||||
this->ClearSurface(this->background);
|
||||
|
||||
if (this->shadow != 0) {
|
||||
this->DrawTextAt(controls.fonts, controls.locale, 2, 2, this->text.c_str(), 0, this->fontFamily, this->fontHeight, 0xFFFFFF, this->bold, this->italic);
|
||||
}
|
||||
|
||||
if (this->outline != 0) {
|
||||
this->DrawTextAt(controls.fonts, controls.locale, 0, 1, this->text.c_str(), 0, this->fontFamily, this->fontHeight, this->outlineColor, this->bold, this->italic);
|
||||
this->DrawTextAt(controls.fonts, controls.locale, 1, 0, this->text.c_str(), 0, this->fontFamily, this->fontHeight, this->outlineColor, this->bold, this->italic);
|
||||
this->DrawTextAt(controls.fonts, controls.locale, 2, 1, this->text.c_str(), 0, this->fontFamily, this->fontHeight, this->outlineColor, this->bold, this->italic);
|
||||
this->DrawTextAt(controls.fonts, controls.locale, 1, 2, this->text.c_str(), 0, this->fontFamily, this->fontHeight, this->outlineColor, this->bold, this->italic);
|
||||
}
|
||||
|
||||
const std::uint32_t color =
|
||||
static_cast<unsigned char>(this->red) | (static_cast<unsigned char>(this->green) << 8) | (static_cast<unsigned char>(this->blue) << 16);
|
||||
this->DrawTextAt(controls.fonts, controls.locale, 1, 1, this->text.c_str(), 0, this->fontFamily, this->fontHeight, color, this->bold, this->italic);
|
||||
}
|
||||
|
||||
// OFFSET: 0x0085DCA0
|
||||
// FUNCTION: fn_10819
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue