UI: Make popups transition their button.

This commit is contained in:
Unknown W. Brackets
2017-03-21 18:45:49 -07:00
parent 4fb8ac96ce
commit 07d2b4fb46
7 changed files with 57 additions and 11 deletions
+5 -1
View File
@@ -379,7 +379,11 @@ void SavedataScreen::CreateViews() {
UI::EventReturn SavedataScreen::OnSavedataButtonClick(UI::EventParams &e) {
GameInfo *ginfo = g_gameInfoCache->GetInfo(screenManager()->getDrawContext(), e.s, 0);
screenManager()->push(new SavedataPopupScreen(e.s, ginfo->GetTitle()));
SavedataPopupScreen *popupScreen = new SavedataPopupScreen(e.s, ginfo->GetTitle());
if (e.v) {
popupScreen->SetPopupOrigin(e.v);
}
screenManager()->push(popupScreen);
// the game path: e.s;
return UI::EVENT_DONE;
}