Decompile fn_12905 (UIMileageWnd::Paint)
Batch #15747 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_12905 UIMileageWnd::Paint: logic confirmed by peer review Peer-reviewed-by: eAthena, Tanke 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
44373a5311
commit
f1af05c2a0
1 changed files with 2 additions and 4 deletions
|
|
@ -47,15 +47,13 @@ void UIMileageWnd::Paint() {
|
|||
this->ClearSurface(0xFF00FF);
|
||||
|
||||
std::string text;
|
||||
const std::string background = FormatOwnedString("유저인터페이스\\basic_interface\\mileage_bg%d.bmp", this->m_bonus);
|
||||
text = background;
|
||||
text = static_cast<const std::string&>(FormatOwnedString("유저인터페이스\\basic_interface\\mileage_bg%d.bmp", this->m_bonus));
|
||||
this->DrawBitmap(0, 0, static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(text.c_str()))), true);
|
||||
|
||||
if (this->m_point >= 300) {
|
||||
text = std::string("-- : --");
|
||||
} else {
|
||||
const std::string remaining = FormatOwnedString("%02d : %02d", this->m_remaining / 60, this->m_remaining % 60);
|
||||
text = remaining;
|
||||
text = static_cast<const std::string&>(FormatOwnedString("%02d : %02d", this->m_remaining / 60, this->m_remaining % 60));
|
||||
}
|
||||
|
||||
int textWidth = this->TextWidth(text.c_str(), 0, 0, 12, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue