mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
d8ef3ee6c5
Spectator Mode is a new mode added by rc_client that allows for achievement and leaderboard functionality, but does not submit this data to the site, partially allowing for offline achievements. It effectively replaces the former settings for disabling achievements, leaderboards, and RP, which are now always active internally as long as the client is active.
61 lines
1.5 KiB
C++
61 lines
1.5 KiB
C++
// Copyright 2023 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
#include <QWidget>
|
|
|
|
class QGroupBox;
|
|
class QVBoxLayout;
|
|
class QLabel;
|
|
class QLineEdit;
|
|
class QPushButton;
|
|
class ToolTipCheckBox;
|
|
|
|
class AchievementSettingsWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AchievementSettingsWidget(QWidget* parent);
|
|
void UpdateData();
|
|
|
|
private:
|
|
void OnControllerInterfaceConfigure();
|
|
|
|
void CreateLayout();
|
|
void ConnectWidgets();
|
|
|
|
void LoadSettings();
|
|
void SaveSettings();
|
|
|
|
void ToggleRAIntegration();
|
|
void Login();
|
|
void Logout();
|
|
void ToggleHardcore();
|
|
void ToggleUnofficial();
|
|
void ToggleEncore();
|
|
void ToggleSpectator();
|
|
void ToggleProgress();
|
|
void ToggleBadges();
|
|
|
|
QGroupBox* m_common_box;
|
|
QVBoxLayout* m_common_layout;
|
|
ToolTipCheckBox* m_common_integration_enabled_input;
|
|
QLabel* m_common_login_failed;
|
|
QLabel* m_common_username_label;
|
|
QLineEdit* m_common_username_input;
|
|
QLabel* m_common_password_label;
|
|
QLineEdit* m_common_password_input;
|
|
QPushButton* m_common_login_button;
|
|
QPushButton* m_common_logout_button;
|
|
ToolTipCheckBox* m_common_hardcore_enabled_input;
|
|
ToolTipCheckBox* m_common_unofficial_enabled_input;
|
|
ToolTipCheckBox* m_common_encore_enabled_input;
|
|
ToolTipCheckBox* m_common_spectator_enabled_input;
|
|
ToolTipCheckBox* m_common_progress_enabled_input;
|
|
ToolTipCheckBox* m_common_badges_enabled_input;
|
|
};
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|