Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/synthesis tutorial old user #6631

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nekoyume/Assets/_Scripts/UI/Widget/CombinationMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public void TutorialActionClickCombinationRuneButton()
public void TutorialActionSynthesisShow()
{
synthesisButton.onClick?.Invoke();
Find<Synthesis>().CheckTutorial();
}

[UsedImplicitly]
Expand Down
14 changes: 14 additions & 0 deletions nekoyume/Assets/_Scripts/UI/Widget/Workshop/Synthesis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class Synthesis : Widget

private const ItemSubType DefaultItemSubType = ItemSubType.Aura;

private static string TutorialCheckKey => $"Tutorial_Check_Synthesis_{Game.Game.instance.States.CurrentAvatarKey}";

private readonly List<IDisposable> _activeDisposables = new();
private readonly ToggleGroup _toggleGroup = new();

Expand Down Expand Up @@ -135,6 +137,13 @@ protected override void OnDisable()

public override void Show(bool ignoreShowAnimation = false)
{
if (PlayerPrefs.GetInt(TutorialCheckKey, 0) == 0)
{
// Play Tutorial - for old user
Game.Game.instance.Stage.TutorialController.Play(1510002);
PlayerPrefs.SetInt(TutorialCheckKey, 1);
}

base.Show(ignoreShowAnimation);

if (CurrentItemSubType == DefaultItemSubType)
Expand Down Expand Up @@ -343,5 +352,10 @@ public static bool IsStrong(ItemBase itemBase)
}

#endregion Utils

public void CheckTutorial()
{
PlayerPrefs.SetInt(TutorialCheckKey, 1);
}
}
}
4 changes: 2 additions & 2 deletions nekoyume/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ PlayerSettings:
16:10: 0
16:9: 1
Others: 0
bundleVersion: 260.0.3
bundleVersion: 260.0.4
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down Expand Up @@ -168,7 +168,7 @@ PlayerSettings:
iPhone: 0
tvOS: 0
overrideDefaultApplicationIdentifier: 1
AndroidBundleVersionCode: 275
AndroidBundleVersionCode: 276
AndroidMinSdkVersion: 24
AndroidTargetSdkVersion: 34
AndroidPreferredInstallLocation: 2
Expand Down
Loading