public void setIrc(IrcClient cl) { ic = cl; }
List<Tab> toRemove = new List<Tab>(); //for closed tabs, a queue for them to be on until they finish transitioning #endregion Fields #region Constructors public PTextBox(Game game, Rectangle bounds, string text, IrcClient client) : base(game, bounds, text) { OnLoad(null); bg = new Rect(new Rectangle(bounds.Location, new Size(bounds.Size.Width, bounds.Size.Height + 10))); bg.Colour = Color.FromArgb(200, 20, 20, 20); origpos = bg.Bounds.Y; Tab pulse = new Tab(0, new List<Text>(), baseChannel, this); pulse.Scrollpos = -bounds.Height + spacing; activeTab = pulse; addTab(pulse); ic = client; chatLine = new Text(game.ClientSize, new Size(game.Bounds.Width, 50), new Point(bounds.X + 5, this.bounds.Y + this.bounds.Height - spacing)); chatLine.textFont = boxFont; chatLine.Shadow = false; caret = new Rect(new Rectangle(0, 0, 2, 15)); caret.Colour = Color.White; selectBox = new Rect(new Rectangle(bounds.X + 5, chatLine.Location.Y + 3, 20, 19)); selectBox.Colour = Color.FromArgb(100, Color.LightGray); //activeTab.Scrollpos = addLine("Welcome to pulse chat! Press F2 to maximize/minimize chat.", Color.SteelBlue); Game.lua.RegisterFunction("show", this, this.GetType().GetMethod("show", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance)); // Game.lua["pbox"] = this; updateCaret(); //try /lua pbox.bg.Bounds = test(0,300,1024,500) //Game.lua["cm"] = System.Drawing.Rectangle // game.Keyboard.KeyRepeat = false; /* foreach (string s in Game.lua.Globals) { Console.WriteLine(s); }*/ }