public void OnItemInNotepadUnlocked(ItemID id) { if (HUDManager.Get() == null) { Debug.Log("ItemsManager OnItemInNotepadUnlocked no HUDManager"); return; } HUDInfoLog hudinfoLog = (HUDInfoLog)HUDManager.Get().GetHUD(typeof(HUDInfoLog)); string title = GreenHellGame.Instance.GetLocalization().Get("HUD_InfoLog_NewEntry"); string text = GreenHellGame.Instance.GetLocalization().Get(id.ToString()); if (id == ItemID.Small_Fire || id == ItemID.Campfire || id == ItemID.Campfire_Rack || id == ItemID.Smoker || id == ItemID.Stone_Ring) { MenuNotepad.Get().SetActiveTab(MenuNotepad.MenuNotepadTab.FirecampTab, true); } else if (id == ItemID.Leaves_Bed || id == ItemID.Logs_Bed || id == ItemID.Small_Shelter || id == ItemID.Medium_Shelter) { MenuNotepad.Get().SetActiveTab(MenuNotepad.MenuNotepadTab.ConstructionsTab, true); } else if (id == ItemID.Cage_Trap || id == ItemID.Fish_Rod_Trap || id == ItemID.Killer_Trap || id == ItemID.Snare_Trap || id == ItemID.Stick_Fish_Trap || id == ItemID.Stone_Trap) { MenuNotepad.Get().SetActiveTab(MenuNotepad.MenuNotepadTab.TrapsTab, true); } else if (id == ItemID.Water_Collector || id == ItemID.Water_Filter) { MenuNotepad.Get().SetActiveTab(MenuNotepad.MenuNotepadTab.WaterConstructionsTab, true); } else { MenuNotepad.Get().SetActiveTab(MenuNotepad.MenuNotepadTab.ItemsTab, true); } MenuNotepad.Get().SetCurrentPageToItem(id); hudinfoLog.AddInfo(title, text); PlayerAudioModule.Get().PlayNotepadEntrySound(); }
public void UnlockKnownDisease(ConsumeEffect disease_type) { if (!this.m_KnownDiseases.Contains(disease_type)) { this.m_KnownDiseases.Add(disease_type); HUDInfoLog hudinfoLog = (HUDInfoLog)HUDManager.Get().GetHUD(typeof(HUDInfoLog)); string title = GreenHellGame.Instance.GetLocalization().Get("HUD_InfoLog_NewEntry"); string key = string.Empty; if (disease_type != ConsumeEffect.Fever) { if (disease_type != ConsumeEffect.FoodPoisoning) { if (disease_type == ConsumeEffect.ParasiteSickness) { key = "Parasite Sickness"; } } else { key = "Food Poisoning"; } } else { key = "Fever"; } string text = GreenHellGame.Instance.GetLocalization().Get(key); hudinfoLog.AddInfo(title, text); } }
public void UnlockKnownDisease(ConsumeEffect disease_type) { if (!this.m_KnownDiseases.Contains(disease_type)) { this.m_KnownDiseases.Add(disease_type); HUDInfoLog hudinfoLog = (HUDInfoLog)HUDManager.Get().GetHUD(typeof(HUDInfoLog)); string title = GreenHellGame.Instance.GetLocalization().Get("HUD_InfoLog_NewEntry", true); string key = string.Empty; switch (disease_type) { case ConsumeEffect.FoodPoisoning: key = "Food Poisoning"; break; case ConsumeEffect.Fever: key = "Fever"; break; case ConsumeEffect.ParasiteSickness: key = "Parasite Sickness"; break; case ConsumeEffect.Insomnia: key = "Insomnia"; break; case ConsumeEffect.DirtSickness: key = "Dirt Sickness"; break; } string text = GreenHellGame.Instance.GetLocalization().Get(key, true); hudinfoLog.AddInfo(title, text, HUDInfoLogTextureType.Notepad); } }
public void OnAddStoryEvent() { this.UpdatePrevNextButtons(); HUDInfoLog hudinfoLog = (HUDInfoLog)HUDManager.Get().GetHUD(typeof(HUDInfoLog)); string title = GreenHellGame.Instance.GetLocalization().Get("MSG_Notepad_Story_NewEntry"); this.SetActiveTab(MenuNotepad.MenuNotepadTab.StoryTab, true); hudinfoLog.AddInfo(title, string.Empty); PlayerAudioModule.Get().PlayNotepadEntrySound(); }
public void UnlockKnownInjuryState(InjuryState injury_state) { if (!this.m_KnownInjuryState.Contains(injury_state)) { this.m_KnownInjuryState.Add(injury_state); HUDInfoLog hudinfoLog = (HUDInfoLog)HUDManager.Get().GetHUD(typeof(HUDInfoLog)); string title = GreenHellGame.Instance.GetLocalization().Get("HUD_InfoLog_NewEntry", true); string text = GreenHellGame.Instance.GetLocalization().Get(injury_state.ToString(), true); hudinfoLog.AddInfo(title, text, HUDInfoLogTextureType.Notepad); } }
public void OnAddMapArea() { if (SaveGame.m_State != SaveGame.State.None) { return; } HUDInfoLog hudinfoLog = (HUDInfoLog)HUDManager.Get().GetHUD(typeof(HUDInfoLog)); string title = GreenHellGame.Instance.GetLocalization().Get("MSG_Map_New_Location", true); this.SetActiveTab(MenuNotepad.MenuNotepadTab.StoryTab, true); hudinfoLog.AddInfo(title, string.Empty, HUDInfoLogTextureType.Map); PlayerAudioModule.Get().PlayNotepadEntrySound(); }
public void UnlockKnownInjury(InjuryType injury_type) { if (injury_type == InjuryType.WormHole) { return; } if (!this.m_KnownInjuries.Contains(injury_type)) { this.m_KnownInjuries.Add(injury_type); HUDInfoLog hudinfoLog = (HUDInfoLog)HUDManager.Get().GetHUD(typeof(HUDInfoLog)); string title = GreenHellGame.Instance.GetLocalization().Get("HUD_InfoLog_NewEntry"); string text = GreenHellGame.Instance.GetLocalization().Get(injury_type.ToString()); hudinfoLog.AddInfo(title, text); } }