public void SetBoosterId(BoosterDbId boosterId) { this.m_boosterId = boosterId; if (this.m_packText != null) { this.m_packText.Text = GameDbf.Booster.GetRecord((int) this.m_boosterId).GetLocString("NAME"); } }
private void Click(UIEvent e) { Log.InnKeepersSpecial.Print("IKS on release! " + this.m_link, new object[0]); if (this.m_gameAction != null) { WelcomeQuests.OnNavigateBack(); this.Show(false); string str = this.m_gameAction.ToLowerInvariant(); if (str.StartsWith("store")) { char[] separator = new char[] { ' ' }; string[] strArray = str.Split(separator); if (strArray.Length > 1) { BoosterDbId iNVALID = BoosterDbId.INVALID; AdventureDbId id2 = AdventureDbId.INVALID; string str2 = strArray[1]; try { iNVALID = (BoosterDbId)((int)Enum.Parse(typeof(BoosterDbId), str2.ToUpper())); } catch (ArgumentException) { } try { id2 = (AdventureDbId)((int)Enum.Parse(typeof(AdventureDbId), str2.ToUpper())); } catch (ArgumentException) { } if (iNVALID != BoosterDbId.INVALID) { Options.Get().SetInt(Option.LAST_SELECTED_STORE_BOOSTER_ID, (int)iNVALID); this.ShowStore(GeneralStoreMode.CARDS); } else if (id2 != AdventureDbId.INVALID) { Options.Get().SetInt(Option.LAST_SELECTED_STORE_ADVENTURE_ID, (int)id2); this.ShowStore(GeneralStoreMode.ADVENTURE); } else { this.ShowStore(GeneralStoreMode.NONE); } } else { this.ShowStore(GeneralStoreMode.NONE); } } } else if (this.m_link != null) { Application.OpenURL(this.m_link); } }
private void SetupInitialSelectedPack() { BoosterDbId iNVALID = BoosterDbId.INVALID; if (this.ShouldResetPackSelection()) { Options.Get().SetInt(Option.LAST_SELECTED_STORE_BOOSTER_ID, 0); } else { iNVALID = (BoosterDbId)Options.Get().GetInt(Option.LAST_SELECTED_STORE_BOOSTER_ID, 0); } foreach (GeneralStorePackSelectorButton button in this.m_packButtons) { if (button.GetBoosterId() == iNVALID) { this.m_packsContent.SetBoosterId((int)iNVALID, true); button.Select(); break; } } }
public void SetBoosterId(BoosterDbId boosterId) { object[] objArray1 = new object[] { boosterId }; base.method_8("SetBoosterId", objArray1); }