private static void ShowFace(DynValue faceFilename) { if (faceFilename.IsNil()) { Textbox.GetInstance().ShowFace(null); } else { Textbox.GetInstance().ShowFace(faceFilename.String); } }
private void OnInteract(AvatarEvent avatar) { if (Opened || ItemKey == null || ItemKey.Length == 0) { Opened = true; StartCoroutine(Textbox.GetInstance().ShowSystemText("Empty.")); } else { Opened = true; UpdateAppearance(); ItemData item = ItemData.ItemByName(ItemKey); StartCoroutine(Textbox.GetInstance().ShowSystemText("Found " + item.Name + ".")); } }
private static void HideTextbox() { RunStaticRoutineFromLua(Textbox.GetInstance().TransitionOut()); }
private static void ShowText(DynValue text) { RunStaticRoutineFromLua(Textbox.GetInstance().ShowText(text.String)); }