Showcase build reset help messages on tutorial launch

This commit is contained in:
2025-08-19 09:07:41 -05:00
parent b255eaeab8
commit c7772e67a1
2 changed files with 6 additions and 0 deletions

View File

@@ -3776,6 +3776,10 @@ void start_new_game(bool force) {
void start_tutorial() { void start_tutorial() {
std::string version_flag = get_feature_version("tutorial"); std::string version_flag = get_feature_version("tutorial");
if(!version_flag.empty()){ if(!version_flag.empty()){
#ifdef SHOWCASE
clear_pref("ReceivedHelp");
#endif
if(party_in_memory){ if(party_in_memory){
cChoiceDlog confirm("restart-game",{"okay","cancel"}); cChoiceDlog confirm("restart-game",{"okay","cancel"});
confirm->getControl("warning").replaceText("{{action}}", "Starting the tutorial"); confirm->getControl("warning").replaceText("{{action}}", "Starting the tutorial");

View File

@@ -1,6 +1,8 @@
#include <SFML/Graphics.hpp> #include <SFML/Graphics.hpp>
#define SHOWCASE 1
#ifdef __APPLE__ #ifdef __APPLE__
extern eMenuChoice menuChoice; extern eMenuChoice menuChoice;
extern short menuChoiceId; extern short menuChoiceId;