void Interface::Radar::SetPos(s16 ox, s16 oy) { if(Settings::Get().ExtGameHideInterface()) { FixOutOfDisplay(*this, ox, oy); Rect::x = ox + BORDERWIDTH; Rect::y = oy + BORDERWIDTH; border.SetPosition(ox, oy, Rect::w, Rect::h); Settings::Get().SetPosRadar(Point(ox, oy)); } else { Rect::x = ox; Rect::y = oy; } }
void Interface::StatusWindow::SetPos(s16 ox, s16 oy) { if(Settings::Get().ExtGameHideInterface()) { FixOutOfDisplay(*this, ox, oy); Rect::x = ox + BORDERWIDTH; Rect::y = oy + BORDERWIDTH; border.SetPosition(ox, oy, Rect::w, Rect::h); Settings::Get().SetPosStatus(Point(ox, oy)); } else { Rect::x = ox; Rect::y = oy; Rect::h = Display::Get().h() - oy - BORDERWIDTH; } }