protected void Start() { bool wasUnderway = (PlayerPrefs.GetInt(showUnderwayKey, 0) == 1); if (wasUnderway) { ModeName prevMode = (ModeName)PlayerPrefs.GetInt(oldModeKey); if (prevMode == ModeName.ACTOR) { actorecoveryResumeLightbox.Open(); Actor previousActor = (Actor)PlayerPrefs.GetInt(lastActorKey, -1); if (Variables.Instance.language == Language.ENGLISH) { previousActorText.text = EnumDisplayNamesEnglish.ActorName(previousActor); } else { previousActorText.text = EnumDisplayNamesMandarin.ActorName(previousActor); } } else { recoveryResumeLightbox.Open(); } } }
private void ActorChanged(ActorActSet aas) { Diglbug.Log("Actor controls changing display values to " + aas.name, PrintStream.ACTORS); if (currentActorSet != null) { currentActorSet.ActContentCompleteEvent -= MarkerComplete; currentActorSet.WaitingForNextActEvent -= WaitingForNextAct; } currentActorSet = aas; currentActorSet.ActContentCompleteEvent += MarkerComplete; currentActorSet.WaitingForNextActEvent += WaitingForNextAct; SetMarkersFromActorActSet(currentActorSet); if (Variables.Instance.language == Language.ENGLISH) { actorName.text = EnumDisplayNamesEnglish.ActorName(currentActorSet.actor); actName.text = EnumDisplayNamesEnglish.DefinedActName(aas.GetFirstAct().definedAct); } else { actorName.text = EnumDisplayNamesMandarin.ActorName(currentActorSet.actor); actName.text = EnumDisplayNamesMandarin.DefinedActName(aas.GetFirstAct().definedAct); } SetWaiting(); assistantSoundSource.Play(); cancelChooseActorButton.gameObject.SetActive(true); }
public override void SwitchToLanguage(Language l) { FindText(); if (l == Language.ENGLISH) { if (useSizeOverrides) { t.fontSize = overrideEnglishSize; } if (signature == Signature.NONE) { t.text = englishNoneValue; } else { t.text = EnumDisplayNamesEnglish.SignatureName(signature); } } else { if (useSizeOverrides) { t.fontSize = overrideMandarinSize; } if (signature == Signature.NONE) { t.text = mandarinNoneValue; } else { t.text = EnumDisplayNamesMandarin.SignatureName(signature); } } }
public override void UpdateName() { base.UpdateName(); if (label == null) { label = GetComponentInChildren <Text> (); } string actNumber = ((int)act) + "."; if (ShowMode.Instance.Mode.ModeName == ModeName.GUIDE) { if (Variables.Instance.language == Language.ENGLISH) { label.text = actNumber + " " + EnumDisplayNamesEnglish.DefinedActName(act); } else { label.text = actNumber + " " + EnumDisplayNamesMandarin.DefinedActName(act); } } else { label.text = actNumber; } }
private void SetActName(Act a) { if (Variables.Instance.language == Language.ENGLISH) { actName.text = EnumDisplayNamesEnglish.DefinedActName(a.definedAct); } else { actName.text = EnumDisplayNamesMandarin.DefinedActName(a.definedAct); } }
public override void SwitchToLanguage(Language l) { string n; if (l == Language.ENGLISH) { n = EnumDisplayNamesEnglish.ActorName(actor); } else { n = EnumDisplayNamesMandarin.ActorName(actor); } nameText.text = n; gameObject.name = n; }
public override void SwitchToLanguage(Language l) { FindText(); if (l == Language.ENGLISH) { if (useSizeOverrides) { t.fontSize = overrideEnglishSize; } t.text = EnumDisplayNamesEnglish.DefinedActName(act); } else { if (useSizeOverrides) { t.fontSize = overrideMandarinSize; } t.text = EnumDisplayNamesMandarin.DefinedActName(act); } }