mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 19:23:47 +01:00
UI fixes, add SimpleTextView (easier to reason about)
This commit is contained in:
1 parent
d34da520be
commit
980ddb152b
11 files changed
+81
-44
No files matched your search
+2
-2
@@ -334,8 +334,8 @@ void ProductView::CreateViews() {
|
||||
|
||||
if (!entry_.license.empty()) {
|
||||
LinearLayout *horiz = Add(new LinearLayout(ORIENT_HORIZONTAL));
|
||||
horiz->Add(new TextView(StringFromFormat("%s: %s", st->T_cstr("License"), entry_.license.c_str()), new LinearLayoutParams(0.0, G_VCENTER)));
|
||||
horiz->Add(new Button(di->T("More info"), new LinearLayoutParams(0.0, G_VCENTER)))->OnClick.Add([this](UI::EventParams) {
|
||||
horiz->Add(new TextView(StringFromFormat("%s: %s", st->T_cstr("License"), entry_.license.c_str()), new LinearLayoutParams(0.0, Gravity::G_VCENTER)));
|
||||
horiz->Add(new Button(di->T("More info"), new LinearLayoutParams(0.0, Gravity::G_VCENTER)))->OnClick.Add([this](UI::EventParams) {
|
||||
std::string url = StringFromFormat("https://www.ppsspp.org/docs/reference/homebrew-store-distribution/#%s", entry_.file.c_str());
|
||||
System_LaunchUrl(LaunchUrlType::BROWSER_URL, url.c_str());
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user