private void initCtrl() { this.itemTabs = new ItemTab[5]; for (int i = 0; i < itemTabs.Length; i++) { this.itemTabs[i] = new ItemTab(this); this.itemTabs[i].TabEnabled = new BitmapOrigin((Bitmap)Resource.ResourceManager.GetObject("Item_Tab_enabled_" + i), -9 - 31 * i, -26); this.itemTabs[i].TabDisabled = new BitmapOrigin((Bitmap)Resource.ResourceManager.GetObject("Item_Tab_disabled_" + i), -9 - 31 * i, -26); } this.itemTabs[0].Selected = true; this.vScroll = new ACtrlVScroll(); this.vScroll.PicBase.Normal = new BitmapOrigin(Resource.VScr9_enabled_base); this.vScroll.PicBase.Disabled = new BitmapOrigin(Resource.VScr9_disabled_base); this.vScroll.BtnPrev.Normal = new BitmapOrigin(Resource.VScr9_enabled_prev0); this.vScroll.BtnPrev.Pressed = new BitmapOrigin(Resource.VScr9_enabled_prev1); this.vScroll.BtnPrev.MouseOver = new BitmapOrigin(Resource.VScr9_enabled_prev2); this.vScroll.BtnPrev.Disabled = new BitmapOrigin(Resource.VScr9_disabled_prev); this.vScroll.BtnPrev.Size = this.vScroll.BtnPrev.Normal.Bitmap.Size; this.vScroll.BtnPrev.Location = new Point(0, 0); this.vScroll.BtnNext.Normal = new BitmapOrigin(Resource.VScr9_enabled_next0); this.vScroll.BtnNext.Pressed = new BitmapOrigin(Resource.VScr9_enabled_next1); this.vScroll.BtnNext.MouseOver = new BitmapOrigin(Resource.VScr9_enabled_next2); this.vScroll.BtnNext.Disabled = new BitmapOrigin(Resource.VScr9_disabled_next); this.vScroll.BtnNext.Size = this.vScroll.BtnNext.Normal.Bitmap.Size; this.vScroll.BtnNext.Location = new Point(0, 195); this.vScroll.BtnThumb.Normal = new BitmapOrigin(Resource.VScr9_enabled_thumb0); this.vScroll.BtnThumb.Pressed = new BitmapOrigin(Resource.VScr9_enabled_thumb1); this.vScroll.BtnThumb.MouseOver = new BitmapOrigin(Resource.VScr9_enabled_thumb2); this.vScroll.BtnThumb.Size = this.vScroll.BtnThumb.Normal.Bitmap.Size; this.vScroll.Location = new Point(152, 51); this.vScroll.Size = new Size(11, 207); this.vScroll.ValueChanged += new EventHandler(vScroll_ValueChanged); this.vScroll.ChildButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnFull = new ACtrlButton(); this.btnFull.Normal = new BitmapOrigin(Resource.Item_BtFull_normal_0); this.btnFull.Pressed = new BitmapOrigin(Resource.Item_BtFull_pressed_0); this.btnFull.MouseOver = new BitmapOrigin(Resource.Item_BtFull_mouseOver_0); this.btnFull.Disabled = new BitmapOrigin(Resource.Item_BtFull_disabled_0); this.btnFull.Location = new Point(147, 267); this.btnFull.Size = new Size(16, 16); this.btnFull.MouseClick += new MouseEventHandler(btnFull_MouseClick); this.btnFull.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnSmall = new ACtrlButton(); this.btnSmall.Normal = new BitmapOrigin(Resource.Item_BtSmall_normal_0); this.btnSmall.Pressed = new BitmapOrigin(Resource.Item_BtSmall_pressed_0); this.btnSmall.MouseOver = new BitmapOrigin(Resource.Item_BtSmall_mouseOver_0); this.btnSmall.Disabled = new BitmapOrigin(Resource.Item_BtSmall_disabled_0); this.btnSmall.Location = new Point(147, 267); this.btnSmall.Size = new Size(16, 16); this.btnSmall.MouseClick += new MouseEventHandler(btnSmall_MouseClick); this.btnSmall.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnCoin = new ACtrlButton(); // this.btnCoin.Normal = new BitmapOrigin(Resource.Item_BtCoin_normal_0); // this.btnCoin.Pressed = new BitmapOrigin(Resource.Item_BtCoin_pressed_0); // this.btnCoin.MouseOver = new BitmapOrigin(Resource.Item_BtCoin_mouseOver_0); // this.btnCoin.Disabled = new BitmapOrigin(Resource.Item_BtCoin_disabled_0); this.btnCoin.Location = new Point(9, 267); this.btnCoin.Size = new Size(40, 16); this.btnCoin.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnGather = new ACtrlButton(); this.btnGather.Normal = new BitmapOrigin(Resource.Item_BtGather_normal_0); this.btnGather.Pressed = new BitmapOrigin(Resource.Item_BtGather_pressed_0); this.btnGather.MouseOver = new BitmapOrigin(Resource.Item_BtGather_mouseOver_0); this.btnGather.Disabled = new BitmapOrigin(Resource.Item_BtGather_disabled_0); this.btnGather.Location = new Point(129, 267); this.btnGather.Size = new Size(16, 16); this.btnGather.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnGather.MouseClick += new MouseEventHandler(btnGather_MouseClick); this.btnSort = new ACtrlButton(); this.btnSort.Normal = new BitmapOrigin(Resource.Item_BtSort_normal_0); this.btnSort.Pressed = new BitmapOrigin(Resource.Item_BtSort_pressed_0); this.btnSort.MouseOver = new BitmapOrigin(Resource.Item_BtSort_mouseOver_0); this.btnSort.Disabled = new BitmapOrigin(Resource.Item_BtSort_disabled_0); this.btnSort.Location = new Point(129, 267); this.btnSort.Size = new Size(16, 16); this.btnSort.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnSort.MouseClick += new MouseEventHandler(btnSort_MouseClick); this.btnClose = new ACtrlButton(); this.btnClose.Normal = new BitmapOrigin(Resource.BtClose3_normal_0); this.btnClose.Pressed = new BitmapOrigin(Resource.BtClose3_pressed_0); this.btnClose.MouseOver = new BitmapOrigin(Resource.BtClose3_mouseOver_0); this.btnClose.Disabled = new BitmapOrigin(Resource.BtClose3_disabled_0); this.btnClose.Location = new Point(150, 6); this.btnClose.Size = new Size(13, 13); this.btnClose.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnClose.MouseClick += new MouseEventHandler(btnClose_MouseClick); }
private void initCtrl() { this.itemTabs = new ItemTab[5]; for (int i = 0; i < itemTabs.Length; i++) { this.itemTabs[i] = new ItemTab(this); this.itemTabs[i].TabEnabled = new BitmapOrigin((Bitmap)Resource.ResourceManager.GetObject("Item_Tab_enabled_" + i), -9 - 31 * i, -28); this.itemTabs[i].TabDisabled = new BitmapOrigin((Bitmap)Resource.ResourceManager.GetObject("Item_Tab_disabled_" + i), -9 - 31 * i, -28); } this.itemTabs[0].Selected = true; this.vScroll = new ACtrlVScroll(); this.vScroll.PicBase.Normal = new BitmapOrigin(Resource.VScr9_enabled_base); this.vScroll.PicBase.Disabled = new BitmapOrigin(Resource.VScr9_disabled_base); this.vScroll.BtnPrev.Normal = new BitmapOrigin(Resource.VScr9_enabled_prev0); this.vScroll.BtnPrev.Pressed = new BitmapOrigin(Resource.VScr9_enabled_prev1); this.vScroll.BtnPrev.MouseOver = new BitmapOrigin(Resource.VScr9_enabled_prev2); this.vScroll.BtnPrev.Disabled = new BitmapOrigin(Resource.VScr9_disabled_prev); this.vScroll.BtnPrev.Size = this.vScroll.BtnPrev.Normal.Bitmap.Size; this.vScroll.BtnPrev.Location = new Point(0, 0); this.vScroll.BtnNext.Normal = new BitmapOrigin(Resource.VScr9_enabled_next0); this.vScroll.BtnNext.Pressed = new BitmapOrigin(Resource.VScr9_enabled_next1); this.vScroll.BtnNext.MouseOver = new BitmapOrigin(Resource.VScr9_enabled_next2); this.vScroll.BtnNext.Disabled = new BitmapOrigin(Resource.VScr9_disabled_next); this.vScroll.BtnNext.Size = this.vScroll.BtnNext.Normal.Bitmap.Size; this.vScroll.BtnNext.Location = new Point(0, 195); this.vScroll.BtnThumb.Normal = new BitmapOrigin(Resource.VScr9_enabled_thumb0); this.vScroll.BtnThumb.Pressed = new BitmapOrigin(Resource.VScr9_enabled_thumb1); this.vScroll.BtnThumb.MouseOver = new BitmapOrigin(Resource.VScr9_enabled_thumb2); this.vScroll.BtnThumb.Size = this.vScroll.BtnThumb.Normal.Bitmap.Size; this.vScroll.Location = new Point(152, 51); this.vScroll.Size = new Size(11, 207); this.vScroll.ValueChanged += new EventHandler(vScroll_ValueChanged); this.vScroll.ChildButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnFull = new ACtrlButton(); this.btnFull.Normal = new BitmapOrigin(Resource.Item_BtFull_normal_0); this.btnFull.Pressed = new BitmapOrigin(Resource.Item_BtFull_pressed_0); this.btnFull.MouseOver = new BitmapOrigin(Resource.Item_BtFull_mouseOver_0); this.btnFull.Disabled = new BitmapOrigin(Resource.Item_BtFull_disabled_0); this.btnFull.Location = new Point(147, 267); this.btnFull.Size = new Size(16, 16); this.btnFull.MouseClick += new MouseEventHandler(btnFull_MouseClick); this.btnFull.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnSmall = new ACtrlButton(); this.btnSmall.Normal = new BitmapOrigin(Resource.Item_BtSmall_normal_0); this.btnSmall.Pressed = new BitmapOrigin(Resource.Item_BtSmall_pressed_0); this.btnSmall.MouseOver = new BitmapOrigin(Resource.Item_BtSmall_mouseOver_0); this.btnSmall.Disabled = new BitmapOrigin(Resource.Item_BtSmall_disabled_0); this.btnSmall.Location = new Point(147, 337); this.btnSmall.Size = new Size(16, 16); this.btnSmall.MouseClick += new MouseEventHandler(btnSmall_MouseClick); this.btnSmall.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnCoin = new ACtrlButton(); this.btnCoin.Normal = new BitmapOrigin(Resource.Item_BtCoin_normal_0); this.btnCoin.Pressed = new BitmapOrigin(Resource.Item_BtCoin_pressed_0); this.btnCoin.MouseOver = new BitmapOrigin(Resource.Item_BtCoin_mouseOver_0); this.btnCoin.Disabled = new BitmapOrigin(Resource.Item_BtCoin_disabled_0); this.btnCoin.Location = new Point(9, 267); this.btnCoin.Size = new Size(40, 16); this.btnCoin.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnPoint = new ACtrlButton(); this.btnPoint.Normal = new BitmapOrigin(Resource.Item_BtPoint_normal_0); this.btnPoint.Pressed = new BitmapOrigin(Resource.Item_BtPoint_pressed_0); this.btnPoint.MouseOver = new BitmapOrigin(Resource.Item_BtPoint_mouseOver_0); this.btnPoint.Disabled = new BitmapOrigin(Resource.Item_BtPoint_disabled_0); this.btnPoint.Location = new Point(9, 285); this.btnPoint.Size = new Size(82, 16); this.btnPoint.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnGather = new ACtrlButton(); this.btnGather.Normal = new BitmapOrigin(Resource.Item_BtGather_normal_0); this.btnGather.Pressed = new BitmapOrigin(Resource.Item_BtGather_pressed_0); this.btnGather.MouseOver = new BitmapOrigin(Resource.Item_BtGather_mouseOver_0); this.btnGather.Disabled = new BitmapOrigin(Resource.Item_BtGather_disabled_0); this.btnGather.Location = new Point(129, 267); this.btnGather.Size = new Size(16, 16); this.btnGather.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnGather.MouseClick += new MouseEventHandler(btnGather_MouseClick); this.btnSort = new ACtrlButton(); this.btnSort.Normal = new BitmapOrigin(Resource.Item_BtSort_normal_0); this.btnSort.Pressed = new BitmapOrigin(Resource.Item_BtSort_pressed_0); this.btnSort.MouseOver = new BitmapOrigin(Resource.Item_BtSort_mouseOver_0); this.btnSort.Disabled = new BitmapOrigin(Resource.Item_BtSort_disabled_0); this.btnSort.Location = new Point(129, 267); this.btnSort.Size = new Size(16, 16); this.btnSort.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnSort.MouseClick += new MouseEventHandler(btnSort_MouseClick); this.btnDisassemble3 = new ACtrlButton(); this.btnDisassemble3.Normal = new BitmapOrigin(Resource.Item_BtDisassemble3_normal_0); this.btnDisassemble3.Pressed = new BitmapOrigin(Resource.Item_BtDisassemble3_pressed_0); this.btnDisassemble3.MouseOver = new BitmapOrigin(Resource.Item_BtDisassemble3_mouseOver_0); this.btnDisassemble3.Disabled = new BitmapOrigin(Resource.Item_BtDisassemble3_disabled_0); this.btnDisassemble3.Location = new Point(9, 303); this.btnDisassemble3.Size = new Size(24, 24); this.btnDisassemble3.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnDisassemble4 = new ACtrlButton(); this.btnDisassemble4.Normal = new BitmapOrigin(Resource.Item_BtDisassemble4_normal_0); this.btnDisassemble4.Pressed = new BitmapOrigin(Resource.Item_BtDisassemble4_pressed_0); this.btnDisassemble4.MouseOver = new BitmapOrigin(Resource.Item_BtDisassemble4_mouseOver_0); this.btnDisassemble4.Disabled = new BitmapOrigin(Resource.Item_BtDisassemble4_disabled_0); this.btnDisassemble4.Location = new Point(412, 337); this.btnDisassemble4.Size = new Size(16, 16); this.btnDisassemble4.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnExtract3 = new ACtrlButton(); this.btnExtract3.Normal = new BitmapOrigin(Resource.Item_BtExtract3_normal_0); this.btnExtract3.Pressed = new BitmapOrigin(Resource.Item_BtExtract3_pressed_0); this.btnExtract3.MouseOver = new BitmapOrigin(Resource.Item_BtExtract3_mouseOver_0); this.btnExtract3.Disabled = new BitmapOrigin(Resource.Item_BtExtract3_disabled_0); this.btnExtract3.Location = new Point(35, 303); this.btnExtract3.Size = new Size(24, 24); this.btnExtract3.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnExtract4 = new ACtrlButton(); this.btnExtract4.Normal = new BitmapOrigin(Resource.Item_BtExtract4_normal_0); this.btnExtract4.Pressed = new BitmapOrigin(Resource.Item_BtExtract4_pressed_0); this.btnExtract4.MouseOver = new BitmapOrigin(Resource.Item_BtExtract4_mouseOver_0); this.btnExtract4.Disabled = new BitmapOrigin(Resource.Item_BtExtract4_disabled_0); this.btnExtract4.Location = new Point(430, 337); this.btnExtract4.Size = new Size(16, 16); this.btnExtract4.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnAppraise3 = new ACtrlButton(); this.btnAppraise3.Normal = new BitmapOrigin(Resource.Item_BtAppraise3_normal_0); this.btnAppraise3.Pressed = new BitmapOrigin(Resource.Item_BtAppraise3_pressed_0); this.btnAppraise3.MouseOver = new BitmapOrigin(Resource.Item_BtAppraise3_mouseOver_0); this.btnAppraise3.Disabled = new BitmapOrigin(Resource.Item_BtAppraise3_disabled_0); this.btnAppraise3.Location = new Point(61, 303); this.btnAppraise3.Size = new Size(24, 24); this.btnAppraise3.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnAppraise4 = new ACtrlButton(); this.btnAppraise4.Normal = new BitmapOrigin(Resource.Item_BtAppraise4_normal_0); this.btnAppraise4.Pressed = new BitmapOrigin(Resource.Item_BtAppraise4_pressed_0); this.btnAppraise4.MouseOver = new BitmapOrigin(Resource.Item_BtAppraise4_mouseOver_0); this.btnAppraise4.Disabled = new BitmapOrigin(Resource.Item_BtAppraise4_disabled_0); this.btnAppraise4.Location = new Point(448, 337); this.btnAppraise4.Size = new Size(16, 16); this.btnAppraise4.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnBits3 = new ACtrlButton(); this.btnBits3.Normal = new BitmapOrigin(Resource.Item_BtBits3_normal_0); this.btnBits3.Pressed = new BitmapOrigin(Resource.Item_BtBits3_pressed_0); this.btnBits3.MouseOver = new BitmapOrigin(Resource.Item_BtBits3_mouseOver_0); this.btnBits3.Disabled = new BitmapOrigin(Resource.Item_BtBits3_disabled_0); this.btnBits3.Location = new Point(113, 303); this.btnBits3.Size = new Size(24, 24); this.btnBits3.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnBits4 = new ACtrlButton(); this.btnBits4.Normal = new BitmapOrigin(Resource.Item_BtBits4_normal_0); this.btnBits4.Pressed = new BitmapOrigin(Resource.Item_BtBits4_pressed_0); this.btnBits4.MouseOver = new BitmapOrigin(Resource.Item_BtBits4_mouseOver_0); this.btnBits4.Disabled = new BitmapOrigin(Resource.Item_BtBits4_disabled_0); this.btnBits4.Location = new Point(484, 337); this.btnBits4.Size = new Size(16, 16); this.btnBits4.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnPot3 = new ACtrlButton(); this.btnPot3.Normal = new BitmapOrigin(Resource.Item_BtPot3_normal_0); this.btnPot3.Pressed = new BitmapOrigin(Resource.Item_BtPot3_pressed_0); this.btnPot3.MouseOver = new BitmapOrigin(Resource.Item_BtPot3_mouseOver_0); this.btnPot3.Disabled = new BitmapOrigin(Resource.Item_BtPot3_disabled_0); this.btnPot3.Location = new Point(87, 303); this.btnPot3.Size = new Size(24, 24); this.btnPot3.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnPot4 = new ACtrlButton(); this.btnPot4.Normal = new BitmapOrigin(Resource.Item_BtPot4_normal_0); this.btnPot4.Pressed = new BitmapOrigin(Resource.Item_BtPot4_pressed_0); this.btnPot4.MouseOver = new BitmapOrigin(Resource.Item_BtPot4_mouseOver_0); this.btnPot4.Disabled = new BitmapOrigin(Resource.Item_BtPot4_disabled_0); this.btnPot4.Location = new Point(466, 337); this.btnPot4.Size = new Size(16, 16); this.btnPot4.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnUpgrade3 = new ACtrlButton(); this.btnUpgrade3.Normal = new BitmapOrigin(Resource.Item_BtUpgrade3_normal_0); this.btnUpgrade3.Pressed = new BitmapOrigin(Resource.Item_BtUpgrade3_pressed_0); this.btnUpgrade3.MouseOver = new BitmapOrigin(Resource.Item_BtUpgrade3_mouseOver_0); this.btnUpgrade3.Disabled = new BitmapOrigin(Resource.Item_BtUpgrade3_disabled_0); this.btnUpgrade3.Location = new Point(139, 303); this.btnUpgrade3.Size = new Size(24, 24); this.btnUpgrade3.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnUpgrade4 = new ACtrlButton(); this.btnUpgrade4.Normal = new BitmapOrigin(Resource.Item_BtUpgrade4_normal_0); this.btnUpgrade4.Pressed = new BitmapOrigin(Resource.Item_BtUpgrade4_pressed_0); this.btnUpgrade4.MouseOver = new BitmapOrigin(Resource.Item_BtUpgrade4_mouseOver_0); this.btnUpgrade4.Disabled = new BitmapOrigin(Resource.Item_BtUpgrade4_disabled_0); this.btnUpgrade4.Location = new Point(392, 337); this.btnUpgrade4.Size = new Size(16, 16); this.btnUpgrade4.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnToad3 = new ACtrlButton(); this.btnToad3.Normal = new BitmapOrigin(Resource.Item_BtToad3_normal_0); this.btnToad3.Pressed = new BitmapOrigin(Resource.Item_BtToad3_pressed_0); this.btnToad3.MouseOver = new BitmapOrigin(Resource.Item_BtToad3_mouseOver_0); this.btnToad3.Disabled = new BitmapOrigin(Resource.Item_BtToad3_disabled_0); this.btnToad3.Location = new Point(113, 303); this.btnToad3.Size = new Size(24, 24); this.btnToad3.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnToad4 = new ACtrlButton(); this.btnToad4.Normal = new BitmapOrigin(Resource.Item_BtToad4_normal_0); this.btnToad4.Pressed = new BitmapOrigin(Resource.Item_BtToad4_pressed_0); this.btnToad4.MouseOver = new BitmapOrigin(Resource.Item_BtToad4_mouseOver_0); this.btnToad4.Disabled = new BitmapOrigin(Resource.Item_BtToad4_disabled_0); this.btnToad4.Location = new Point(484, 337); this.btnToad4.Size = new Size(16, 16); this.btnToad4.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnClose = new ACtrlButton(); this.btnClose.Normal = new BitmapOrigin(Resource.BtClose3_normal_0); this.btnClose.Pressed = new BitmapOrigin(Resource.BtClose3_pressed_0); this.btnClose.MouseOver = new BitmapOrigin(Resource.BtClose3_mouseOver_0); this.btnClose.Disabled = new BitmapOrigin(Resource.BtClose3_disabled_0); this.btnClose.Location = new Point(150, 6); this.btnClose.Size = new Size(13, 13); this.btnClose.ButtonStateChanged += new EventHandler(aCtrl_RefreshCall); this.btnClose.MouseClick += new MouseEventHandler(btnClose_MouseClick); }