Inheritance: NomadTextBox
Esempio n. 1
0
 public CodeEditor()
 {
     CodeEditor.s_instance = this;
     this.InitializeComponent();
     base.Icon = Resources.appIcon;
     NomadCodeBox.InitFunctions();
     this.InitContextMenu();
 }
Esempio n. 2
0
 private void InitializeComponent()
 {
     this.saveFileDialog = new SaveFileDialog();
     this.textBox1       = new NomadCodeBox();
     base.SuspendLayout();
     this.saveFileDialog.DefaultExt      = "lua";
     this.saveFileDialog.Filter          = "Far Cry 2 script files (*.lua)|*.lua|All files (*.*)|*.*";
     this.saveFileDialog.Title           = "Save script file";
     this.textBox1.BackColor             = SystemColors.Window;
     this.textBox1.Cursor                = Cursors.IBeam;
     this.textBox1.Dock                  = DockStyle.Fill;
     this.textBox1.Font                  = new Font("Lucida Console", 10f);
     this.textBox1.Location              = new Point(0, 0);
     this.textBox1.Name                  = "textBox1";
     this.textBox1.Size                  = new Size(550, 400);
     this.textBox1.TabIndex              = 0;
     this.textBox1.Text                  = "\r\n";
     this.textBox1.CaretPositionChanged += new EventHandler(this.textBox1_CaretPositionChanged);
     base.Controls.Add(this.textBox1);
     base.Name = "CodeDocument";
     this.Text = "Untitled";
     base.ResumeLayout(false);
 }
Esempio n. 3
0
 public void SetIcon(int line, NomadCodeBox.IIcon icon)
 {
     this.m_lines[line].tag = icon;
     base.Invalidate();
 }
Esempio n. 4
0
 private void InitializeComponent()
 {
     this.saveFileDialog = new SaveFileDialog();
     this.textBox1 = new NomadCodeBox();
     base.SuspendLayout();
     this.saveFileDialog.DefaultExt = "lua";
     this.saveFileDialog.Filter = "Far Cry 2 script files (*.lua)|*.lua|All files (*.*)|*.*";
     this.saveFileDialog.Title = "Save script file";
     this.textBox1.BackColor = SystemColors.Window;
     this.textBox1.Cursor = Cursors.IBeam;
     this.textBox1.Dock = DockStyle.Fill;
     this.textBox1.Font = new Font("Lucida Console", 10f);
     this.textBox1.Location = new Point(0, 0);
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new Size(550, 400);
     this.textBox1.TabIndex = 0;
     this.textBox1.Text = "\r\n";
     this.textBox1.CaretPositionChanged += new EventHandler(this.textBox1_CaretPositionChanged);
     base.Controls.Add(this.textBox1);
     base.Name = "CodeDocument";
     this.Text = "Untitled";
     base.ResumeLayout(false);
 }