public SelectJobForm() { InitializeComponent(); bitmapButtonClose.ImageNormal = PicLoader.Read("ButtonBitmap", "CloseButton1.JPG"); 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, PictureRegionCellType.HeroSkill, 0); region.AddDecorator(new RegionBorderDecorator(Color.DodgerBlue)); virtualRegion.AddRegion(region); virtualRegion.AddRegion(new PictureRegion(2, 238, 266, 48, 48, PictureRegionCellType.Card, 0)); virtualRegion.AddRegion(new PictureRegion(3, 298, 266, 48, 48, PictureRegionCellType.Card, 0)); virtualRegion.AddRegion(new PictureRegion(4, 358, 266, 48, 48, PictureRegionCellType.Card, 0)); virtualRegion.RegionEntered += virtualRegion_RegionEntered; virtualRegion.RegionLeft += virtualRegion_RegionLeft; }
public LevelInfoItem(UserControl prt, int x, int y, int width, int height) { parent = prt; this.x = x; this.y = y; this.width = width; this.height = height; colorWord = new ColorWordRegion(x + 135, y + 20, 260, "宋体", 10, Color.White); }
public NpcTalkForm() { InitializeComponent(); NeedBlackForm = true; colorWord = new ColorWordRegion(340, 38 + 10, Width - 350, new Font("微软雅黑", 13 * 1.33f, GraphicsUnit.Pixel), Color.White); vRegion = new VirtualRegion(this); vRegion.RegionEntered += VRegion_RegionEntered; vRegion.RegionLeft += VRegion_RegionLeft; }
public ChangeCardForm() { InitializeComponent(); this.bitmapButtonClose.ImageNormal = PicLoader.Read("ButtonBitmap", "CloseButton1.JPG"); bitmapButtonClose.NoUseDrawNine = true; this.bitmapButtonRefresh.ImageNormal = PicLoader.Read("ButtonBitmap", "PlusButton.JPG"); bitmapButtonRefresh.NoUseDrawNine = true; this.bitmapButtonFresh.ImageNormal = PicLoader.Read("ButtonBitmap", "FreshButton.JPG"); bitmapButtonFresh.NoUseDrawNine = true; colorWord = new ColorWordRegion(12, 38, 384, "微软雅黑", 11, Color.White); colorWord.Bold = true; colorWord.UpdateText("|每|Red|24小时||随机更新5条交换公式,交换公式的|Lime|背景颜色||决定交换公式的最高品质。"); }
public QuestionForm() { InitializeComponent(); colorWord = new ColorWordRegion(21, 44, 274, "微软雅黑", 11, Color.White); colorWord.Bold = true; this.bitmapButtonClose.ImageNormal = PicLoader.Read("ButtonBitmap", "CloseButton1.JPG"); this.bitmapButtonC1.ImageNormal = PicLoader.Read("ButtonBitmap", "ButtonBack2.PNG"); bitmapButtonC1.Font = new Font("宋体", 8 * 1.33f, FontStyle.Regular, GraphicsUnit.Pixel); bitmapButtonC1.ForeColor = Color.White; bitmapButtonC1.IconImage = TaleofMonsters.Core.HSIcons.GetIconsByEName("right"); bitmapButtonC1.IconSize = new Size(16, 16); bitmapButtonC1.IconXY = new Point(4, 5); bitmapButtonC1.TextOffX = 8; }
public BuyPieceForm() { InitializeComponent(); this.bitmapButtonClose.ImageNormal = PicLoader.Read("ButtonBitmap", "CloseButton1.JPG"); bitmapButtonClose.NoUseDrawNine = true; this.bitmapButtonRefresh.ImageNormal = PicLoader.Read("ButtonBitmap", "PlusButton.JPG"); bitmapButtonRefresh.NoUseDrawNine = true; this.bitmapButtonFresh.ImageNormal = PicLoader.Read("ButtonBitmap", "FreshButton.JPG"); bitmapButtonFresh.NoUseDrawNine = true; this.bitmapButtonDouble.ImageNormal = PicLoader.Read("ButtonBitmap", "MoneyButton.JPG"); bitmapButtonDouble.NoUseDrawNine = true; colorWord = new ColorWordRegion(12, 38, 384, "微软雅黑", 11, Color.White); colorWord.Bold = true; colorWord.UpdateText("|每|Red|6小时||随机更新5条购买素材,素材的|Lime|背景颜色||决定素材的最高品质。"); }
public void InitTasks() { virtualRegion = new VirtualRegion(this); virtualRegion.RegionEntered += new VirtualRegion.VRegionEnteredEventHandler(virtualRegion_RegionEntered); virtualRegion.RegionLeft += new VirtualRegion.VRegionLeftEventHandler(virtualRegion_RegionLeft); for (int i = 0; i < 3; i++) { var region = new PictureRegion(i + 1, 650, 84 + 60*i, 50, 50, PictureRegionCellType.SceneQuest, 0); region.AddDecorator(new RegionBorderDecorator(Color.Lime)); virtualRegion.AddRegion(region); } selectPanel = new NLSelectPanel(10, 84, 154, 400, this); selectPanel.ItemHeight = 30; selectPanel.SelectIndexChanged += selectPanel_SelectedIndexChanged; selectPanel.DrawCell += new NLSelectPanel.SelectPanelCellDrawHandler(selectPanel_DrawCell); colorWord = new ColorWordRegion(190, 84, 440, "微软雅黑", 11, Color.White); }
public NpcTalkForm() { InitializeComponent(); NeedBlackForm = true; colorWord = new ColorWordRegion(160, 38, Width - 170, "宋体", 14, Color.White); }
private ColorWordRegion colorWord;//问题区域 public SceneQuestAnswer(Control p, int eid, int lv, string s, int depth, int line) : base(p, eid, lv, s, depth, line) { colorWord = new ColorWordRegion(0, 0, 400, new Font("微软雅黑", 11 * 1.33f, FontStyle.Regular, GraphicsUnit.Pixel), Color.White); CheckScript(p); }