Showcase build reset help messages on tutorial launch
This commit is contained in:
@@ -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");
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user