public SelectJobForm() { InitializeComponent(); NeedBlackForm = true; this.bitmapButtonSelect.ImageNormal = PicLoader.Read("ButtonBitmap", "ButtonBack2.PNG"); bitmapButtonSelect.Font = new Font("宋体", 8 * 1.33f, FontStyle.Regular, GraphicsUnit.Pixel); bitmapButtonSelect.ForeColor = Color.White; bitmapButtonSelect.IconImage = TaleofMonsters.Core.HSIcons.GetIconsByEName("oth2"); bitmapButtonSelect.IconSize = new Size(16, 16); bitmapButtonSelect.IconXY = new Point(8, 5); bitmapButtonSelect.TextOffX = 8; selectPanel = new NLSelectPanel(8, 38, 154, 400, this); selectPanel.ItemHeight = 35; selectPanel.SelectIndexChanged += selectPanel_SelectedIndexChanged; selectPanel.DrawCell += selectPanel_DrawCell; this.nlPageSelector1 = new NLPageSelector(this, 10, 321, 150); nlPageSelector1.PageChange += nlPageSelector1_PageChange; jobDes = new ColorWordRegion(180, 70, 320, "宋体", 10, Color.White); virtualRegion = new VirtualRegion(this); PictureRegion region = new PictureRegion(1, 178, 266, 48, 48, 1, VirtualRegionCellType.HeroSkill, 0); region.AddDecorator(new RegionBorderDecorator(Color.DodgerBlue)); virtualRegion.AddRegion(region); virtualRegion.AddRegion(new PictureRegion(2, 238, 266, 48, 48, 2, VirtualRegionCellType.Card, 0)); virtualRegion.AddRegion(new PictureRegion(3, 298, 266, 48, 48, 3, VirtualRegionCellType.Card, 0)); virtualRegion.AddRegion(new PictureRegion(4, 358, 266, 48, 48, 4, VirtualRegionCellType.Card, 0)); virtualRegion.RegionEntered += virtualRegion_RegionEntered; virtualRegion.RegionLeft += virtualRegion_RegionLeft; }
public MergeWeaponForm() { InitializeComponent(); this.bitmapButtonClose.ImageNormal = PicLoader.Read("ButtonBitmap", "CloseButton1.JPG"); virtualRegion = new VirtualRegion(this); virtualRegion.AddRegion(new PictureAnimRegion(1, 295, 100, 60, 60, 1, VirtualRegionCellType.Equip, 0)); virtualRegion.AddRegion(new PictureAnimRegion(2, 200, 259, 40, 40, 3, VirtualRegionCellType.Item, 0)); virtualRegion.AddRegion(new PictureAnimRegion(3, 410, 259, 40, 40, 4, VirtualRegionCellType.Item, 0)); virtualRegion.AddRegion(new PictureAnimRegion(4, 270, 259, 40, 40, 5, VirtualRegionCellType.Item, 0)); virtualRegion.AddRegion(new PictureAnimRegion(5, 340, 259, 40, 40, 6, VirtualRegionCellType.Item, 0)); virtualRegion.RegionClicked += new VirtualRegion.VRegionClickEventHandler(virtualRegion_RegionClicked); virtualRegion.RegionEntered += new VirtualRegion.VRegionEnteredEventHandler(virtualRegion_RegionEntered); virtualRegion.RegionLeft += new VirtualRegion.VRegionLeftEventHandler(virtualRegion_RegionLeft); selectPanel = new NLSelectPanel(8, 34, 154, 400, this); selectPanel.ItemHeight = 50; selectPanel.SelectIndexChanged += selectPanel_SelectedIndexChanged; selectPanel.DrawCell += new NLSelectPanel.SelectPanelCellDrawHandler(selectPanel_DrawCell); }