mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 10:13:43 +01:00
More work on smoother keyboard focus
This commit is contained in:
1 parent
36c8d7f408
commit
30e58d9848
4 files changed
+15
-5
No files matched your search
+6
-2
@@ -218,7 +218,9 @@ void PromptScreen::CreateViews() {
|
||||
|
||||
ViewGroup *rightColumnItems = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(300, FILL_PARENT, actionMenuMargins));
|
||||
root_->Add(rightColumnItems);
|
||||
rightColumnItems->Add(new Choice(yesButtonText_))->OnClick.Handle(this, &PromptScreen::OnYes);
|
||||
Choice *yesButton = rightColumnItems->Add(new Choice(yesButtonText_));
|
||||
yesButton->OnClick.Handle(this, &PromptScreen::OnYes);
|
||||
root_->SetDefaultFocusView(yesButton);
|
||||
if (noButtonText_ != "")
|
||||
rightColumnItems->Add(new Choice(noButtonText_))->OnClick.Handle(this, &PromptScreen::OnNo);
|
||||
}
|
||||
@@ -428,7 +430,9 @@ void CreditsScreen::CreateViews() {
|
||||
I18NCategory *c = GetI18NCategory("PSPCredits");
|
||||
|
||||
root_ = new AnchorLayout(new LayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
root_->Add(new Button(d->T("Back"), new AnchorLayoutParams(260, 64, NONE, NONE, 10, 10, false)))->OnClick.Handle(this, &CreditsScreen::OnOK);
|
||||
Button *back = root_->Add(new Button(d->T("Back"), new AnchorLayoutParams(260, 64, NONE, NONE, 10, 10, false)));
|
||||
back->OnClick.Handle(this, &CreditsScreen::OnOK);
|
||||
root_->SetDefaultFocusView(back);
|
||||
#ifndef GOLD
|
||||
root_->Add(new Button(c->T("Buy Gold"), new AnchorLayoutParams(260, 64, 10, NONE, NONE, 10, false)))->OnClick.Handle(this, &CreditsScreen::OnSupport);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user