mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Rename some screen classes
This commit is contained in:
@@ -318,7 +318,7 @@ void ControlMappingScreen::update() {
|
||||
RecreateViews();
|
||||
}
|
||||
|
||||
UIDialogScreenWithGameBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
SetVRAppMode(VRAppMode::VR_MENU_MODE);
|
||||
}
|
||||
|
||||
@@ -504,7 +504,7 @@ void KeyMappingNewMouseKeyDialog::axis(const AxisInput &axis) {
|
||||
}
|
||||
}
|
||||
|
||||
AnalogCalibrationScreen::AnalogCalibrationScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {
|
||||
AnalogCalibrationScreen::AnalogCalibrationScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {
|
||||
mapper_.SetCallbacks(
|
||||
[](int vkey, bool down) {},
|
||||
[](int vkey, float analogValue) {},
|
||||
@@ -953,7 +953,7 @@ bool VisualMappingScreen::key(const KeyInput &key) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return UIDialogScreenWithGameBackground::key(key);
|
||||
return UIBaseDialogScreen::key(key);
|
||||
}
|
||||
|
||||
void VisualMappingScreen::axis(const AxisInput &axis) {
|
||||
@@ -976,11 +976,11 @@ void VisualMappingScreen::axis(const AxisInput &axis) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
UIDialogScreenWithGameBackground::axis(axis);
|
||||
UIBaseDialogScreen::axis(axis);
|
||||
}
|
||||
|
||||
void VisualMappingScreen::resized() {
|
||||
UIDialogScreenWithGameBackground::resized();
|
||||
UIBaseDialogScreen::resized();
|
||||
RecreateViews();
|
||||
}
|
||||
|
||||
|
||||
@@ -34,9 +34,9 @@
|
||||
|
||||
class SingleControlMapper;
|
||||
|
||||
class ControlMappingScreen : public UIDialogScreenWithGameBackground {
|
||||
class ControlMappingScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
explicit ControlMappingScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {
|
||||
explicit ControlMappingScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {
|
||||
categoryToggles_[0] = true;
|
||||
categoryToggles_[1] = true;
|
||||
categoryToggles_[2] = true;
|
||||
@@ -120,7 +120,7 @@ private:
|
||||
|
||||
class JoystickHistoryView;
|
||||
|
||||
class AnalogCalibrationScreen : public UIDialogScreenWithGameBackground {
|
||||
class AnalogCalibrationScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
AnalogCalibrationScreen(const Path &gamePath);
|
||||
|
||||
@@ -149,9 +149,9 @@ private:
|
||||
|
||||
class MockPSP;
|
||||
|
||||
class VisualMappingScreen : public UIDialogScreenWithGameBackground {
|
||||
class VisualMappingScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
VisualMappingScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {}
|
||||
VisualMappingScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {}
|
||||
|
||||
const char *tag() const override { return "VisualMapping"; }
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@ namespace UI {
|
||||
class CheckBox;
|
||||
}
|
||||
|
||||
class CustomButtonMappingScreen : public UIDialogScreenWithGameBackground {
|
||||
class CustomButtonMappingScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
CustomButtonMappingScreen(const Path &gamePath, int id) : UIDialogScreenWithGameBackground(gamePath), id_(id) {}
|
||||
CustomButtonMappingScreen(const Path &gamePath, int id) : UIBaseDialogScreen(gamePath), id_(id) {}
|
||||
|
||||
const char *tag() const override { return "CustomButton"; }
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ static Path GetGlobalCheatFilePath() {
|
||||
}
|
||||
|
||||
CwCheatScreen::CwCheatScreen(const Path &gamePath)
|
||||
: UIDialogScreenWithGameBackground(gamePath) {
|
||||
: UIBaseDialogScreen(gamePath) {
|
||||
}
|
||||
|
||||
CwCheatScreen::~CwCheatScreen() {
|
||||
@@ -155,7 +155,7 @@ void CwCheatScreen::update() {
|
||||
fileCheckCounter_ = 0;
|
||||
}
|
||||
|
||||
UIDialogScreenWithGameBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
}
|
||||
|
||||
void CwCheatScreen::onFinish(DialogResult result) {
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
struct CheatFileInfo;
|
||||
class CWCheatEngine;
|
||||
|
||||
class CwCheatScreen : public UIDialogScreenWithGameBackground {
|
||||
class CwCheatScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
CwCheatScreen(const Path &gamePath);
|
||||
~CwCheatScreen();
|
||||
|
||||
+3
-3
@@ -253,7 +253,7 @@ void LogViewScreen::UpdateLog() {
|
||||
}
|
||||
|
||||
void LogViewScreen::update() {
|
||||
UIDialogScreenWithBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
if (toBottom_) {
|
||||
toBottom_ = false;
|
||||
scroll_->ScrollToBottom();
|
||||
@@ -524,7 +524,7 @@ bool ShaderViewScreen::key(const KeyInput &ki) {
|
||||
System_CopyStringToClipboard(gpu->DebugGetShaderString(id_, type_, SHADER_STRING_SHORT_DESC));
|
||||
}
|
||||
}
|
||||
return UIDialogScreenWithBackground::key(ki);
|
||||
return UIBaseDialogScreen::key(ki);
|
||||
}
|
||||
|
||||
|
||||
@@ -616,7 +616,7 @@ void FrameDumpTestScreen::update() {
|
||||
}
|
||||
|
||||
void TouchTestScreen::touch(const TouchInput &touch) {
|
||||
UIDialogScreenWithGameBackground::touch(touch);
|
||||
UIBaseDialogScreen::touch(touch);
|
||||
if (touch.flags & TOUCH_DOWN) {
|
||||
bool found = false;
|
||||
for (int i = 0; i < MAX_TOUCH_POINTS; i++) {
|
||||
|
||||
+9
-9
@@ -47,7 +47,7 @@ private:
|
||||
Path gamePath_;
|
||||
};
|
||||
|
||||
class JitDebugScreen : public UIDialogScreenWithBackground {
|
||||
class JitDebugScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
JitDebugScreen() {}
|
||||
void CreateViews() override;
|
||||
@@ -59,7 +59,7 @@ private:
|
||||
void OnDisableAll(UI::EventParams &e);
|
||||
};
|
||||
|
||||
class LogConfigScreen : public UIDialogScreenWithBackground {
|
||||
class LogConfigScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
LogConfigScreen() {}
|
||||
void CreateViews() override;
|
||||
@@ -74,7 +74,7 @@ private:
|
||||
void OnLogLevelChange(UI::EventParams &e);
|
||||
};
|
||||
|
||||
class LogViewScreen : public UIDialogScreenWithBackground {
|
||||
class LogViewScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
void CreateViews() override;
|
||||
void update() override;
|
||||
@@ -108,9 +108,9 @@ protected:
|
||||
void CreatePopupContents(UI::ViewGroup *parent) override;
|
||||
};
|
||||
|
||||
class ShaderListScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class ShaderListScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
ShaderListScreen() : TabbedUIDialogScreenWithGameBackground(Path()) {}
|
||||
ShaderListScreen() : UITabbedBaseDialogScreen(Path()) {}
|
||||
void CreateTabs() override;
|
||||
|
||||
const char *tag() const override { return "ShaderList"; }
|
||||
@@ -122,7 +122,7 @@ private:
|
||||
void OnShaderClick(UI::EventParams &e);
|
||||
};
|
||||
|
||||
class ShaderViewScreen : public UIDialogScreenWithBackground {
|
||||
class ShaderViewScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
ShaderViewScreen(std::string id, DebugShaderType type)
|
||||
: id_(id), type_(type) {}
|
||||
@@ -137,7 +137,7 @@ private:
|
||||
DebugShaderType type_;
|
||||
};
|
||||
|
||||
class FrameDumpTestScreen : public UIDialogScreenWithBackground {
|
||||
class FrameDumpTestScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
FrameDumpTestScreen();
|
||||
~FrameDumpTestScreen();
|
||||
@@ -155,9 +155,9 @@ private:
|
||||
std::shared_ptr<http::Request> dumpDownload_;
|
||||
};
|
||||
|
||||
class TouchTestScreen : public UIDialogScreenWithGameBackground {
|
||||
class TouchTestScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
TouchTestScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {
|
||||
TouchTestScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {
|
||||
for (int i = 0; i < MAX_TOUCH_POINTS; i++) {
|
||||
touches_[i].id = -1;
|
||||
}
|
||||
|
||||
@@ -711,7 +711,7 @@ void DeveloperToolsScreen::OnMIPSTracerClearTracer(UI::EventParams &e) {
|
||||
}
|
||||
|
||||
void DeveloperToolsScreen::update() {
|
||||
UIDialogScreenWithBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
allowDebugger_ = !WebServerStopped(WebServerFlags::DEBUGGER);
|
||||
canAllowDebugger_ = !WebServerStopping(WebServerFlags::DEBUGGER);
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
#include "UI/TabbedDialogScreen.h"
|
||||
|
||||
class DeveloperToolsScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class DeveloperToolsScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
DeveloperToolsScreen(const Path &gamePath) : TabbedUIDialogScreenWithGameBackground(gamePath) {}
|
||||
DeveloperToolsScreen(const Path &gamePath) : UITabbedBaseDialogScreen(gamePath) {}
|
||||
|
||||
void CreateTabs() override;
|
||||
void update() override;
|
||||
|
||||
@@ -117,7 +117,7 @@ private:
|
||||
float startDisplayOffsetY_ = -1.0f;
|
||||
};
|
||||
|
||||
DisplayLayoutScreen::DisplayLayoutScreen(const Path &filename) : UIDialogScreenWithGameBackground(filename) {}
|
||||
DisplayLayoutScreen::DisplayLayoutScreen(const Path &filename) : UIBaseDialogScreen(filename) {}
|
||||
|
||||
void DisplayLayoutScreen::DrawBackground(UIContext &dc) {
|
||||
if (PSP_GetBootState() == BootState::Complete && !g_Config.bSkipBufferEffects) {
|
||||
@@ -181,7 +181,7 @@ static std::string PostShaderTranslateName(std::string_view value) {
|
||||
}
|
||||
|
||||
void DisplayLayoutScreen::sendMessage(UIMessage message, const char *value) {
|
||||
UIDialogScreenWithGameBackground::sendMessage(message, value);
|
||||
UIBaseDialogScreen::sendMessage(message, value);
|
||||
if (message == UIMessage::POSTSHADER_UPDATED) {
|
||||
g_Config.bShaderChainRequires60FPS = PostShaderChainRequires60FPS(GetFullPostShadersChain(g_Config.vPostShaderNames));
|
||||
RecreateViews();
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace UI {
|
||||
class ChoiceStrip;
|
||||
}
|
||||
|
||||
class DisplayLayoutScreen : public UIDialogScreenWithGameBackground {
|
||||
class DisplayLayoutScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
DisplayLayoutScreen(const Path &filename);
|
||||
void CreateViews() override;
|
||||
|
||||
@@ -142,7 +142,7 @@ DriverChoice::DriverChoice(const std::string &driverName, bool current, UI::Layo
|
||||
}
|
||||
}
|
||||
|
||||
DriverManagerScreen::DriverManagerScreen(const Path & gamePath) : TabbedUIDialogScreenWithGameBackground(gamePath) {}
|
||||
DriverManagerScreen::DriverManagerScreen(const Path & gamePath) : UITabbedBaseDialogScreen(gamePath) {}
|
||||
|
||||
void DriverManagerScreen::CreateTabs() {
|
||||
using namespace UI;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
// Per-game settings screen - enables you to configure graphic options, control options, etc
|
||||
// per game.
|
||||
class DriverManagerScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class DriverManagerScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
DriverManagerScreen(const Path &gamePath);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "UI/MiscScreens.h"
|
||||
#include "Common/GPU/thin3d.h"
|
||||
|
||||
class GPUDriverTestScreen : public UIDialogScreenWithBackground {
|
||||
class GPUDriverTestScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
GPUDriverTestScreen();
|
||||
~GPUDriverTestScreen();
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@
|
||||
|
||||
constexpr GameInfoFlags g_desiredFlags = GameInfoFlags::PARAM_SFO | GameInfoFlags::ICON | GameInfoFlags::PIC0 | GameInfoFlags::PIC1 | GameInfoFlags::UNCOMPRESSED_SIZE | GameInfoFlags::SIZE;
|
||||
|
||||
GameScreen::GameScreen(const Path &gamePath, bool inGame) : UIDialogScreenWithGameBackground(gamePath), inGame_(inGame) {
|
||||
GameScreen::GameScreen(const Path &gamePath, bool inGame) : UIBaseDialogScreen(gamePath), inGame_(inGame) {
|
||||
g_BackgroundAudio.SetGame(gamePath);
|
||||
System_PostUIMessage(UIMessage::GAME_SELECTED, gamePath.ToString());
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ class NoticeView;
|
||||
// Uses GameInfoCache heavily to implement the functionality.
|
||||
// Should possibly merge this with the PauseScreen.
|
||||
|
||||
class GameScreen : public UIDialogScreenWithGameBackground {
|
||||
class GameScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
GameScreen(const Path &gamePath, bool inGame);
|
||||
~GameScreen();
|
||||
|
||||
@@ -115,7 +115,7 @@ void SetMemStickDirDarwin(int requesterToken) {
|
||||
#endif
|
||||
|
||||
GameSettingsScreen::GameSettingsScreen(const Path &gamePath, std::string gameID, bool editThenRestore)
|
||||
: TabbedUIDialogScreenWithGameBackground(gamePath), gameID_(gameID), editThenRestore_(editThenRestore) {
|
||||
: UITabbedBaseDialogScreen(gamePath), gameID_(gameID), editThenRestore_(editThenRestore) {
|
||||
prevInflightFrames_ = g_Config.iInflightFrames;
|
||||
analogSpeedMapped_ = KeyMap::InputMappingsFromPspButton(VIRTKEY_SPEED_ANALOG, nullptr, true);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ class Path;
|
||||
|
||||
// Per-game settings screen - enables you to configure graphic options, control options, etc
|
||||
// per game.
|
||||
class GameSettingsScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class GameSettingsScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
GameSettingsScreen(const Path &gamePath, std::string gameID = "", bool editThenRestore = false);
|
||||
|
||||
@@ -183,9 +183,9 @@ private:
|
||||
};
|
||||
|
||||
|
||||
class GestureMappingScreen : public UIDialogScreenWithGameBackground {
|
||||
class GestureMappingScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
GestureMappingScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {}
|
||||
GestureMappingScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {}
|
||||
void CreateViews() override;
|
||||
|
||||
const char *tag() const override { return "GestureMapping"; }
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "UI/MiscScreens.h"
|
||||
|
||||
class IAPScreen : public UIDialogScreenWithBackground {
|
||||
class IAPScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
void CreateViews() override;
|
||||
const char *tag() const override { return "IAP"; }
|
||||
|
||||
@@ -258,5 +258,5 @@ void InstallZipScreen::update() {
|
||||
std::shared_ptr<GameInfo> ginfo = g_gameInfoCache->GetInfo(screenManager()->getDrawContext(), savedataToOverwrite_, GameInfoFlags::FILE_TYPE | GameInfoFlags::PARAM_SFO | GameInfoFlags::ICON | GameInfoFlags::SIZE);
|
||||
existingSaveView_->UpdateGame(ginfo.get());
|
||||
}
|
||||
UIDialogScreenWithBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
class SavedataView;
|
||||
|
||||
class InstallZipScreen : public UIDialogScreenWithBackground {
|
||||
class InstallZipScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
InstallZipScreen(const Path &zipPath);
|
||||
void update() override;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "Core/MIPS/JitCommon/JitCommon.h"
|
||||
#include "Core/MIPS/JitCommon/JitState.h"
|
||||
|
||||
JitCompareScreen::JitCompareScreen() : TabbedUIDialogScreenWithGameBackground(Path()) {
|
||||
JitCompareScreen::JitCompareScreen() : UITabbedBaseDialogScreen(Path()) {
|
||||
if (!MIPSComp::jit) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "UI/MiscScreens.h"
|
||||
#include "UI/TabbedDialogScreen.h"
|
||||
|
||||
class JitCompareScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class JitCompareScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
JitCompareScreen();
|
||||
void CreateTabs() override;
|
||||
|
||||
+2
-2
@@ -1366,7 +1366,7 @@ bool MainScreen::key(const KeyInput &touch) {
|
||||
searchKeyModifier_ = false;
|
||||
}
|
||||
|
||||
return UIScreenWithBackground::key(touch);
|
||||
return UIBaseScreen::key(touch);
|
||||
}
|
||||
|
||||
void MainScreen::OnAllowStorage(UI::EventParams &e) {
|
||||
@@ -1375,7 +1375,7 @@ void MainScreen::OnAllowStorage(UI::EventParams &e) {
|
||||
|
||||
void MainScreen::sendMessage(UIMessage message, const char *value) {
|
||||
// Always call the base class method first to handle the most common messages.
|
||||
UIScreenWithBackground::sendMessage(message, value);
|
||||
UIBaseScreen::sendMessage(message, value);
|
||||
|
||||
if (message == UIMessage::REQUEST_GAME_BOOT) {
|
||||
LaunchFile(screenManager(), this, Path(value));
|
||||
|
||||
+2
-2
@@ -118,7 +118,7 @@ private:
|
||||
|
||||
class RemoteISOBrowseScreen;
|
||||
|
||||
class MainScreen : public UIScreenWithBackground {
|
||||
class MainScreen : public UIBaseScreen {
|
||||
public:
|
||||
MainScreen();
|
||||
~MainScreen();
|
||||
@@ -180,7 +180,7 @@ protected:
|
||||
friend class RemoteISOBrowseScreen;
|
||||
};
|
||||
|
||||
class UmdReplaceScreen : public UIDialogScreenWithBackground {
|
||||
class UmdReplaceScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
const char *tag() const override { return "UmdReplace"; }
|
||||
|
||||
|
||||
@@ -447,7 +447,7 @@ void MemStickScreen::dialogFinished(const Screen *dialog, DialogResult result) {
|
||||
}
|
||||
|
||||
void MemStickScreen::update() {
|
||||
UIDialogScreenWithBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
if (done_) {
|
||||
TriggerFinish(DialogResult::DR_OK);
|
||||
done_ = false;
|
||||
@@ -567,7 +567,7 @@ void ConfirmMemstickMoveScreen::OnMoveDataClick(UI::EventParams ¶ms) {
|
||||
}
|
||||
|
||||
void ConfirmMemstickMoveScreen::update() {
|
||||
UIDialogScreenWithBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
auto ms = GetI18NCategory(I18NCat::MEMSTICK);
|
||||
|
||||
if (moveDataTask_) {
|
||||
|
||||
+3
-3
@@ -35,7 +35,7 @@ class NoticeView;
|
||||
|
||||
// MemStickScreen - let's you configure your memory stick directory.
|
||||
// Currently only useful for Android.
|
||||
class MemStickScreen : public UIDialogScreenWithBackground {
|
||||
class MemStickScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
MemStickScreen(bool initialSetup);
|
||||
~MemStickScreen() = default;
|
||||
@@ -58,7 +58,7 @@ protected:
|
||||
// Simple anti-flicker due to delayed finish.
|
||||
if (!done_) {
|
||||
// render as usual.
|
||||
return UIDialogScreenWithBackground::render(mode);
|
||||
return UIBaseDialogScreen::render(mode);
|
||||
} else {
|
||||
// no render. black frame insertion is better than flicker.
|
||||
}
|
||||
@@ -97,7 +97,7 @@ struct SpaceResult {
|
||||
int64_t bytesFree;
|
||||
};
|
||||
|
||||
class ConfirmMemstickMoveScreen : public UIDialogScreenWithBackground {
|
||||
class ConfirmMemstickMoveScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
ConfirmMemstickMoveScreen(const Path &newMemstickFolder, bool initialSetup);
|
||||
~ConfirmMemstickMoveScreen();
|
||||
|
||||
+6
-18
@@ -585,38 +585,26 @@ void BackgroundScreen::sendMessage(UIMessage message, const char *value) {
|
||||
}
|
||||
}
|
||||
|
||||
void UIScreenWithGameBackground::sendMessage(UIMessage message, const char *value) {
|
||||
void UIBaseDialogScreen::sendMessage(UIMessage message, const char *value) {
|
||||
if (message == UIMessage::SHOW_SETTINGS && screenManager()->topScreen() == this) {
|
||||
screenManager()->push(new GameSettingsScreen(gamePath_));
|
||||
} else {
|
||||
UIScreenWithBackground::sendMessage(message, value);
|
||||
HandleCommonMessages(message, value, screenManager(), this);
|
||||
}
|
||||
}
|
||||
|
||||
void UIDialogScreenWithGameBackground::sendMessage(UIMessage message, const char *value) {
|
||||
if (message == UIMessage::SHOW_SETTINGS && screenManager()->topScreen() == this) {
|
||||
screenManager()->push(new GameSettingsScreen(gamePath_));
|
||||
} else {
|
||||
UIDialogScreenWithBackground::sendMessage(message, value);
|
||||
}
|
||||
}
|
||||
|
||||
void UIScreenWithBackground::sendMessage(UIMessage message, const char *value) {
|
||||
void UIBaseScreen::sendMessage(UIMessage message, const char *value) {
|
||||
HandleCommonMessages(message, value, screenManager(), this);
|
||||
}
|
||||
|
||||
void UIDialogScreenWithBackground::AddStandardBack(UI::ViewGroup *parent) {
|
||||
void UIBaseDialogScreen::AddStandardBack(UI::ViewGroup *parent) {
|
||||
using namespace UI;
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
parent->Add(new Choice(di->T("Back"), "", false, new AnchorLayoutParams(190, WRAP_CONTENT, 10, NONE, NONE, 10)))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
|
||||
}
|
||||
|
||||
void UIDialogScreenWithBackground::sendMessage(UIMessage message, const char *value) {
|
||||
HandleCommonMessages(message, value, screenManager(), this);
|
||||
}
|
||||
|
||||
PromptScreen::PromptScreen(const Path &gamePath, std::string_view message, std::string_view yesButtonText, std::string_view noButtonText, std::function<void(bool)> callback)
|
||||
: UIDialogScreenWithGameBackground(gamePath), message_(message), callback_(callback) {
|
||||
: UIBaseDialogScreen(gamePath), message_(message), callback_(callback) {
|
||||
yesButtonText_ = yesButtonText;
|
||||
noButtonText_ = noButtonText;
|
||||
}
|
||||
@@ -670,7 +658,7 @@ void PromptScreen::TriggerFinish(DialogResult result) {
|
||||
if (callback_) {
|
||||
callback_(result == DR_OK || result == DR_YES);
|
||||
}
|
||||
UIDialogScreenWithBackground::TriggerFinish(result);
|
||||
UIBaseDialogScreen::TriggerFinish(result);
|
||||
}
|
||||
|
||||
TextureShaderScreen::TextureShaderScreen(std::string_view title) : ListPopupScreen(title) {}
|
||||
|
||||
+8
-26
@@ -50,44 +50,26 @@ private:
|
||||
|
||||
// This doesn't have anything to do with the background anymore. It's just a PPSSPP UIScreen
|
||||
// that knows how handle sendMessage properly. Same for all the below.
|
||||
class UIScreenWithBackground : public UIScreen {
|
||||
class UIBaseScreen : public UIScreen {
|
||||
public:
|
||||
UIScreenWithBackground() : UIScreen() {}
|
||||
UIBaseScreen() : UIScreen() {}
|
||||
protected:
|
||||
void sendMessage(UIMessage message, const char *value) override;
|
||||
};
|
||||
|
||||
class UIScreenWithGameBackground : public UIScreenWithBackground {
|
||||
class UIBaseDialogScreen : public UIDialogScreen {
|
||||
public:
|
||||
UIScreenWithGameBackground(const Path &gamePath) : UIScreenWithBackground(), gamePath_(gamePath) {}
|
||||
void sendMessage(UIMessage message, const char *value) override;
|
||||
protected:
|
||||
Path gamePath_;
|
||||
|
||||
bool forceTransparent_ = false;
|
||||
bool darkenGameBackground_ = true;
|
||||
};
|
||||
|
||||
class UIDialogScreenWithBackground : public UIDialogScreen {
|
||||
public:
|
||||
UIDialogScreenWithBackground() : UIDialogScreen() {}
|
||||
UIBaseDialogScreen() : UIDialogScreen(), gamePath_() {}
|
||||
explicit UIBaseDialogScreen(const Path &gamePath) : UIDialogScreen(), gamePath_(gamePath) {}
|
||||
protected:
|
||||
void sendMessage(UIMessage message, const char *value) override;
|
||||
void AddStandardBack(UI::ViewGroup *parent);
|
||||
};
|
||||
|
||||
class UIDialogScreenWithGameBackground : public UIDialogScreenWithBackground {
|
||||
public:
|
||||
UIDialogScreenWithGameBackground(const Path &gamePath)
|
||||
: UIDialogScreenWithBackground(), gamePath_(gamePath) {}
|
||||
void sendMessage(UIMessage message, const char *value) override;
|
||||
protected:
|
||||
Path gamePath_;
|
||||
};
|
||||
|
||||
class PromptScreen : public UIDialogScreenWithGameBackground {
|
||||
class PromptScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
PromptScreen(const Path& gamePath, std::string_view message, std::string_view yesButtonText, std::string_view noButtonText,
|
||||
PromptScreen(const Path &gamePath, std::string_view message, std::string_view yesButtonText, std::string_view noButtonText,
|
||||
std::function<void(bool)> callback = &NoOpVoidBool);
|
||||
|
||||
void CreateViews() override;
|
||||
@@ -156,7 +138,7 @@ private:
|
||||
AfterLogoScreen afterLogoScreen_;
|
||||
};
|
||||
|
||||
class CreditsScreen : public UIDialogScreenWithBackground {
|
||||
class CreditsScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
void update() override;
|
||||
|
||||
|
||||
+1
-1
@@ -328,7 +328,7 @@ void GamePauseScreen::update() {
|
||||
}
|
||||
|
||||
GamePauseScreen::GamePauseScreen(const Path &filename, bool bootPending)
|
||||
: UIDialogScreenWithGameBackground(filename), bootPending_(bootPending) {
|
||||
: UIBaseDialogScreen(filename), bootPending_(bootPending) {
|
||||
// So we can tell if something blew up while on the pause screen.
|
||||
std::string assertStr = "PauseScreen: " + filename.GetFilename();
|
||||
SetExtraAssertInfo(assertStr.c_str());
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
#include "UI/MiscScreens.h"
|
||||
#include "UI/Screen.h"
|
||||
|
||||
class GamePauseScreen : public UIDialogScreenWithGameBackground {
|
||||
class GamePauseScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
GamePauseScreen(const Path &filename, bool bootPending);
|
||||
~GamePauseScreen();
|
||||
|
||||
@@ -270,7 +270,7 @@ static bool LoadGameList(const Path &url, std::vector<Path> &games) {
|
||||
return !games.empty();
|
||||
}
|
||||
|
||||
RemoteISOScreen::RemoteISOScreen(const Path &filename) : TabbedUIDialogScreenWithGameBackground(filename) {}
|
||||
RemoteISOScreen::RemoteISOScreen(const Path &filename) : UITabbedBaseDialogScreen(filename) {}
|
||||
|
||||
|
||||
void RemoteISOScreen::CreateTabs() {
|
||||
@@ -287,7 +287,7 @@ void RemoteISOScreen::CreateTabs() {
|
||||
}
|
||||
|
||||
void RemoteISOScreen::update() {
|
||||
TabbedUIDialogScreenWithGameBackground::update();
|
||||
UITabbedBaseDialogScreen::update();
|
||||
|
||||
frameCount_++;
|
||||
|
||||
@@ -499,7 +499,7 @@ void RemoteISOConnectScreen::CreateViews() {
|
||||
void RemoteISOConnectScreen::update() {
|
||||
auto ri = GetI18NCategory(I18NCat::REMOTEISO);
|
||||
|
||||
UIDialogScreenWithBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
|
||||
ScanStatus s = GetStatus();
|
||||
switch (s) {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "UI/MainScreen.h"
|
||||
#include "UI/TabbedDialogScreen.h"
|
||||
|
||||
class RemoteISOScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class RemoteISOScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
RemoteISOScreen(const Path &filename);
|
||||
|
||||
@@ -62,7 +62,7 @@ enum class ScanStatus {
|
||||
LOADED,
|
||||
};
|
||||
|
||||
class RemoteISOConnectScreen : public UIDialogScreenWithBackground {
|
||||
class RemoteISOConnectScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
RemoteISOConnectScreen();
|
||||
~RemoteISOConnectScreen();
|
||||
|
||||
@@ -177,7 +177,7 @@ RetroAchievementsLeaderboardScreen::~RetroAchievementsLeaderboardScreen() {
|
||||
}
|
||||
|
||||
RetroAchievementsLeaderboardScreen::RetroAchievementsLeaderboardScreen(const Path &gamePath, int leaderboardID)
|
||||
: TabbedUIDialogScreenWithGameBackground(gamePath), leaderboardID_(leaderboardID) {
|
||||
: UITabbedBaseDialogScreen(gamePath), leaderboardID_(leaderboardID) {
|
||||
FetchEntries();
|
||||
}
|
||||
|
||||
@@ -253,7 +253,7 @@ void RetroAchievementsLeaderboardScreen::Poll() {
|
||||
}
|
||||
|
||||
void RetroAchievementsLeaderboardScreen::update() {
|
||||
TabbedUIDialogScreenWithGameBackground::update();
|
||||
UITabbedBaseDialogScreen::update();
|
||||
Poll();
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ void RetroAchievementsSettingsScreen::CreateTabs() {
|
||||
}
|
||||
|
||||
void RetroAchievementsSettingsScreen::sendMessage(UIMessage message, const char *value) {
|
||||
TabbedUIDialogScreenWithGameBackground::sendMessage(message, value);
|
||||
UITabbedBaseDialogScreen::sendMessage(message, value);
|
||||
|
||||
if (message == UIMessage::ACHIEVEMENT_LOGIN_STATE_CHANGE) {
|
||||
RecreateViews();
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
#include "ext/rcheevos/include/rc_client.h"
|
||||
|
||||
// Lists the achievements and leaderboards for one game.
|
||||
class RetroAchievementsListScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class RetroAchievementsListScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
RetroAchievementsListScreen(const Path &gamePath) : TabbedUIDialogScreenWithGameBackground(gamePath) {}
|
||||
RetroAchievementsListScreen(const Path &gamePath) : UITabbedBaseDialogScreen(gamePath) {}
|
||||
const char *tag() const override { return "RetroAchievementsListScreen"; }
|
||||
|
||||
void CreateTabs() override;
|
||||
@@ -30,9 +30,9 @@ private:
|
||||
};
|
||||
|
||||
// Lets you manage your account, and shows some achievement stats and stuff.
|
||||
class RetroAchievementsSettingsScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class RetroAchievementsSettingsScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
RetroAchievementsSettingsScreen(const Path &gamePath) : TabbedUIDialogScreenWithGameBackground(gamePath) {}
|
||||
RetroAchievementsSettingsScreen(const Path &gamePath) : UITabbedBaseDialogScreen(gamePath) {}
|
||||
~RetroAchievementsSettingsScreen();
|
||||
const char *tag() const override { return "RetroAchievementsSettingsScreen"; }
|
||||
|
||||
@@ -50,7 +50,7 @@ private:
|
||||
std::string password_;
|
||||
};
|
||||
|
||||
class RetroAchievementsLeaderboardScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class RetroAchievementsLeaderboardScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
RetroAchievementsLeaderboardScreen(const Path &gamePath, int leaderboardID);
|
||||
~RetroAchievementsLeaderboardScreen();
|
||||
|
||||
@@ -711,7 +711,7 @@ void SavedataScreen::dialogFinished(const Screen *dialog, DialogResult result) {
|
||||
}
|
||||
|
||||
void SavedataScreen::sendMessage(UIMessage message, const char *value) {
|
||||
UIDialogScreenWithGameBackground::sendMessage(message, value);
|
||||
UIBaseDialogScreen::sendMessage(message, value);
|
||||
|
||||
if (message == UIMessage::SAVEDATA_SEARCH) {
|
||||
EnsureTabs();
|
||||
|
||||
+2
-2
@@ -67,10 +67,10 @@ private:
|
||||
bool searchPending_ = false;
|
||||
};
|
||||
|
||||
class SavedataScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class SavedataScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
// gamePath can be empty, in that case this screen will show all savedata in the save directory.
|
||||
SavedataScreen(const Path &gamePath) : TabbedUIDialogScreenWithGameBackground(gamePath) {}
|
||||
SavedataScreen(const Path &gamePath) : UITabbedBaseDialogScreen(gamePath) {}
|
||||
~SavedataScreen();
|
||||
|
||||
void dialogFinished(const Screen *dialog, DialogResult result) override;
|
||||
|
||||
+2
-4
@@ -436,7 +436,7 @@ StoreScreen::~StoreScreen() {
|
||||
|
||||
// Handle async download tasks
|
||||
void StoreScreen::update() {
|
||||
UIDialogScreenWithBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
|
||||
g_DownloadManager.Update();
|
||||
|
||||
@@ -515,7 +515,7 @@ void StoreScreen::CreateViews() {
|
||||
|
||||
// Top bar
|
||||
LinearLayout *topBar = root_->Add(new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(FILL_PARENT, 64.0f)));
|
||||
topBar->Add(new Choice(di->T("Back"), new LinearLayoutParams(WRAP_CONTENT, FILL_PARENT)))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
|
||||
topBar->Add(new Choice(ImageID("I_NAVIGATE_BACK"), new LinearLayoutParams(WRAP_CONTENT, FILL_PARENT)))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
|
||||
titleText_ = new TextView(mm->T("PPSSPP Homebrew Store"), ALIGN_VCENTER, false, new LinearLayoutParams(WRAP_CONTENT, FILL_PARENT));
|
||||
titleText_->SetTextColor(screenManager()->getUIContext()->GetTheme().itemDownStyle.fgColor);
|
||||
topBar->Add(titleText_);
|
||||
@@ -528,9 +528,7 @@ void StoreScreen::CreateViews() {
|
||||
content->Add(new TextView(loading_ ? std::string(st->T("Loading...")) : StringFromFormat("%s: %d", st->T_cstr("Connection Error"), resultCode_)));
|
||||
if (!loading_) {
|
||||
content->Add(new Button(di->T("Retry")))->OnClick.Handle(this, &StoreScreen::OnRetry);
|
||||
|
||||
}
|
||||
content->Add(new Button(di->T("Back")))->OnClick.Handle<UIScreen>(this, &UIScreen::OnBack);
|
||||
|
||||
scrollItemView_ = nullptr;
|
||||
productPanel_ = nullptr;
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ struct StoreEntry {
|
||||
u64 size;
|
||||
};
|
||||
|
||||
class StoreScreen : public UIDialogScreenWithBackground {
|
||||
class StoreScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
StoreScreen();
|
||||
~StoreScreen();
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "android/jni/app-android.h"
|
||||
|
||||
void SystemInfoScreen::update() {
|
||||
TabbedUIDialogScreenWithGameBackground::update();
|
||||
UITabbedBaseDialogScreen::update();
|
||||
g_OSD.NudgeSidebar();
|
||||
}
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
#include "Common/UI/UIScreen.h"
|
||||
#include "UI/TabbedDialogScreen.h"
|
||||
|
||||
class SystemInfoScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class SystemInfoScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
SystemInfoScreen(const Path &filename) : TabbedUIDialogScreenWithGameBackground(filename) {}
|
||||
SystemInfoScreen(const Path &filename) : UITabbedBaseDialogScreen(filename) {}
|
||||
|
||||
const char *tag() const override { return "SystemInfo"; }
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "Common/UI/TabHolder.h"
|
||||
#include "UI/TabbedDialogScreen.h"
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::AddTab(const char *tag, std::string_view title, std::function<void(UI::LinearLayout *)> createCallback, TabFlags flags) {
|
||||
void UITabbedBaseDialogScreen::AddTab(const char *tag, std::string_view title, std::function<void(UI::LinearLayout *)> createCallback, TabFlags flags) {
|
||||
using namespace UI;
|
||||
|
||||
tabHolder_->AddTabDeferred(title, [createCallback = std::move(createCallback), tag, flags]() -> UI::ViewGroup * {
|
||||
@@ -28,7 +28,7 @@ void TabbedUIDialogScreenWithGameBackground::AddTab(const char *tag, std::string
|
||||
});
|
||||
}
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::CreateViews() {
|
||||
void UITabbedBaseDialogScreen::CreateViews() {
|
||||
PreCreateViews();
|
||||
|
||||
bool portrait = UsePortraitLayout() || ForceHorizontalTabs();
|
||||
@@ -104,8 +104,8 @@ void TabbedUIDialogScreenWithGameBackground::CreateViews() {
|
||||
}
|
||||
}
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::sendMessage(UIMessage message, const char *value) {
|
||||
UIDialogScreenWithGameBackground::sendMessage(message, value);
|
||||
void UITabbedBaseDialogScreen::sendMessage(UIMessage message, const char *value) {
|
||||
UIBaseDialogScreen::sendMessage(message, value);
|
||||
if (message == UIMessage::GAMESETTINGS_SEARCH) {
|
||||
std::string filter = value ? value : "";
|
||||
searchFilter_.resize(filter.size());
|
||||
@@ -115,27 +115,27 @@ void TabbedUIDialogScreenWithGameBackground::sendMessage(UIMessage message, cons
|
||||
}
|
||||
}
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::RecreateViews() {
|
||||
void UITabbedBaseDialogScreen::RecreateViews() {
|
||||
oldSettingInfo_ = settingInfo_ ? settingInfo_->GetText() : "N/A";
|
||||
UIScreen::RecreateViews();
|
||||
}
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::EnsureTabs() {
|
||||
void UITabbedBaseDialogScreen::EnsureTabs() {
|
||||
_dbg_assert_(tabHolder_);
|
||||
if (tabHolder_) {
|
||||
tabHolder_->EnsureAllCreated();
|
||||
}
|
||||
}
|
||||
|
||||
int TabbedUIDialogScreenWithGameBackground::GetCurrentTab() const {
|
||||
int UITabbedBaseDialogScreen::GetCurrentTab() const {
|
||||
return tabHolder_->GetCurrentTab();
|
||||
}
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::SetCurrentTab(int tab) {
|
||||
void UITabbedBaseDialogScreen::SetCurrentTab(int tab) {
|
||||
tabHolder_->SetCurrentTab(tab);
|
||||
}
|
||||
|
||||
void TabbedUIDialogScreenWithGameBackground::ApplySearchFilter() {
|
||||
void UITabbedBaseDialogScreen::ApplySearchFilter() {
|
||||
using namespace UI;
|
||||
auto se = GetI18NCategory(I18NCat::SEARCH);
|
||||
|
||||
|
||||
@@ -18,9 +18,9 @@ enum class TabFlags {
|
||||
};
|
||||
ENUM_CLASS_BITOPS(TabFlags);
|
||||
|
||||
class TabbedUIDialogScreenWithGameBackground : public UIDialogScreenWithGameBackground {
|
||||
class UITabbedBaseDialogScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
TabbedUIDialogScreenWithGameBackground(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {
|
||||
UITabbedBaseDialogScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {
|
||||
ignoreBottomInset_ = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ void TiltAnalogSettingsScreen::OnCalibrate(UI::EventParams &e) {
|
||||
}
|
||||
|
||||
void TiltAnalogSettingsScreen::update() {
|
||||
UIDialogScreenWithGameBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
if (tilt_) {
|
||||
tilt_->SetXY(
|
||||
Clamp(TiltEventProcessor::rawTiltAnalogX, -1.0f, 1.0f),
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
class JoystickHistoryView;
|
||||
class GamepadView;
|
||||
|
||||
class TiltAnalogSettingsScreen : public UIDialogScreenWithGameBackground {
|
||||
class TiltAnalogSettingsScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
TiltAnalogSettingsScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {}
|
||||
TiltAnalogSettingsScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {}
|
||||
|
||||
void CreateViews() override;
|
||||
void update() override;
|
||||
|
||||
@@ -605,7 +605,7 @@ void TouchControlLayoutScreen::OnMode(UI::EventParams &e) {
|
||||
}
|
||||
|
||||
void TouchControlLayoutScreen::update() {
|
||||
UIDialogScreenWithGameBackground::update();
|
||||
UIBaseDialogScreen::update();
|
||||
|
||||
if (!layoutView_) {
|
||||
return;
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
|
||||
class ControlLayoutView;
|
||||
|
||||
class TouchControlLayoutScreen : public UIDialogScreenWithGameBackground {
|
||||
class TouchControlLayoutScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
TouchControlLayoutScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {}
|
||||
TouchControlLayoutScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {}
|
||||
|
||||
void CreateViews() override;
|
||||
void dialogFinished(const Screen *dialog, DialogResult result) override;
|
||||
|
||||
@@ -32,9 +32,9 @@ struct TouchButtonToggle {
|
||||
std::function<void(UI::EventParams&)> handle;
|
||||
};
|
||||
|
||||
class TouchControlVisibilityScreen : public TabbedUIDialogScreenWithGameBackground {
|
||||
class TouchControlVisibilityScreen : public UITabbedBaseDialogScreen {
|
||||
public:
|
||||
TouchControlVisibilityScreen(const Path &gamePath) : TabbedUIDialogScreenWithGameBackground(gamePath) {}
|
||||
TouchControlVisibilityScreen(const Path &gamePath) : UITabbedBaseDialogScreen(gamePath) {}
|
||||
void CreateTabs() override;
|
||||
void onFinish(DialogResult result) override;
|
||||
|
||||
@@ -49,9 +49,9 @@ private:
|
||||
bool nextToggleAll_ = true;
|
||||
};
|
||||
|
||||
class RightAnalogMappingScreen : public UIDialogScreenWithGameBackground {
|
||||
class RightAnalogMappingScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
RightAnalogMappingScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {}
|
||||
RightAnalogMappingScreen(const Path &gamePath) : UIBaseDialogScreen(gamePath) {}
|
||||
void CreateViews() override;
|
||||
|
||||
const char *tag() const override { return "RightAnalogMapping"; }
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
// Upload screen: Shows the user an ip address to go to in a web browser on the same network,
|
||||
// in order to upload game files to the current directory.
|
||||
|
||||
class UploadScreen : public UIDialogScreenWithBackground {
|
||||
class UploadScreen : public UIBaseDialogScreen {
|
||||
public:
|
||||
UploadScreen(const Path &targetFolder);
|
||||
~UploadScreen();
|
||||
|
||||
Reference in New Issue
Block a user