Beispiel #1
0
        public frmSpriteEditor(PluginBase plugin, List <string> pluginArgs)
            : base(plugin, pluginArgs)
        {
            InitializeComponent();

            mWndSprite = new FrameWindow {
                RightToLeftLayout = RightToLeftLayout,
                AllowDrop         = true
            };
            mWndSprite.DragEnter += frmSpriteEditor_DragEnter;
            mWndSprite.DragDrop  += frmSpriteEditor_DragDrop;
            mWndPalette           = new PaletteWindow {
                RightToLeftLayout = RightToLeftLayout
            };

            if (MenuPaletteColorHighlight.ColorComboBox.SelectedIndex == 1)
            {
                MenuPaletteColorHighlight.ColorComboBox.SelectedIndex = 0;
            }
            MenuPaletteColorHighlight.ColorComboBox.SelectedIndex = 1;
            MouseWheel += new MouseEventHandler(frmSpriteEditor_MouseWheel);

            if (pluginArgs != null && pluginArgs.Count > 0)
            {
                ParsePluginArgs(pluginArgs);
            }
        }
Beispiel #2
0
		public frmSpriteEditor(PluginBase plugin, List<string> pluginArgs)
			: base(plugin, pluginArgs) {
			InitializeComponent();

			mWndSprite = new FrameWindow {
				RightToLeftLayout = RightToLeftLayout,
				AllowDrop = true
			};
			mWndSprite.DragEnter += frmSpriteEditor_DragEnter;
			mWndSprite.DragDrop += frmSpriteEditor_DragDrop;
			mWndPalette = new PaletteWindow {
				RightToLeftLayout = RightToLeftLayout
			};

			if (MenuPaletteColorHighlight.ColorComboBox.SelectedIndex == 1)
				MenuPaletteColorHighlight.ColorComboBox.SelectedIndex = 0;
			MenuPaletteColorHighlight.ColorComboBox.SelectedIndex = 1;
			MouseWheel += new MouseEventHandler(frmSpriteEditor_MouseWheel);

			if (pluginArgs != null && pluginArgs.Count > 0) {
				ParsePluginArgs(pluginArgs);
			}
		}