Decompile fn_10858 (UIButton::Slot28)
Batch #12640 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_10858 UIButton::Slot28: logic confirmed by peer review Peer-reviewed-by: Yommy, Tanke, aDw 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
b8db7e6546
commit
8c2b8dd875
1 changed files with 1 additions and 6 deletions
|
|
@ -120,12 +120,7 @@ void UIButton::Slot28(int x, int y) {
|
|||
|
||||
if (!this->m_tooltip.empty()) {
|
||||
int screenX = 0, screenY = -20;
|
||||
|
||||
for (const UIWindow* window = this; window; window = window->parent) {
|
||||
screenX = (screenX + window->geometry.x);
|
||||
screenY = (screenY + window->geometry.y);
|
||||
}
|
||||
|
||||
this->ToScreen(screenX, screenY);
|
||||
g_modeMgr.gameMode->ShowTooltip(this->m_tooltip.c_str(), screenX, screenY, -1, false, true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue