mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
match RA branding softcore->casual (#1142)
This commit is contained in:
@@ -159,7 +159,7 @@ void ra_welcome(const char **game_title, const char **game_image_url) {
|
|||||||
|
|
||||||
int message_length = snprintf(
|
int message_length = snprintf(
|
||||||
buffer, sizeof(buffer), "%s\nMode: %s\n", game->title,
|
buffer, sizeof(buffer), "%s\nMode: %s\n", game->title,
|
||||||
rc_client_get_hardcore_enabled(g_client) ? "Hardcore" : "Softcore");
|
rc_client_get_hardcore_enabled(g_client) ? "Hardcore" : "Casual");
|
||||||
|
|
||||||
if (summary.num_core_achievements != 0) {
|
if (summary.num_core_achievements != 0) {
|
||||||
snprintf(buffer + message_length, sizeof(buffer) - message_length,
|
snprintf(buffer + message_length, sizeof(buffer) - message_length,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export component AppWindow inherits Window {
|
|||||||
in-out property ra_challenge <=> RAData.challenge;
|
in-out property ra_challenge <=> RAData.challenge;
|
||||||
in-out property ra_leaderboard <=> RAData.leaderboard;
|
in-out property ra_leaderboard <=> RAData.leaderboard;
|
||||||
in-out property ra_rich_presence <=> RAData.rich_presence;
|
in-out property ra_rich_presence <=> RAData.rich_presence;
|
||||||
in-out property ra_softcore_only <=> RAData.ra_softcore_only;
|
in-out property ra_casual_only <=> RAData.ra_casual_only;
|
||||||
out property ra_not_logged_in <=> RAData.not_logged_in;
|
out property ra_not_logged_in <=> RAData.not_logged_in;
|
||||||
in-out property integer_scaling <=> SettingsData.integer_scaling;
|
in-out property integer_scaling <=> SettingsData.integer_scaling;
|
||||||
in-out property ssaa <=> SettingsData.ssaa;
|
in-out property ssaa <=> SettingsData.ssaa;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export global RAData {
|
|||||||
in-out property <bool> rich_presence;
|
in-out property <bool> rich_presence;
|
||||||
in-out property <bool> ra_logging_in;
|
in-out property <bool> ra_logging_in;
|
||||||
in-out property <bool> ra_show_profile;
|
in-out property <bool> ra_show_profile;
|
||||||
in-out property <bool> ra_softcore_only;
|
in-out property <bool> ra_casual_only;
|
||||||
in-out property <string> ra_username;
|
in-out property <string> ra_username;
|
||||||
in-out property <string> ra_password;
|
in-out property <string> ra_password;
|
||||||
in-out property <string> current_user_message;
|
in-out property <string> current_user_message;
|
||||||
@@ -47,7 +47,7 @@ export component RetroAchievements inherits Page {
|
|||||||
ra_toggled(RAData.enabled,RAData.hardcore,RAData.challenge,RAData.leaderboard,RAData.rich_presence);
|
ra_toggled(RAData.enabled,RAData.hardcore,RAData.challenge,RAData.leaderboard,RAData.rich_presence);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !RAData.ra_softcore_only: Switch {
|
if !RAData.ra_casual_only: Switch {
|
||||||
text: @tr("Hardcore mode");
|
text: @tr("Hardcore mode");
|
||||||
checked: RAData.hardcore;
|
checked: RAData.hardcore;
|
||||||
enabled: RAData.enabled;
|
enabled: RAData.enabled;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ pub fn ra_window(app: &ui::gui::AppWindow) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !cfg!(ra_hardcore_enabled) {
|
if !cfg!(ra_hardcore_enabled) {
|
||||||
app.set_ra_softcore_only(true);
|
app.set_ra_casual_only(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if app.get_ra_enabled() && !app.get_ra_username().is_empty() {
|
if app.get_ra_enabled() && !app.get_ra_username().is_empty() {
|
||||||
|
|||||||
Reference in New Issue
Block a user