protected void SetFromFileOrFolder(FileOrFolder f) { if (titleText != null) { titleText.SetText(Language.EN, f.title_en); titleText.SetText(Language.DE, f.title_de); } selectedColor = f.color; SetHidden(f.hidden); initializeHiddenToggle.Invoke(f.hidden); }
public void SetSettingsTitleText(LocalisedText key) { LocalisedText lt = titleText.GetComponent <LocalisedText>(); lt.key = key.key; lt.SetText(); }
void OnShowContent(MyFile content) { if (titleFromParent) { if (content.parent != null) { title.SetText(Language.EN, content.parent.title_en); title.SetText(Language.DE, content.parent.title_de); } else { Debug.Log("File does not have a parent!"); } } else { title.SetText(Language.EN, content.title_en); title.SetText(Language.DE, content.title_de); } // TODO low prio dynamic languages }
public void ShowContent(TextFile file) { text.SetText(Language.DE, file.textDE); text.SetText(Language.EN, file.textEN); }