예제 #1
0
 private static void ShowFace(DynValue faceFilename)
 {
     if (faceFilename.IsNil())
     {
         Textbox.GetInstance().ShowFace(null);
     }
     else
     {
         Textbox.GetInstance().ShowFace(faceFilename.String);
     }
 }
예제 #2
0
 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 + "."));
     }
 }
예제 #3
0
 private static void HideTextbox()
 {
     RunStaticRoutineFromLua(Textbox.GetInstance().TransitionOut());
 }
예제 #4
0
 private static void ShowText(DynValue text)
 {
     RunStaticRoutineFromLua(Textbox.GetInstance().ShowText(text.String));
 }