public SpritesetEditView(PluginMain main) { InitializeComponent(); InitializeDocking(); Icon = Icon.FromHandle(Properties.Resources.PersonIcon.GetHicon()); Settings = main.Settings; _sprite = new Spriteset(); DirectionAnim.Sprite = _sprite; FrameBaseEditor.Sprite = _sprite; FrameBaseEditor.Invalidate(true); }
public ScriptEditView(PluginMain main, bool highlight = false) { InitializeComponent(); InitializeAutoComplete(); Icon = Icon.FromHandle(Resources.ScriptIcon.GetHicon()); _main = main; _quickFind = new QuickFind(this, _codeBox); _codeBox.BorderStyle = BorderStyle.None; _codeBox.Dock = DockStyle.Fill; _codeBox.Styles[Style.Default].Font = StyleManager.Style.FixedFont.Name; _codeBox.Styles[Style.Default].SizeF = StyleManager.Style.FixedFont.Size; _codeBox.Styles[Style.Default].ForeColor = StyleManager.Style.TextColor; _codeBox.Styles[Style.Default].BackColor = StyleManager.Style.BackColor; _codeBox.StyleClearAll(); _codeBox.CharAdded += codeBox_CharAdded; _codeBox.InsertCheck += codeBox_InsertCheck; _codeBox.KeyDown += codebox_KeyDown; _codeBox.MarginClick += codeBox_MarginClick; _codeBox.SavePointLeft += codeBox_SavePointLeft; _codeBox.SavePointReached += codeBox_SavePointReached; _codeBox.TextChanged += codeBox_TextChanged; _codeBox.UpdateUI += codeBox_UpdateUI; Controls.Add(_codeBox); InitializeMargins(); if (highlight) { _codeBox.Lexer = Lexer.Cpp; InitializeHighlighting(""); InitializeFolding(); } StyleManager.AutoStyle(this); }
public override void Deactivate() { PluginMain.ShowMenus(false); }
public override void Activate() { PluginMain.ShowMenus(true); }