private void onMarketPlaceTutorialComplete(TutorialDefinition definition) { TutorialManager tutorialManager = Service.Get <TutorialManager>(); tutorialManager.TutorialCompleteAction = (Action <TutorialDefinition>)Delegate.Remove(tutorialManager.TutorialCompleteAction, new Action <TutorialDefinition>(onMarketPlaceTutorialComplete)); tryStartPartyGamesTutorial(); }
private void onTutorialComplete(TutorialDefinition definition) { TutorialManager tutorialManager = Service.Get <TutorialManager>(); tutorialManager.TutorialCompleteAction = (Action <TutorialDefinition>)Delegate.Remove(tutorialManager.TutorialCompleteAction, new Action <TutorialDefinition>(onTutorialComplete)); State = DivingState.HoldingBreath; }
private void onPartySuppliesTutorialComplete(TutorialDefinition definition) { TutorialManager tutorialManager = Service.Get <TutorialManager>(); tutorialManager.TutorialCompleteAction = (Action <TutorialDefinition>)Delegate.Remove(tutorialManager.TutorialCompleteAction, new Action <TutorialDefinition>(onPartySuppliesTutorialComplete)); TrayAnimator.TrayAnimator.speed = 1f; HideConfirmation(); }
private void onTutorialComplete(TutorialDefinition definition) { if (definition.Id == IglooButtonUtils.IGLOO_TUTORIAL_ID) { TutorialManager tutorialManager = Service.Get <TutorialManager>(); tutorialManager.TutorialCompleteAction = (Action <TutorialDefinition>)Delegate.Remove(tutorialManager.TutorialCompleteAction, new Action <TutorialDefinition>(onTutorialComplete)); if (isMemberLocked) { button.enabled = true; } } }
protected virtual string CreateVideoMarkup(TutorialDefinition item, string customStyle, string customClass) { StringBuilder ctrl = new StringBuilder(); for (var i = 0; i < item.Streams.Length; i++) { var str = item.Streams[i]; string url = formatter == null ? $"/File/{str.DownloadToken}" : formatter.FormatUrl($"[SlashPermissionScope]/File/{str.DownloadToken}"); ctrl.AppendLine($@"<source src='{url}' type='{str.ContentType}' />"); } var videoTag = $@"<video {(string.IsNullOrEmpty(customStyle) ? @"width=""100%"" height=""100%""" : $@"style=""{customStyle}""")} {(!string.IsNullOrEmpty(customClass) ? $@"class=""{customClass}""" : "")} controls>