mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
GameSettingsScreen: Add tab icons. In portrait mode, use only icons on the tabs.
This commit is contained in:
1 parent
75020e2ed7
commit
48ba3d99d3
9 files changed
+182
-140
No files matched your search
+10
-1
@@ -15,6 +15,13 @@ namespace UI {
|
||||
class TabHolder;
|
||||
}
|
||||
|
||||
enum class TabDialogFlags {
|
||||
Default = 0,
|
||||
HorizontalOnlyIcons = 1,
|
||||
VerticalShowIcons = 2,
|
||||
};
|
||||
ENUM_CLASS_BITOPS(TabDialogFlags);
|
||||
|
||||
enum class TabFlags {
|
||||
Default = 0,
|
||||
NonScrollable = 1,
|
||||
@@ -23,7 +30,7 @@ ENUM_CLASS_BITOPS(TabFlags);
|
||||
|
||||
class UITabbedBaseDialogScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
UITabbedBaseDialogScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {
|
||||
UITabbedBaseDialogScreen(const Path &gamePath, TabDialogFlags flags = TabDialogFlags::Default) : UIBaseDialogScreen(gamePath), flags_(flags) {
|
||||
ignoreBottomInset_ = true;
|
||||
}
|
||||
|
||||
@@ -61,4 +68,6 @@ private:
|
||||
// If we recreate the views while this is active we show it again
|
||||
std::string oldSettingInfo_;
|
||||
std::string searchFilter_;
|
||||
|
||||
TabDialogFlags flags_ = TabDialogFlags::Default;
|
||||
};
|
||||
Reference in new issue
Block a user