private void OnClickRead() { InfoDialogScreen infoDialogScreen = (InfoDialogScreen)GameScreenManager.Instance.StartScreen(ScreenPrefabs.Instance.InfoDialogScreen.gameObject, GameScreenManager.Instance.ssOverlayCanvas.gameObject, GameScreenManager.UIRenderTarget.ScreenSpaceOverlay); infoDialogScreen.SetHeader(base.gameObject.GetComponent <KSelectable>().GetProperName()); if (BeenClicked) { infoDialogScreen.AddPlainText(BeenSearched); } else { BeenClicked = true; if (base.gameObject.name == "GeneShuffler") { Game.Instance.unlocks.Unlock("neuralvacillator"); } if (base.gameObject.name == "PropDesk") { string text = Game.Instance.unlocks.UnlockNext("emails"); if (text != null) { string str = "SEARCH" + UnityEngine.Random.Range(1, 6); infoDialogScreen.AddPlainText(Strings.Get("STRINGS.UI.USERMENUACTIONS.READLORE.SEARCH_COMPUTER_SUCCESS." + str)); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex(text)); } else { string str2 = "SEARCH" + UnityEngine.Random.Range(1, 8); infoDialogScreen.AddPlainText(Strings.Get("STRINGS.UI.USERMENUACTIONS.READLORE.SEARCH_COMPUTER_FAIL." + str2)); } } else if (base.gameObject.name == "GeneShuffler" || base.gameObject.name == "MassiveHeatSink") { string text2 = Game.Instance.unlocks.UnlockNext("researchnotes"); if (text2 != null) { string str3 = "SEARCH" + UnityEngine.Random.Range(1, 3); infoDialogScreen.AddPlainText(Strings.Get("STRINGS.UI.USERMENUACTIONS.READLORE.SEARCH_TECHNOLOGY_SUCCESS." + str3)); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex(text2)); } else { string str4 = "SEARCH1"; infoDialogScreen.AddPlainText(Strings.Get("STRINGS.UI.USERMENUACTIONS.READLORE.SEARCH_OBJECT_FAIL." + str4)); } } else if (base.gameObject.name == "PropReceptionDesk") { Game.Instance.unlocks.Unlock("email_pens"); infoDialogScreen.AddPlainText(UI.USERMENUACTIONS.READLORE.SEARCH_ELLIESDESK); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex("email_pens")); } else if (base.gameObject.name == "PropFacilityDesk") { Game.Instance.unlocks.Unlock("journal_magazine"); infoDialogScreen.AddPlainText(UI.USERMENUACTIONS.READLORE.SEARCH_STERNSDESK); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex("journal_magazine")); } else if (base.gameObject.name == "HeadquartersComplete") { Game.Instance.unlocks.Unlock("pod_evacuation"); infoDialogScreen.AddPlainText(UI.USERMENUACTIONS.READLORE.SEARCH_POD); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex("pod_evacuation")); } else if (base.gameObject.name == "PropFacilityDisplay") { Game.Instance.unlocks.Unlock("display_prop1"); infoDialogScreen.AddPlainText(UI.USERMENUACTIONS.READLORE.SEARCH_DISPLAY); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex("display_prop1")); } else if (base.gameObject.name == "PropFacilityDisplay2") { Game.Instance.unlocks.Unlock("display_prop2"); infoDialogScreen.AddPlainText(UI.USERMENUACTIONS.READLORE.SEARCH_DISPLAY); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex("display_prop2")); } else if (base.gameObject.name == "PropFacilityDisplay3") { Game.Instance.unlocks.Unlock("display_prop3"); infoDialogScreen.AddPlainText(UI.USERMENUACTIONS.READLORE.SEARCH_DISPLAY); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex("display_prop3")); } else if (base.gameObject.name == "PropFacilityGlobeDroors") { Game.Instance.unlocks.Unlock("journal_newspaper"); infoDialogScreen.AddPlainText(Strings.Get("STRINGS.UI.USERMENUACTIONS.READLORE.SEARCH_CABINET")); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex("journal_newspaper")); } else { string text3 = Game.Instance.unlocks.UnlockNext("journals"); if (text3 != null) { string str5 = "SEARCH" + UnityEngine.Random.Range(1, 6); infoDialogScreen.AddPlainText(Strings.Get("STRINGS.UI.USERMENUACTIONS.READLORE.SEARCH_OBJECT_SUCCESS." + str5)); infoDialogScreen.AddOption(UI.USERMENUACTIONS.READLORE.GOTODATABASE, OpenCodex(text3)); } else { string str6 = "SEARCH1"; infoDialogScreen.AddPlainText(Strings.Get("STRINGS.UI.USERMENUACTIONS.READLORE.SEARCH_OBJECT_FAIL." + str6)); } } } }