Exemple #1
0
            private void setNote()
            {
                InterfaceMgr.Instance.setFloatingTextSentDelegate(new InterfaceMgr.FloatingTextSent(this.setText));
                Point point = this.m_parent.PointToScreen(new Point(this.playerNotes.getPanelPosition().X, this.playerNotes.getPanelPosition().Y + 4));

                FloatingInputText.openDisband(point.X, point.Y, this.playerNotes.Text, InterfaceMgr.Instance.ParentForm);
            }
 public static void close()
 {
     if (Instance != null)
     {
         Instance.Close();
         Instance = null;
     }
 }
Exemple #3
0
 public static void close()
 {
     if (Instance != null)
     {
         Instance.Close();
         Instance = null;
     }
 }
 public static void open(int x, int y, string text, Form parent)
 {
     close();
     Instance = new FloatingInputText();
     Instance.Location = new Point(x, y);
     Instance.textBox1.Text = text;
     Instance.init();
     Instance.Show(parent);
 }
Exemple #5
0
 public static void open(int x, int y, string text, Form parent)
 {
     close();
     Instance               = new FloatingInputText();
     Instance.Location      = new Point(x, y);
     Instance.textBox1.Text = text;
     Instance.init();
     Instance.Show(parent);
 }
 public static void openDisband(int x, int y, string text, Form parent)
 {
     close();
     Instance = new FloatingInputText();
     Instance.Location = new Point(x, y);
     Instance.MinimumSize = new Size(500, 0x13);
     Instance.Size = new Size(500, 0x13);
     Instance.MaximumSize = new Size(500, 0x13);
     Instance.textBox1.Text = text;
     Instance.textBox1.BackColor = Color.FromArgb(0x4a, 0x56, 0x5c);
     Instance.textBox1.ForeColor = ARGBColors.White;
     Instance.BackColor = Color.FromArgb(0x4a, 0x56, 0x5c);
     Instance.init();
     Instance.Show(parent);
 }
Exemple #7
0
 public static void openDisband(int x, int y, string text, Form parent)
 {
     close();
     Instance                    = new FloatingInputText();
     Instance.Location           = new Point(x, y);
     Instance.MinimumSize        = new Size(500, 0x13);
     Instance.Size               = new Size(500, 0x13);
     Instance.MaximumSize        = new Size(500, 0x13);
     Instance.textBox1.Text      = text;
     Instance.textBox1.BackColor = Color.FromArgb(0x4a, 0x56, 0x5c);
     Instance.textBox1.ForeColor = ARGBColors.White;
     Instance.BackColor          = Color.FromArgb(0x4a, 0x56, 0x5c);
     Instance.init();
     Instance.Show(parent);
 }