Skip to content

Commit

Permalink
Show onboarding for all after 3.1 update
Browse files Browse the repository at this point in the history
  • Loading branch information
keiwando committed Sep 18, 2022
1 parent d0ea343 commit 1b905ed
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
9 changes: 5 additions & 4 deletions Assets/Scripts/Data/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Settings {
private const string AUTO_SAVE_DISTANCE_KEY = "AUTO_SAVE_DISTANCE_KEY";
private const string HELP_SCREEN_LANGUAGE_KEY = "HELP_SCREEN_LANGUAGE";
private const string LANGUAGE_KEY = "LANGUAGE_KEY";
private const string HELP_INDICATOR_SHOWN_KEY = "FIRST_TIME";
private const string SHOW_ONBOARDING_KEY = "SHOW_ONBOARDING_KEY";
private const string CREATURE_NAMES_KEY = "_CreatureNames";
private const string SIMULATION_SETTINGS_KEY = "EVOLUTION_SETTINGS";
private const string NETWORK_SETTINGS_KEY = "NEURAL NETWORK SETTINGS";
Expand Down Expand Up @@ -94,9 +94,9 @@ public static string Language {
set { Store.SetString(LANGUAGE_KEY, value); }
}

public static bool HelpIndicatorShown {
get { return Store.GetBool(HELP_INDICATOR_SHOWN_KEY, true); }
set { Store.SetBool(HELP_INDICATOR_SHOWN_KEY, value); }
public static bool ShowOnboarding {
get { return Store.GetBool(SHOW_ONBOARDING_KEY, true); }
set { Store.SetBool(SHOW_ONBOARDING_KEY, value); }
}

public static string CreatureNames {
Expand Down Expand Up @@ -145,6 +145,7 @@ private static void Initialize() {
AutoSaveDistance = 5;
HelpScreenLanguage = "LANGUAGE_ENGLISH";
Language = "en";
ShowOnboarding = true;
}

public static void Reset() {
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Data/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int AutoSaveDistance = 5

string HelpScreenLanguage = "LANGUAGE_ENGLISH" (HELP_SCREEN_LANGUAGE)
string Language = "en"
bool HelpIndicatorShown (FIRST_TIME)
bool ShowOnboarding = true

string CreatureNames (_CreatureNames)
string SimulationSettings (EVOLUTION_SETTINGS)
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/View/OnboardingScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public class OnboardingScreen : MonoBehaviour {

void Start () {

if (!Settings.HelpIndicatorShown) {
if (Settings.ShowOnboarding) {
Show();
Settings.HelpIndicatorShown = true;
Settings.ShowOnboarding = false;
}
}

Expand Down
4 changes: 4 additions & 0 deletions CHANGELGO.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v3.1.0

-

## v3.0.6

- Fixed Web build in Safari by forcing the use of WebGL 1.0
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ PlayerSettings:
Standalone: 1
iOS: 1
AndroidBundleVersionCode: 18
AndroidMinSdkVersion: 19
AndroidMinSdkVersion: 24
AndroidTargetSdkVersion: 31
AndroidPreferredInstallLocation: 1
aotOptions:
Expand Down

0 comments on commit 1b905ed

Please sign in to comment.