mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-21 17:30:46 +00:00
UI: Set tags on tab views, in the typical case.
This commit is contained in:
parent
5a01bb7836
commit
84d815768b
@ -326,6 +326,7 @@ void SystemInfoScreen::CreateViews() {
|
||||
AddStandardBack(root_);
|
||||
|
||||
TabHolder *tabHolder = new TabHolder(ORIENT_VERTICAL, 225, new AnchorLayoutParams(10, 0, 10, 0, false));
|
||||
tabHolder->SetTag("DevSystemInfo");
|
||||
|
||||
root_->Add(tabHolder);
|
||||
ViewGroup *deviceSpecsScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
@ -818,6 +819,7 @@ void ShaderListScreen::CreateViews() {
|
||||
root_ = layout;
|
||||
|
||||
tabs_ = new TabHolder(ORIENT_HORIZONTAL, 40, new LinearLayoutParams(1.0));
|
||||
tabs_->SetTag("DevShaderList");
|
||||
layout->Add(tabs_);
|
||||
layout->Add(new Button(di->T("Back")))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
|
||||
|
||||
|
@ -121,6 +121,7 @@ void GameSettingsScreen::CreateViews() {
|
||||
root_->Add(tabHolder);
|
||||
AddStandardBack(root_);
|
||||
}
|
||||
tabHolder->SetTag("GameSettings");
|
||||
root_->SetDefaultFocusView(tabHolder);
|
||||
|
||||
// TODO: These currently point to global settings, not game specific ones.
|
||||
|
@ -709,6 +709,7 @@ void MainScreen::CreateViews() {
|
||||
|
||||
TabHolder *leftColumn = new TabHolder(ORIENT_HORIZONTAL, 64, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT));
|
||||
tabHolder_ = leftColumn;
|
||||
tabHolder_->SetTag("MainScreenGames");
|
||||
|
||||
leftColumn->SetClip(true);
|
||||
|
||||
@ -1119,6 +1120,7 @@ void UmdReplaceScreen::CreateViews() {
|
||||
I18NCategory *di = GetI18NCategory("Dialog");
|
||||
|
||||
TabHolder *leftColumn = new TabHolder(ORIENT_HORIZONTAL, 64, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 1.0));
|
||||
leftColumn->SetTag("UmdReplace");
|
||||
leftColumn->SetClip(true);
|
||||
|
||||
ViewGroup *rightColumn = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(270, FILL_PARENT, actionMenuMargins));
|
||||
|
@ -344,6 +344,7 @@ void SavedataScreen::CreateViews() {
|
||||
root_ = new LinearLayout(ORIENT_VERTICAL);
|
||||
|
||||
TabHolder *tabs = new TabHolder(ORIENT_HORIZONTAL, 64, new LinearLayoutParams(FILL_PARENT, FILL_PARENT, 1.0f));
|
||||
tabs->SetTag("Savedata");
|
||||
ScrollView *scroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT));
|
||||
browser_ = scroll->Add(new SavedataBrowser(savedata_dir, new LayoutParams(FILL_PARENT, FILL_PARENT)));
|
||||
browser_->OnChoice.Handle(this, &SavedataScreen::OnSavedataButtonClick);
|
||||
|
@ -335,6 +335,7 @@ void TouchControlLayoutScreen::CreateViews() {
|
||||
root_->Add(back);
|
||||
|
||||
TabHolder *tabHolder = new TabHolder(ORIENT_VERTICAL, leftColumnWidth, new AnchorLayoutParams(10, 0, 10, 0, false));
|
||||
tabHolder->SetTag("TouchControlLayout");
|
||||
root_->Add(tabHolder);
|
||||
|
||||
// this is more for show than anything else. It's used to provide a boundary
|
||||
|
Loading…
x
Reference in New Issue
Block a user