internal static async Task <bool> IsPinnedToStart() { AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; bool isPinned = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry); return(isPinned); }
public static async Task <PinResult> PinUserSpecificAppToStartMenuAsync(User user, AppListEntry entry) { var resultPinResult = PinResult.UnsupportedOs; if (!ApiInformation.IsTypePresent("Windows.UI.StartScreen.StartScreenManager")) { return(resultPinResult); } if (StartScreenManager.GetForUser(user).SupportsAppListEntry(entry)) { if (await StartScreenManager.GetForUser(user).ContainsAppListEntryAsync(entry)) { resultPinResult = PinResult.PinAlreadyPresent; } else { var result = await StartScreenManager.GetForUser(user).RequestAddAppListEntryAsync(entry); resultPinResult = result ? PinResult.PinPresent : PinResult.PinOperationFailed; } } else { resultPinResult = PinResult.UnsupportedDevice; } return(resultPinResult); }
private async void FirstStartAppSuggestingAddLiveTile() { //ApplicationData.Current.LocalSettings.Values.Remove("IsNotFirstStart"); // remove after testing if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("IsNotFirstStart")) { if (ApiInformation.IsTypePresent("Windows.UI.StartScreen.StartScreenManager")) { AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; bool isSupportedStartScreen = StartScreenManager.GetDefault().SupportsAppListEntry(entry); if (isSupportedStartScreen) { // Check if your app is currently pinned bool isPinned = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry); if (!isPinned) { // And pin it to Start await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry); } } } ApplicationData.Current.LocalSettings.Values["IsNotFirstStart"] = true; //ApplicationData.Current.LocalSettings.Values.Remove("IsNotFirstStart"); // remove after testing } }
internal static async Task <bool> CanPinToStart() { AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; bool isSupported = StartScreenManager.GetDefault().SupportsAppListEntry(entry); return(isSupported); }
/// <summary> /// Pin the app to the start screen /// </summary> /// <param name="parameter">the parameter is not used.</param> public async void Execute(object parameter) { if (ApiInformation.IsTypePresent("Windows.UI.StartScreen.StartScreenManager")) { var entries = await Package.Current.GetAppListEntriesAsync(); var firstEntry = entries.FirstOrDefault(); if (firstEntry == null) { return; } var startScreenmanager = StartScreenManager.GetDefault(); var containsEntry = await startScreenmanager.ContainsAppListEntryAsync(firstEntry); if (containsEntry) { return; } if (await startScreenmanager.RequestAddAppListEntryAsync(firstEntry)) { _canExecute = false; CanExecuteChanged?.Invoke(this, new EventArgs()); } } }
void Awake() { if (instance == null) instance = this; else if (instance != this) Destroy(gameObject); Debug.Log(PlayerPrefs.GetInt("soundSetting")); }
private async void LivePin(object sender, RoutedEventArgs e) { // Get your own app list entry // (which is always the first app list entry assuming you are not a multi-app package) AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; // Check if Start supports your app bool isSupported = StartScreenManager.GetDefault().SupportsAppListEntry(entry); if (isSupported) { if (ApiInformation.IsTypePresent("Windows.UI.StartScreen.StartScreenManager")) { // Primary tile API's supported! bool isPinned = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry); if (isPinned) { await new MessageDialog("If not you can manually put the live tile on to the StartScreen", "You already have the live tile in your StartScreen").ShowAsync(); } else { bool IsPinned = await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry); } } else { await new MessageDialog("You need to update your device to enable automatic pinning", "Update your device").ShowAsync(); } } else { var t = Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamily; switch (t) { case "Windows.IoT": await new MessageDialog("It seems you are using a IoT device which doesn't support Primary tile API", "live tile failed").ShowAsync(); break; case "Windows.Team": break; case "Windows.Holographic": await new MessageDialog("It seems you are using hololens. Hololens doesn't support live tile", "live tile failed").ShowAsync(); break; case "Windows.Xbox": await new MessageDialog("It seems you are using a xbox. Xbox doesn't support live tile", "live tile failed").ShowAsync(); break; default: await new MessageDialog("It seems you are using a " + t + " device. This device does not support Primary tile API", "live tile failed").ShowAsync(); break; } } }
private async void ShowLiveTileTipIfNeeded() { try { // You should check if you've already shown this tip before, // and if so, don't show the tip to the user again. if (ApplicationData.Current.LocalSettings.Values.Any(i => i.Key.Equals("ShownLiveTileTip"))) { // But for purposes of this Quickstart, we'll always show the tip //return; } // Store that you've shown this tip, so you don't show it again ApplicationData.Current.LocalSettings.Values["ShownLiveTileTip"] = true; // If Start screen manager API's aren't present if (!ApiInformation.IsTypePresent("Windows.UI.StartScreen.StartScreenManager")) { ShowMessage("StartScreenManager API isn't present on this build."); return; } // Get your own app list entry (which is the first entry assuming you have a single-app package) var appListEntry = (await Package.Current.GetAppListEntriesAsync())[0]; // Get the Start screen manager var startScreenManager = StartScreenManager.GetDefault(); // Check if Start supports pinning your app bool supportsPin = startScreenManager.SupportsAppListEntry(appListEntry); // If Start doesn't support pinning, don't show the tip if (!supportsPin) { ShowMessage("Start doesn't support pinning."); return; } // Check if you're pinned bool isPinned = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(appListEntry); // If the tile is already pinned, don't show the tip if (isPinned) { ShowMessage("The tile is already pinned to Start!"); return; } // Otherwise, show the tip FlyoutPinTileTip.ShowAt(ButtonShowTip); } catch (Exception ex) { ShowMessage(ex.ToString()); } }
private async void LivePin(object sender, RoutedEventArgs e) { // Get your own app list entry // (which is always the first app list entry assuming you are not a multi-app package) AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; // Check if Start supports your app bool isSupported = StartScreenManager.GetDefault().SupportsAppListEntry(entry); if (isSupported) { if (ApiInformation.IsTypePresent("Windows.UI.StartScreen.StartScreenManager")) { // Primary tile API's supported! bool isPinned = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry); if (isPinned) { await new MessageDialog("AlreadyTileDesc".GetLocalized(), "AlreadyTile".GetLocalized()).ShowAsync(); } else { bool IsPinned = await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry); } } else { await new MessageDialog("UpdateToTile".GetLocalized(), "UpdateDevice".GetLocalized()).ShowAsync(); } } else { var t = Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamily; switch (t) { case "Windows.IoT": await new MessageDialog("IoTTileFail".GetLocalized(), "LiveTileFailed".GetLocalized()).ShowAsync(); break; case "Windows.Team": break; case "Windows.Holographic": await new MessageDialog("HololensTileFail".GetLocalized(), "LiveTileFailed".GetLocalized()).ShowAsync(); break; case "Windows.Xbox": await new MessageDialog("XboxTileFail".GetLocalized(), "LiveTileFailed".GetLocalized()).ShowAsync(); break; default: await new MessageDialog(string.Format("OtherTileFail".GetLocalized(), t), "LiveTileFailed".GetLocalized()).ShowAsync(); break; } } }
/// <summary> /// TODO: 2. Pin to Start /// </summary> private async void PinToStart_Click(object sender, RoutedEventArgs e) { // Find the app in the current package var appListEntry = (await Package.Current.GetAppListEntriesAsync()).FirstOrDefault(); if (appListEntry != null) { await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(appListEntry); } }
public static async Task <bool?> RequestPinToStartMenu() { if (IsPinToStartMenuEnabled) { AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; return(await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry)); } else { return(null); } }
private void UseMousePos(Vector3 inputPos) { //Needed to cast rays for collision detection in perspective mode Vector3 touchPosFar = new Vector3(inputPos.x, inputPos.y, Camera.main.farClipPlane); Vector3 touchPosNear = new Vector3(inputPos.x, inputPos.y, Camera.main.nearClipPlane); //Needed to cast rays for collision detection in perspective mode Vector3 touchPosF = Camera.main.ScreenToWorldPoint(touchPosFar); Vector3 touchPosN = Camera.main.ScreenToWorldPoint(touchPosNear); //User clicks on lever during play RaycastHit2D hit = Physics2D.Raycast(touchPosN, touchPosF - touchPosN); if (hit.collider != null) { Lever _lever = hit.collider.GetComponent <Lever>(); if (_lever != null) { _lever.LeverGetsClicked(); } } //User clicks on Credits button in start menu if (hit.collider != null && hit.collider.name == ("CreditsButton")) { StartScreenManager startScreen = transform.GetComponent <StartScreenManager>(); startScreen.CreditsClick(); } //User clicks on back button in credits if (hit.collider != null && hit.collider.name == ("BackButton")) { StartScreenManager startScreen = transform.GetComponent <StartScreenManager>(); startScreen.BackCreditsClick(); } //User clicks on play button in start menu if (hit.collider != null && hit.collider.name == ("StartGameButton")) { SceneSwitcher sceneSwitcher = transform.root.GetComponent <SceneSwitcher>(); sceneSwitcher.LoadNextScene(); } //User clicks on exit button in start menu if (hit.collider != null && hit.collider.name == ("ExitButton")) { SceneSwitcher sceneSwitcher = transform.root.GetComponent <SceneSwitcher>(); sceneSwitcher.ExitGame(); } }
// Use this for initialization void Start() { instance = this; emtitle.GetComponent <Image> (); startbutton.GetComponent <Button> (); practiceButton.GetComponent <Button>(); howToPlayButton.GetComponent <Button>(); startbutton.onClick.AddListener(() => gameStart(0)); howToPlayButton.onClick.AddListener(() => gameStart(2)); practiceButton.onClick.AddListener(() => gameStart(-1)); startsound.GetComponent <AudioSource> (); }
public async Task<bool> PinAsync() { bool isPinned = false; AppListEntry entry = (await Package.Current.GetAppListEntriesAsync()).FirstOrDefault(); if (entry != null) { isPinned = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry); } if (!isPinned) { isPinned = await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry); } return isPinned; }
public static async Task <bool> TryAddPrimaryTile() { if (!IsUwp() && !PrimaryTileSupport) { return(false); } ListEntry = (await Package.Current.GetAppListEntriesAsync())[0]; if (!StartScreenManager.GetDefault().SupportsAppListEntry(ListEntry)) { return(false); } return(await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(ListEntry)); }
private async void ShowLiveTileTipIfNeeded() { try { //检查以前是否已经展示过这个技巧, //如果是这样,不要再向用户显示提示 if (ApplicationData.Current.LocalSettings.Values.Any(i => i.Key.Equals("ShownLiveTileTile"))) { //始终展示 } ApplicationData.Current.LocalSettings.Values["ShownLiveTileTip"] = true; //如果启动屏幕管理器API不存在 if (!ApiInformation.IsTypePresent("Windows.UI.StartScreen.StartScreenManager")) { ShowMessage("StartScreenManager API isn't present on this build."); return; } //获取应用程序列表条目 var appListEntry = (await Package.Current.GetAppListEntriesAsync())[0]; //获取开始屏幕管理器 var startScreenManager = StartScreenManager.GetDefault(); //检查Start是否支持固定应用程序 bool supportsPin = startScreenManager.SupportsAppListEntry(appListEntry); if (!supportsPin) { ShowMessage("Start doesn't support pinning."); return; } //固定 bool isPinned = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(appListEntry); //如果已经固定上 if (isPinned) { ShowMessage("The tile is already pinned to Start!"); return; } // Otherwise, show the tip FlyoutPinTileTip.ShowAt(ButtonShowTip); } catch (Exception ex) { ShowMessage(ex.ToString()); } }
public static async Task SendTileNotificationAsync(string appName, string subject, string body) { // Construct the tile content TileContent content = GenerateTileContent(appName, subject, body); AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; bool isPined = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry); if (!isPined) { await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry); } TileNotification notification = new TileNotification(content.GetXml()); TileUpdateManager.CreateTileUpdaterForApplication().Update(notification); }
//pin primary tile to Start if system can do it or primary tile existing private async void PinFirstTile() { // Get your own app list entry AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; // Check if Start supports your app bool isSupported = StartScreenManager.GetDefault().SupportsAppListEntry(entry); // Check if your app is currently pinned bool isPinned = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry); if (isPinned) { await GoToLanding(); } // If tile isn't pinned and app can do it - send request to user if (isSupported) { // And pin it to Start var tileState = await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry); if (tileState) { DisplayResult.Text = "Плитка успешно закреплена в меню Пуск"; await Task.Delay(1900); Application.Current.Exit(); } //возможно этот блок можна убрать: else { DisplayResult.Text = "Пожалуйста, закрепите плитку в меню Пуск"; await Task.Delay(2300); await GoToLanding(); } } // Send mesage if app can't pin tile to Start (and maybe if user has rejected request) else { //will have to testing: DisplayResult.Text = "Пожалуйста, закрепите плитку в меню Пуск"; await GoToLanding(); } }
private async void Current_Activated(object sender, WindowActivatedEventArgs e) { var entries = await Package.Current.GetAppListEntriesAsync(); var firstEntry = entries.FirstOrDefault(); if (firstEntry == null) { _canExecute = false; return; } if (ApiInformation.IsTypePresent("Windows.UI.StartScreen.StartScreenManager")) { var startScreenmanager = StartScreenManager.GetDefault(); _canExecute = !await startScreenmanager.ContainsAppListEntryAsync(firstEntry); CanExecuteChanged?.Invoke(this, new EventArgs()); } }
public async void Pin() { if (ApiInformation.IsTypePresent("Windows.UI.StartScreen.StartScreenManager")) { StartupTask startupTask = await StartupTask.GetAsync("AhnacSolutions"); StartupTaskState state = await startupTask.RequestEnableAsync(); var entry = (await Package.Current.GetAppListEntriesAsync())[0]; var startScreenManager = StartScreenManager.GetDefault(); bool supportsPin = startScreenManager.SupportsAppListEntry(entry); if (supportsPin) { var appListEntry = (await Package.Current.GetAppListEntriesAsync())[0]; bool didPin = await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(appListEntry); } } }
public async void Run(IBackgroundTaskInstance taskInstance) { var deferral = taskInstance.GetDeferral(); var entry = (await Package.Current.GetAppListEntriesAsync())[0]; var isSupported = StartScreenManager.GetDefault().SupportsAppListEntry(entry); var isPinned = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry); if (isSupported && isPinned) { var trending = await GetTrendingList(); if (trending.Count == 5) { UpdateTile(trending); } } deferral.Complete(); }
private async void PinButton_Click(object sender, RoutedEventArgs e) { // Get your own app list entry AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; bool isPinned1 = await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry); // And pin it to Start bool isPinned = await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry); if (isPinned1 == true) { PopupNotice popupNotice = new PopupNotice("应用已固定在开始菜单"); popupNotice.ShowAPopup(); } else { if (isPinned == true) { PopupNotice popupNotice = new PopupNotice("固定成功"); popupNotice.ShowAPopup(); } } }
private async void ButtonPinTile_Click(object sender, RoutedEventArgs e) { try { //获取自己的应用程序列表条目 var appListEntry = (await Package.Current.GetAppListEntriesAsync())[0]; // And pin your app bool didPin = await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(appListEntry); if (didPin) { ShowMessage("Success! Tile was pinned!"); } else { ShowMessage("Tile was NOT pinned, did you click no on the dialog?"); } } catch (Exception ex) { ShowMessage(ex.ToString()); } }
private async Task PinApplicationToTaskBarAsync() { if (ApplicationData.Current.LocalSettings.Values.ContainsKey("IsPinToTaskBar")) { if (!ApplicationData.Current.RoamingSettings.Values.ContainsKey("IsRated")) { await RequestRateApplication().ConfigureAwait(false); } } else { ApplicationData.Current.LocalSettings.Values["IsPinToTaskBar"] = true; TaskbarManager BarManager = TaskbarManager.GetDefault(); StartScreenManager ScreenManager = StartScreenManager.GetDefault(); bool PinStartScreen = false, PinTaskBar = false; AppListEntry Entry = (await Package.Current.GetAppListEntriesAsync())[0]; if (ScreenManager.SupportsAppListEntry(Entry) && !await ScreenManager.ContainsAppListEntryAsync(Entry)) { PinStartScreen = true; } if (BarManager.IsPinningAllowed && !await BarManager.IsCurrentAppPinnedAsync()) { PinTaskBar = true; } if (PinStartScreen && PinTaskBar) { PinTip.ActionButtonClick += async(s, e) => { s.IsOpen = false; _ = await BarManager.RequestPinCurrentAppAsync(); _ = await ScreenManager.RequestAddAppListEntryAsync(Entry); }; } else if (PinStartScreen && !PinTaskBar) { PinTip.ActionButtonClick += async(s, e) => { s.IsOpen = false; _ = await ScreenManager.RequestAddAppListEntryAsync(Entry); }; } else if (!PinStartScreen && PinTaskBar) { PinTip.ActionButtonClick += async(s, e) => { s.IsOpen = false; _ = await BarManager.RequestPinCurrentAppAsync(); }; } else { PinTip.ActionButtonClick += (s, e) => { s.IsOpen = false; }; } PinTip.Closed += async(s, e) => { s.IsOpen = false; await RequestRateApplication().ConfigureAwait(true); }; PinTip.Subtitle = Globalization.GetString("TeachingTip_PinToMenu_Subtitle"); PinTip.IsOpen = true; } }
void Awake() { inst = this; }
internal static async Task PinToStart() { AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; bool isPinned = await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry); }
public GameData(StartScreenManager screenManager) //конструктор для сохранения после ервого запуска { GameData temp = new GameData(); language = (byte)Language.LanguageToInt(screenManager.currentLanguage); currentScene = temp.currentScene; //Текущая сцена currentWeapon = temp.currentWeapon; //текущиее оружее currentArmor = temp.currentArmor; //Текущая броня currentCharm0 = temp.currentCharm0; //текущий первый талисман currentCharm1 = temp.currentCharm1; //текущий второй талисман currentCharm2 = temp.currentCharm2; //текущий третий талисман combometerSize = temp.combometerSize; //Текущий размер комбометра comboSplitIsAvailable = temp.comboSplitIsAvailable; //Доступно ли комбо разрыва comboFouriousAttackIsAvailable = temp.comboFouriousAttackIsAvailable; //Доступно ли комбо яростной атаки comboMasterStunIsAvailable = temp.comboMasterStunIsAvailable; //Доступно ли комбо мастерское оглушение comboHorizontalCutIsAvailable = temp.comboHorizontalCutIsAvailable; //Доступно ли комбо горизонтального разреза comboShuffleIsAvailable = temp.comboShuffleIsAvailable; //Доступно ли комбо перетасовки comboFlorescenceIsAvailable = temp.comboFlorescenceIsAvailable; //Доступно ли комбо расцвета comboSublimeDissectionIsAvailable = temp.comboSublimeDissectionIsAvailable; //Доступно ли комбо грандиозного рассчения prologIsCompleted = temp.prologIsCompleted; //Пролог завершен scene1IsPurchased = temp.scene1IsPurchased; //Первая сцена приобретена scene1IsCompleted = temp.scene1IsCompleted; //Первая cцена пройдена один раз scene2IsPurchased = temp.scene2IsPurchased; //Вторая сцена приобретена scene2IsCompleted = temp.scene2IsCompleted; //Вторая cцена пройдена один раз scene3IsPurchased = temp.scene3IsPurchased; //Третья сцена приобретена scene3IsCompleted = temp.scene3IsCompleted; //Третья cцена пройдена один раз scene4IsPurchased = temp.scene4IsPurchased; //Четвертая сцена приобретена scene4IsCompleted = temp.scene4IsCompleted; //Четвертая cцена пройдена один раз scene5IsPurchased = temp.scene5IsPurchased; //Пятая сцена приобретена scene5IsCompleted = temp.scene5IsCompleted; //Пятая cцена пройдена один раз scene6IsPurchased = temp.scene6IsPurchased; //Шестая сцена приобретена scene6IsCompleted = temp.scene6IsCompleted; //Шестая cцена пройдена один раз scene7IsPurchased = temp.scene7IsPurchased; //Седьмая сцена приобретена scene7IsCompleted = temp.scene7IsCompleted; //Седьмая cцена пройдена один раз scene8IsPurchased = temp.scene8IsPurchased; //Восьмая сцена приобретена scene8IsCompleted = temp.scene8IsCompleted; //Восьмая cцена пройдена один раз scene9IsPurchased = temp.scene9IsPurchased; //Девятая сцена приобретена scene9IsCompleted = temp.scene9IsCompleted; //Девятая cцена пройдена один раз scene10IsPurchased = temp.scene10IsPurchased; //Десятая сцена приобретена scene10IsCompleted = temp.scene10IsCompleted; //Десятая cцена пройдена один раз scene11IsPurchased = temp.scene11IsPurchased; //Одиннадцатая сцена приобретена scene11IsCompleted = temp.scene11IsCompleted; //Одиннадцатая cцена пройдена один раз brokenSwordIsPurchased = temp.brokenSwordIsPurchased; //Сломанный меч приобретен falchionIsPurchased = temp.falchionIsPurchased; //Фальшион приобретен zweihanderIsPurchased = temp.zweihanderIsPurchased; //Двуручник приобретен peterSwordIsPurchased = temp.peterSwordIsPurchased; //Меч святого Петра приобретен januarDaggerIsPurchased = temp.januarDaggerIsPurchased; //Кинжал святого Януария приобретен vienneseSpearIsPurchased = temp.vienneseSpearIsPurchased; //Венское копье приобретено russianSwordIsPurchased = temp.russianSwordIsPurchased; //Русский меч приобретен chainMailIsPurchased = temp.chainMailIsPurchased; //Кольчуга приобретена hardenedChainMailIsPurchased = temp.hardenedChainMailIsPurchased; //Урепленная кольчуга приобретена heavyArmorIsPurchased = temp.heavyArmorIsPurchased; //Тяжелая броня приобретена welfareCharmIsPurchased = temp.welfareCharmIsPurchased; //Талисман благоденствия приобретен hereticCharmIsPurchased = temp.hereticCharmIsPurchased; //Талисман еритика приобретен orderCharmIsPurchased = temp.orderCharmIsPurchased; //Талисман ордена приобретен crossCharmIsPurchased = temp.crossCharmIsPurchased; //Талисман нагрудный крест приобретен pommelCharmIsPurchased = temp.pommelCharmIsPurchased; //Талисман навершие из слоновой кости приобретен papaCharmIsPurchased = temp.papaCharmIsPurchased; //Талисман печать папы приобретен traitorCharmIsPurchased = temp.traitorCharmIsPurchased; //Талисман предателя приобретен graphicsTier = temp.graphicsTier; //Уровень графики masterVolume = temp.masterVolume; //Общая громкость игры musicVolume = temp.musicVolume; //Громкость музыки sfxVolume = temp.sfxVolume; //Громкость звуковых эффектов bestScore = temp.bestScore; //Лучший результат blackInk = temp.blackInk; //Количество чернил }
public async Task <bool> UnpinFromStartAsync(string path) { return(await StartScreenManager.GetDefault().TryRemoveSecondaryTileAsync(GetTileID(path))); }
//// Start is called before the first frame update void Start() { startScreenManager = FindObjectOfType <StartScreenManager>(); recentVisitedCharacters = startScreenManager.recentVisitedCharacters; PopulateMenu(); }
public static async Task <bool> IsPinned() { var entry = (await Package.Current.GetAppListEntriesAsync())[0]; return(await StartScreenManager.GetDefault().ContainsAppListEntryAsync(entry)); }
private static async Task <bool> IsPinToStartMenuSupported() { AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0]; return(StartScreenManager.GetDefault().SupportsAppListEntry(entry)); }