HOW TO USE THIS CODE UPDATE: Format is the same. now supports multiple people speaking in different orders. etc
Inheritance: MonoBehaviour
Esempio n. 1
0
 public override void Action(CommandCaller caller, string input, string[] args)
 {
     string[] sus = new string[1000];
     SmokeyDialogue1.Sus.Keys.CopyTo(sus, 0);
     for (int i = 0; i < SmokeyDialogue1.Sus.Count; i++)
     {
         NewTextBox dialogue = new NewTextBox(Text.SmokeyDialogue1.GetText(sus[i]),
                                              Text.SmokeyDialogue1.GetTexture("Thinking"),
                                              Text.SmokeyDialogue1.GetVoice(), false, Color.White, true, true);
         dialogue.AddBox();
     }
 }
Esempio n. 2
0
 internal void ShowMyUI(NewTextBox textsex)
 {
     Texting.Load(true);
     MyInterface?.SetState(Texting);
     Texting.TextSet(textsex.GetText());
     Texting.TextureSet(textsex.GetTexture(), textsex.GetCustom());
     Texting.SoundSet(textsex.GetSound());
     Texting.SetColor(textsex.GetColor(), textsex.GetColor());
     Texting.SetBlinking(textsex.GetCustom());
     Texting.SetPriority(textsex.GetPriority());
     Texting.SetIdle(textsex.GetUseIdle());
     Texting.GetMod(textsex.GetModifier());
     Texting.StartBox();
 }
Esempio n. 3
0
 private void PhysicsTimerTick(object sender, EventArgs e)
 {
     if (!System.Windows.Clipboard.ContainsText())
     {
         return;
     }
     try
     {
         text = System.Windows.Clipboard.GetText();
     }
     catch (Exception) { }
     if (lastStringClipboard != text)
     {
         #region Remove
         //PC.Title = "CopyPayPay" + TextList.siz;
         //Label NewB = new Label();
         //NewB.Content = string.Format("{0} \n {1}", Time_, text.Length > ProgramInfo.MaxLenText ? text.Substring(0, ProgramInfo.MaxLenText) : text);
         //NewB.VerticalAlignment = VerticalAlignment.Top;
         //NewB.Foreground = new SolidColorBrush(ProgramInfo.ForegroundColor);
         //NewB.Background = new SolidColorBrush(ProgramInfo.BackgroundColor);
         //NewB.FontSize = ProgramInfo.SizeText;
         //NewB.FontFamily = new FontFamily("Tahoma");
         //NewB.MouseDown += NewB_MouseDown;
         //Listpanel.Items.Add(NewB);
         //TextList.Add(text);
         //TimeList.Add(Time_);
         //lastStringClipboard = text;
         #endregion
         NewTextBox nb = new NewTextBox();
         nb.Text    = text;
         nb.Width   = Listpanel.Width;
         nb.IDpanel = Listpanel.Items.Count;
         Listpanel.Items.Add(nb);
         TextList.Add(text);
         lastStringClipboard = text;
     }
 }
Esempio n. 4
0
        public override void Action(CommandCaller caller, string input, string[] args)
        {
            NewTextBox dialogue = new NewTextBox(input.Substring(12, input.Length - 12), "ProjectPhoenix/UI/Port/Smokey/SmokeyDefault", Text.SmokeyDialogue1.GetVoice(), false, Color.White, true, true);

            dialogue.AddBox();
        }
Esempio n. 5
0
        public override void Action(CommandCaller caller, string input, string[] args)
        {
            NewTextBox dialogue = new NewTextBox(SmokeyDialogue1.GetText(args[0]), SmokeyDialogue1.GetTexture(args[1]), Text.SmokeyDialogue1.GetVoice(), false, Color.White, true, true);

            dialogue.AddBox();
        }