Decompile fn_11375 (UIPetInfoBarGraph::Paint)
Batch #14322 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_11375 UIPetInfoBarGraph::Paint: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
98f652c4a6
commit
2b4e84395a
1 changed files with 12 additions and 12 deletions
|
|
@ -40,34 +40,34 @@ void UIPetInfoBarGraph::SetValue(int value) {
|
|||
// OFFSET: 0x0088C970
|
||||
// FUNCTION: fn_11375
|
||||
void UIPetInfoBarGraph::Paint() {
|
||||
const auto* left = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_left.bmp")));
|
||||
const auto* middle = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_mid.bmp")));
|
||||
const auto* right = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_right.bmp")));
|
||||
auto* left = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_left.bmp")));
|
||||
auto* middle = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_mid.bmp")));
|
||||
auto* right = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gze_bg_right.bmp")));
|
||||
const int span = this->geometry.width - left->image.width - right->image.width;
|
||||
this->DrawBitmap(0, 0, &left->image, false);
|
||||
this->DrawBitmap(0, 0, left, false);
|
||||
|
||||
for (int x = 0; x < span; ++x) {
|
||||
this->DrawBitmap(left->image.width + x, 0, &middle->image, false);
|
||||
this->DrawBitmap(left->image.width + x, 0, middle, false);
|
||||
}
|
||||
|
||||
this->DrawBitmap(this->geometry.width - right->image.width, 0, &right->image, false);
|
||||
this->DrawBitmap(this->geometry.width - right->image.width, 0, right, false);
|
||||
|
||||
if (this->unknown_007C != 0) {
|
||||
const auto* barLeft = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_left.bmp")));
|
||||
const auto* barMiddle = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_mid.bmp")));
|
||||
const auto* barRight = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_right.bmp")));
|
||||
auto* barLeft = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_left.bmp")));
|
||||
auto* barMiddle = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_mid.bmp")));
|
||||
auto* barRight = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\basic_interface\\gzeblue_right.bmp")));
|
||||
const int fill = static_cast<int>(
|
||||
static_cast<float>(this->geometry.width - barRight->image.width - barLeft->image.width) *
|
||||
(static_cast<float>(static_cast<unsigned>(this->unknown_007C)) / 100.0f)
|
||||
);
|
||||
this->DrawBitmap(0, 0, &barLeft->image, true);
|
||||
this->DrawBitmap(0, 0, barLeft, true);
|
||||
int x = 0;
|
||||
|
||||
for (; x < fill; ++x) {
|
||||
this->DrawBitmap(barLeft->image.width + x, 0, &barMiddle->image, true);
|
||||
this->DrawBitmap(barLeft->image.width + x, 0, barMiddle, true);
|
||||
}
|
||||
|
||||
this->DrawBitmap(barMiddle->image.width * x + barLeft->image.width, 0, &barRight->image, true);
|
||||
this->DrawBitmap(barMiddle->image.width * x + barLeft->image.width, 0, barRight, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue