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 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) { 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); } }