Decompile fn_10800 (UIButton::Paint)
Batch #11531 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_10800 UIButton::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, StrawberrysherbetIX 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
a61955face
commit
24231ed417
1 changed files with 3 additions and 9 deletions
|
|
@ -34,23 +34,17 @@ void UIButton::Paint() {
|
|||
return;
|
||||
}
|
||||
|
||||
static const char* const backgrounds[] = {
|
||||
"유저인터페이스\\sml_button_up.bmp",
|
||||
"유저인터페이스\\sml_button_act.bmp",
|
||||
"유저인터페이스\\sml_button_down.bmp"
|
||||
};
|
||||
|
||||
CBitmapRes* bitmap;
|
||||
|
||||
switch (this->geometry.unknown_0030) {
|
||||
case 0:
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(backgrounds[0]));
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\sml_button_up.bmp")));
|
||||
break;
|
||||
case 1:
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(backgrounds[1]));
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\sml_button_act.bmp")));
|
||||
break;
|
||||
case 2:
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(backgrounds[2]));
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\sml_button_down.bmp")));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue