private void InitializeComponent() { new ComponentResourceManager(typeof(PlayCardsWindow)); this.currentPanel = new PlayCardsPanel(); this.tbSearchBox = new TextBox(); base.SuspendLayout(); this.currentPanel.Location = new Point(0, 0); this.currentPanel.Name = "cardPanel"; this.currentPanel.Size = new Size(0x3e8, 600); this.currentPanel.StoredGraphics = null; this.currentPanel.TabIndex = 0; this.tbSearchBox.Location = new Point(770, 7); this.tbSearchBox.Name = "tbSearchBox"; this.tbSearchBox.Size = new Size(160, 20); this.tbSearchBox.TabIndex = 1; this.tbSearchBox.TextChanged += new EventHandler(this.tbSearchBox_TextChanged); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.None; base.ClientSize = new Size(0x3e8, 600); base.ControlBox = false; base.Controls.Add(this.currentPanel); base.Controls.Add(this.tbSearchBox); base.FormBorderStyle = FormBorderStyle.None; base.Icon = Resources.shk_icon; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "PlayCardsWindow"; base.ShowIcon = false; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.Manual; this.Text = "PlayCardsWindow"; base.FormClosing += new FormClosingEventHandler(this.PlayCardsWindow_FormClosing); base.ResumeLayout(false); }
public PlayCardsWindow() { this.currentPanel = this.cardPanelPlay; this.currentPanelID = 1; this.InitializeComponent(); this.tbSearchBox.Font = FontManager.GetFont("Arial", 9.75f, FontStyle.Regular); this.tbSearchBox.Parent.Controls.Remove(this.tbSearchBox); this.currentPanel.Controls.Add(this.tbSearchBox); this.processTextChanged = false; this.tbSearchBox.Text = ""; this.processTextChanged = true; this.tbSearchBox.Visible = false; this.Font = FontManager.GetFont("Microsoft Sans Serif", 8.25f); base.TransparencyKey = Color.FromArgb(0xff, 0xff, 0, 0xff); this.BackColor = base.TransparencyKey; if (!GameEngine.Instance.World.TutorialIsAdvancing()) { if (GameEngine.Instance.World.getTutorialStage() == 8) { GameEngine.Instance.World.checkQuestObjectiveComplete(7); } if (GameEngine.Instance.World.getTutorialStage() == 12) { GameEngine.Instance.World.checkQuestObjectiveComplete(11); } if (GameEngine.Instance.World.getTutorialStage() == 0x66) { GameEngine.Instance.World.checkQuestObjectiveComplete(13); } } }
public void init(string message, string title, int type, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate leftButton, bool leaveGreaoutOpenOnClose) { this.Text = base.Title = title; this.panel.init(this, message, type, leftButton, leaveGreaoutOpenOnClose); if (leaveGreaoutOpenOnClose) { this.closing = true; } }
private void ShowBigCard(CustomSelfDrawPanel.UICard card) { }
private void playerListDoubleClick(CustomSelfDrawPanel.CSDListItem item) { this.addPlayer(item); }
public void init(string message, string title, int type, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate leftButton) { this.Text = base.Title = title; this.panel.init(this, message, type, leftButton, (CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate) null); }
private void setRandomColour(CustomSelfDrawPanel colourPanel, Random rnd) { CustomSelfDrawPanel.CSDControl baseControl = colourPanel.baseControl; int num = rnd.Next(baseControl.Controls.Count); int num2 = 0; foreach (CustomSelfDrawPanel.CSDFill fill in baseControl.Controls) { fill.Border = num == num2; num2++; } }
public Color getColour(CustomSelfDrawPanel panel) { foreach (CustomSelfDrawPanel.CSDFill fill in panel.baseControl.Controls) { if ((fill != null) && fill.Border) { return fill.FillColor; } } return ARGBColors.White; }
private void regionListDoubleClick(CustomSelfDrawPanel.CSDListItem item) { this.addRegion(item); }
private void InitializeComponent() { this.rbMale = new RadioButton(); this.label1 = new Label(); this.rbFemale = new RadioButton(); this.rbFloor2 = new RadioButton(); this.label2 = new Label(); this.rbFloor1 = new RadioButton(); this.rbLegs2 = new RadioButton(); this.label3 = new Label(); this.rbLegs1 = new RadioButton(); this.rbLegs3 = new RadioButton(); this.label4 = new Label(); this.rbBody1 = new RadioButton(); this.rbFeet3 = new RadioButton(); this.rbFeet2 = new RadioButton(); this.label5 = new Label(); this.rbFeet1 = new RadioButton(); this.rbTorso3 = new RadioButton(); this.rbTorso2 = new RadioButton(); this.label6 = new Label(); this.rbTorso1 = new RadioButton(); this.rbTorso4 = new RadioButton(); this.rbTabard2 = new RadioButton(); this.label7 = new Label(); this.rbTabard1 = new RadioButton(); this.rbHands3 = new RadioButton(); this.rbHands2 = new RadioButton(); this.label8 = new Label(); this.rbHands1 = new RadioButton(); this.rbArms3 = new RadioButton(); this.rbArms2 = new RadioButton(); this.label9 = new Label(); this.rbArms1 = new RadioButton(); this.rbShoulders4 = new RadioButton(); this.rbShoulders3 = new RadioButton(); this.rbShoulders2 = new RadioButton(); this.label10 = new Label(); this.rbShoulders1 = new RadioButton(); this.rbFace2 = new RadioButton(); this.label11 = new Label(); this.rbFace1 = new RadioButton(); this.rbHair4 = new RadioButton(); this.rbHair3 = new RadioButton(); this.rbHair2 = new RadioButton(); this.label12 = new Label(); this.rbHair1 = new RadioButton(); this.rbHead3 = new RadioButton(); this.rbHead2 = new RadioButton(); this.rbHead1 = new RadioButton(); this.label13 = new Label(); this.rbHeadOff = new RadioButton(); this.rbWeapon3 = new RadioButton(); this.rbWeapon2 = new RadioButton(); this.rbWeapon1 = new RadioButton(); this.label14 = new Label(); this.rbWeaponOff = new RadioButton(); this.panel1 = new Panel(); this.pnlFloor = new Panel(); this.rbFloor6 = new RadioButton(); this.rbFloor9 = new RadioButton(); this.rbFloor10 = new RadioButton(); this.rbFloor11 = new RadioButton(); this.rbFloor8 = new RadioButton(); this.rbFloor7 = new RadioButton(); this.pnlFloorCSD = new CustomSelfDrawPanel(); this.rbFloor3 = new RadioButton(); this.rbFloor4 = new RadioButton(); this.rbFloor5 = new RadioButton(); this.pnlBody = new Panel(); this.pnlBodyCSD = new CustomSelfDrawPanel(); this.pnlLegs = new Panel(); this.rbLegs7 = new RadioButton(); this.rbLegs6 = new RadioButton(); this.pnlLegsCSD = new CustomSelfDrawPanel(); this.rbLegs5 = new RadioButton(); this.rbLegs4 = new RadioButton(); this.pnlFeet = new Panel(); this.rbFeet6 = new RadioButton(); this.rbFeet5 = new RadioButton(); this.pnlFeetCSD = new CustomSelfDrawPanel(); this.rbFeet4 = new RadioButton(); this.rbFeetOff = new RadioButton(); this.pnlTorso = new Panel(); this.pnlTorsoCSD = new CustomSelfDrawPanel(); this.pnlTabard = new Panel(); this.rbTabard8 = new RadioButton(); this.rbTabard7 = new RadioButton(); this.rbTabard6 = new RadioButton(); this.rbTabard5 = new RadioButton(); this.pnlTabardCSD = new CustomSelfDrawPanel(); this.rbTabard4 = new RadioButton(); this.rbTabard3 = new RadioButton(); this.rbTabardOff = new RadioButton(); this.pnlArms = new Panel(); this.pnlArmsCSD = new CustomSelfDrawPanel(); this.rbArms4 = new RadioButton(); this.rbArmsOff = new RadioButton(); this.pnlHands = new Panel(); this.pnlHandsCSD = new CustomSelfDrawPanel(); this.rbHands4 = new RadioButton(); this.rbHandsOff = new RadioButton(); this.pnlShoulders = new Panel(); this.pnlShouldersCSD = new CustomSelfDrawPanel(); this.rbShoulderOff = new RadioButton(); this.pnlFace = new Panel(); this.rbFace7 = new RadioButton(); this.rbFace6 = new RadioButton(); this.rbFace5 = new RadioButton(); this.pnlFaceCSD = new CustomSelfDrawPanel(); this.rbFace4 = new RadioButton(); this.rbFace3 = new RadioButton(); this.pnlHair = new Panel(); this.rbHair5 = new RadioButton(); this.rbHair6 = new RadioButton(); this.pnlHairCSD = new CustomSelfDrawPanel(); this.rbHairOff = new RadioButton(); this.pnlHead = new Panel(); this.rbHead12 = new RadioButton(); this.rbHead9 = new RadioButton(); this.rbHead10 = new RadioButton(); this.rbHead11 = new RadioButton(); this.rbHead8 = new RadioButton(); this.rbHead5 = new RadioButton(); this.rbHead6 = new RadioButton(); this.rbHead7 = new RadioButton(); this.pnlHeadCSD = new CustomSelfDrawPanel(); this.rbHead4 = new RadioButton(); this.pnlWeapon = new Panel(); this.rbWeapon5 = new RadioButton(); this.rbWeapon6 = new RadioButton(); this.pnlWeaponCSD = new CustomSelfDrawPanel(); this.rbWeapon4 = new RadioButton(); this.btnRandom = new BitmapButton(); this.btnLastSaved = new BitmapButton(); this.btnDefault = new BitmapButton(); this.btnUploadAvatar = new BitmapButton(); this.imgAvatar = new AvatarPanel(); this.panel1.SuspendLayout(); this.pnlFloor.SuspendLayout(); this.pnlBody.SuspendLayout(); this.pnlLegs.SuspendLayout(); this.pnlFeet.SuspendLayout(); this.pnlTorso.SuspendLayout(); this.pnlTabard.SuspendLayout(); this.pnlArms.SuspendLayout(); this.pnlHands.SuspendLayout(); this.pnlShoulders.SuspendLayout(); this.pnlFace.SuspendLayout(); this.pnlHair.SuspendLayout(); this.pnlHead.SuspendLayout(); this.pnlWeapon.SuspendLayout(); base.SuspendLayout(); this.rbMale.AutoSize = true; this.rbMale.Location = new Point(0x5f, 3); this.rbMale.Name = "rbMale"; this.rbMale.Size = new Size(0x30, 0x11); this.rbMale.TabIndex = 1; this.rbMale.TabStop = true; this.rbMale.Text = "Male"; this.rbMale.UseVisualStyleBackColor = true; this.label1.AutoSize = true; this.label1.Location = new Point(7, 5); this.label1.Name = "label1"; this.label1.Size = new Size(0x19, 13); this.label1.TabIndex = 2; this.label1.Text = "Sex"; this.rbFemale.AutoSize = true; this.rbFemale.Location = new Point(0xa9, 3); this.rbFemale.Name = "rbFemale"; this.rbFemale.Size = new Size(0x3b, 0x11); this.rbFemale.TabIndex = 3; this.rbFemale.TabStop = true; this.rbFemale.Text = "Female"; this.rbFemale.UseVisualStyleBackColor = true; this.rbFemale.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFloor2.AutoSize = true; this.rbFloor2.Location = new Point(0x98, 3); this.rbFloor2.Name = "rbFloor2"; this.rbFloor2.Size = new Size(14, 13); this.rbFloor2.TabIndex = 6; this.rbFloor2.TabStop = true; this.rbFloor2.UseVisualStyleBackColor = true; this.rbFloor2.CheckedChanged += new EventHandler(this.checkedChanged); this.label2.AutoSize = true; this.label2.Location = new Point(7, 5); this.label2.Name = "label2"; this.label2.Size = new Size(30, 13); this.label2.TabIndex = 5; this.label2.Text = "Floor"; this.rbFloor1.AutoSize = true; this.rbFloor1.Location = new Point(0x84, 3); this.rbFloor1.Name = "rbFloor1"; this.rbFloor1.Size = new Size(14, 13); this.rbFloor1.TabIndex = 4; this.rbFloor1.TabStop = true; this.rbFloor1.UseVisualStyleBackColor = true; this.rbFloor1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbLegs2.AutoSize = true; this.rbLegs2.Location = new Point(0x98, 3); this.rbLegs2.Name = "rbLegs2"; this.rbLegs2.Size = new Size(14, 13); this.rbLegs2.TabIndex = 9; this.rbLegs2.TabStop = true; this.rbLegs2.UseVisualStyleBackColor = true; this.rbLegs2.CheckedChanged += new EventHandler(this.checkedChanged); this.label3.AutoSize = true; this.label3.Location = new Point(7, 5); this.label3.Name = "label3"; this.label3.Size = new Size(30, 13); this.label3.TabIndex = 8; this.label3.Text = "Legs"; this.rbLegs1.AutoSize = true; this.rbLegs1.Location = new Point(0x84, 3); this.rbLegs1.Name = "rbLegs1"; this.rbLegs1.Size = new Size(14, 13); this.rbLegs1.TabIndex = 7; this.rbLegs1.TabStop = true; this.rbLegs1.UseVisualStyleBackColor = true; this.rbLegs1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbLegs3.AutoSize = true; this.rbLegs3.Location = new Point(0xac, 3); this.rbLegs3.Name = "rbLegs3"; this.rbLegs3.Size = new Size(14, 13); this.rbLegs3.TabIndex = 10; this.rbLegs3.TabStop = true; this.rbLegs3.UseVisualStyleBackColor = true; this.rbLegs3.CheckedChanged += new EventHandler(this.checkedChanged); this.label4.AutoSize = true; this.label4.Location = new Point(7, 5); this.label4.Name = "label4"; this.label4.Size = new Size(0x1f, 13); this.label4.TabIndex = 12; this.label4.Text = "Body"; this.rbBody1.AutoSize = true; this.rbBody1.Location = new Point(0x84, 3); this.rbBody1.Name = "rbBody1"; this.rbBody1.Size = new Size(14, 13); this.rbBody1.TabIndex = 11; this.rbBody1.TabStop = true; this.rbBody1.UseVisualStyleBackColor = true; this.rbBody1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFeet3.AutoSize = true; this.rbFeet3.Location = new Point(0xac, 3); this.rbFeet3.Name = "rbFeet3"; this.rbFeet3.Size = new Size(14, 13); this.rbFeet3.TabIndex = 0x10; this.rbFeet3.TabStop = true; this.rbFeet3.UseVisualStyleBackColor = true; this.rbFeet3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFeet2.AutoSize = true; this.rbFeet2.Location = new Point(0x98, 3); this.rbFeet2.Name = "rbFeet2"; this.rbFeet2.Size = new Size(14, 13); this.rbFeet2.TabIndex = 15; this.rbFeet2.TabStop = true; this.rbFeet2.UseVisualStyleBackColor = true; this.rbFeet2.CheckedChanged += new EventHandler(this.checkedChanged); this.label5.AutoSize = true; this.label5.Location = new Point(7, 5); this.label5.Name = "label5"; this.label5.Size = new Size(0x1c, 13); this.label5.TabIndex = 14; this.label5.Text = "Feet"; this.rbFeet1.AutoSize = true; this.rbFeet1.Location = new Point(0x84, 3); this.rbFeet1.Name = "rbFeet1"; this.rbFeet1.Size = new Size(14, 13); this.rbFeet1.TabIndex = 13; this.rbFeet1.TabStop = true; this.rbFeet1.UseVisualStyleBackColor = true; this.rbFeet1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbTorso3.AutoSize = true; this.rbTorso3.Location = new Point(0xac, 3); this.rbTorso3.Name = "rbTorso3"; this.rbTorso3.Size = new Size(14, 13); this.rbTorso3.TabIndex = 20; this.rbTorso3.TabStop = true; this.rbTorso3.UseVisualStyleBackColor = true; this.rbTorso3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbTorso2.AutoSize = true; this.rbTorso2.Location = new Point(0x98, 3); this.rbTorso2.Name = "rbTorso2"; this.rbTorso2.Size = new Size(14, 13); this.rbTorso2.TabIndex = 0x13; this.rbTorso2.TabStop = true; this.rbTorso2.UseVisualStyleBackColor = true; this.rbTorso2.CheckedChanged += new EventHandler(this.checkedChanged); this.label6.AutoSize = true; this.label6.Location = new Point(7, 5); this.label6.Name = "label6"; this.label6.Size = new Size(0x22, 13); this.label6.TabIndex = 0x12; this.label6.Text = "Torso"; this.rbTorso1.AutoSize = true; this.rbTorso1.Location = new Point(0x84, 3); this.rbTorso1.Name = "rbTorso1"; this.rbTorso1.Size = new Size(14, 13); this.rbTorso1.TabIndex = 0x11; this.rbTorso1.TabStop = true; this.rbTorso1.UseVisualStyleBackColor = true; this.rbTorso1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbTorso4.AutoSize = true; this.rbTorso4.Location = new Point(0xc0, 3); this.rbTorso4.Name = "rbTorso4"; this.rbTorso4.Size = new Size(14, 13); this.rbTorso4.TabIndex = 0x15; this.rbTorso4.TabStop = true; this.rbTorso4.UseVisualStyleBackColor = true; this.rbTorso4.CheckedChanged += new EventHandler(this.checkedChanged); this.rbTabard2.AutoSize = true; this.rbTabard2.Location = new Point(0x98, 3); this.rbTabard2.Name = "rbTabard2"; this.rbTabard2.Size = new Size(14, 13); this.rbTabard2.TabIndex = 0x18; this.rbTabard2.TabStop = true; this.rbTabard2.UseVisualStyleBackColor = true; this.rbTabard2.CheckedChanged += new EventHandler(this.checkedChanged); this.label7.AutoSize = true; this.label7.Location = new Point(7, 5); this.label7.Name = "label7"; this.label7.Size = new Size(0x29, 13); this.label7.TabIndex = 0x17; this.label7.Text = "Tabard"; this.rbTabard1.AutoSize = true; this.rbTabard1.Location = new Point(0x84, 3); this.rbTabard1.Name = "rbTabard1"; this.rbTabard1.Size = new Size(14, 13); this.rbTabard1.TabIndex = 0x16; this.rbTabard1.TabStop = true; this.rbTabard1.UseVisualStyleBackColor = true; this.rbTabard1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHands3.AutoSize = true; this.rbHands3.Location = new Point(0xac, 3); this.rbHands3.Name = "rbHands3"; this.rbHands3.Size = new Size(14, 13); this.rbHands3.TabIndex = 0x20; this.rbHands3.TabStop = true; this.rbHands3.UseVisualStyleBackColor = true; this.rbHands3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHands2.AutoSize = true; this.rbHands2.Location = new Point(0x98, 3); this.rbHands2.Name = "rbHands2"; this.rbHands2.Size = new Size(14, 13); this.rbHands2.TabIndex = 0x1f; this.rbHands2.TabStop = true; this.rbHands2.UseVisualStyleBackColor = true; this.rbHands2.CheckedChanged += new EventHandler(this.checkedChanged); this.label8.AutoSize = true; this.label8.Location = new Point(7, 5); this.label8.Name = "label8"; this.label8.Size = new Size(0x26, 13); this.label8.TabIndex = 30; this.label8.Text = "Hands"; this.rbHands1.AutoSize = true; this.rbHands1.Location = new Point(0x84, 3); this.rbHands1.Name = "rbHands1"; this.rbHands1.Size = new Size(14, 13); this.rbHands1.TabIndex = 0x1d; this.rbHands1.TabStop = true; this.rbHands1.UseVisualStyleBackColor = true; this.rbHands1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbArms3.AutoSize = true; this.rbArms3.Location = new Point(0xac, 3); this.rbArms3.Name = "rbArms3"; this.rbArms3.Size = new Size(14, 13); this.rbArms3.TabIndex = 0x1c; this.rbArms3.TabStop = true; this.rbArms3.UseVisualStyleBackColor = true; this.rbArms3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbArms2.AutoSize = true; this.rbArms2.Location = new Point(0x98, 3); this.rbArms2.Name = "rbArms2"; this.rbArms2.Size = new Size(14, 13); this.rbArms2.TabIndex = 0x1b; this.rbArms2.TabStop = true; this.rbArms2.UseVisualStyleBackColor = true; this.rbArms2.CheckedChanged += new EventHandler(this.checkedChanged); this.label9.AutoSize = true; this.label9.Location = new Point(7, 5); this.label9.Name = "label9"; this.label9.Size = new Size(30, 13); this.label9.TabIndex = 0x1a; this.label9.Text = "Arms"; this.rbArms1.AutoSize = true; this.rbArms1.Location = new Point(0x84, 3); this.rbArms1.Name = "rbArms1"; this.rbArms1.Size = new Size(14, 13); this.rbArms1.TabIndex = 0x19; this.rbArms1.TabStop = true; this.rbArms1.UseVisualStyleBackColor = true; this.rbArms1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbShoulders4.AutoSize = true; this.rbShoulders4.Location = new Point(0xc0, 3); this.rbShoulders4.Name = "rbShoulders4"; this.rbShoulders4.Size = new Size(14, 13); this.rbShoulders4.TabIndex = 0x25; this.rbShoulders4.TabStop = true; this.rbShoulders4.UseVisualStyleBackColor = true; this.rbShoulders4.CheckedChanged += new EventHandler(this.checkedChanged); this.rbShoulders3.AutoSize = true; this.rbShoulders3.Location = new Point(0xac, 3); this.rbShoulders3.Name = "rbShoulders3"; this.rbShoulders3.Size = new Size(14, 13); this.rbShoulders3.TabIndex = 0x24; this.rbShoulders3.TabStop = true; this.rbShoulders3.UseVisualStyleBackColor = true; this.rbShoulders3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbShoulders2.AutoSize = true; this.rbShoulders2.Location = new Point(0x98, 3); this.rbShoulders2.Name = "rbShoulders2"; this.rbShoulders2.Size = new Size(14, 13); this.rbShoulders2.TabIndex = 0x23; this.rbShoulders2.TabStop = true; this.rbShoulders2.UseVisualStyleBackColor = true; this.rbShoulders2.CheckedChanged += new EventHandler(this.checkedChanged); this.label10.AutoSize = true; this.label10.Location = new Point(7, 5); this.label10.Name = "label10"; this.label10.Size = new Size(0x36, 13); this.label10.TabIndex = 0x22; this.label10.Text = "Shoulders"; this.rbShoulders1.AutoSize = true; this.rbShoulders1.Location = new Point(0x84, 3); this.rbShoulders1.Name = "rbShoulders1"; this.rbShoulders1.Size = new Size(14, 13); this.rbShoulders1.TabIndex = 0x21; this.rbShoulders1.TabStop = true; this.rbShoulders1.UseVisualStyleBackColor = true; this.rbShoulders1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFace2.AutoSize = true; this.rbFace2.Location = new Point(0x98, 3); this.rbFace2.Name = "rbFace2"; this.rbFace2.Size = new Size(14, 13); this.rbFace2.TabIndex = 40; this.rbFace2.TabStop = true; this.rbFace2.UseVisualStyleBackColor = true; this.rbFace2.CheckedChanged += new EventHandler(this.checkedChanged); this.label11.AutoSize = true; this.label11.Location = new Point(7, 5); this.label11.Name = "label11"; this.label11.Size = new Size(0x1f, 13); this.label11.TabIndex = 0x27; this.label11.Text = "Face"; this.rbFace1.AutoSize = true; this.rbFace1.Location = new Point(0x84, 3); this.rbFace1.Name = "rbFace1"; this.rbFace1.Size = new Size(14, 13); this.rbFace1.TabIndex = 0x26; this.rbFace1.TabStop = true; this.rbFace1.UseVisualStyleBackColor = true; this.rbFace1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHair4.AutoSize = true; this.rbHair4.Location = new Point(0xc0, 3); this.rbHair4.Name = "rbHair4"; this.rbHair4.Size = new Size(14, 13); this.rbHair4.TabIndex = 0x2d; this.rbHair4.TabStop = true; this.rbHair4.UseVisualStyleBackColor = true; this.rbHair4.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHair3.AutoSize = true; this.rbHair3.Location = new Point(0xac, 3); this.rbHair3.Name = "rbHair3"; this.rbHair3.Size = new Size(14, 13); this.rbHair3.TabIndex = 0x2c; this.rbHair3.TabStop = true; this.rbHair3.UseVisualStyleBackColor = true; this.rbHair3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHair2.AutoSize = true; this.rbHair2.Location = new Point(0x98, 3); this.rbHair2.Name = "rbHair2"; this.rbHair2.Size = new Size(14, 13); this.rbHair2.TabIndex = 0x2b; this.rbHair2.TabStop = true; this.rbHair2.UseVisualStyleBackColor = true; this.rbHair2.CheckedChanged += new EventHandler(this.checkedChanged); this.label12.AutoSize = true; this.label12.Location = new Point(7, 5); this.label12.Name = "label12"; this.label12.Size = new Size(0x1a, 13); this.label12.TabIndex = 0x2a; this.label12.Text = "Hair"; this.rbHair1.AutoSize = true; this.rbHair1.Location = new Point(0x84, 3); this.rbHair1.Name = "rbHair1"; this.rbHair1.Size = new Size(14, 13); this.rbHair1.TabIndex = 0x29; this.rbHair1.TabStop = true; this.rbHair1.UseVisualStyleBackColor = true; this.rbHair1.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead3.AutoSize = true; this.rbHead3.Location = new Point(0xac, 3); this.rbHead3.Name = "rbHead3"; this.rbHead3.Size = new Size(14, 13); this.rbHead3.TabIndex = 50; this.rbHead3.TabStop = true; this.rbHead3.UseVisualStyleBackColor = true; this.rbHead3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead2.AutoSize = true; this.rbHead2.Location = new Point(0x98, 3); this.rbHead2.Name = "rbHead2"; this.rbHead2.Size = new Size(14, 13); this.rbHead2.TabIndex = 0x31; this.rbHead2.TabStop = true; this.rbHead2.UseVisualStyleBackColor = true; this.rbHead2.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead1.AutoSize = true; this.rbHead1.Location = new Point(0x84, 3); this.rbHead1.Name = "rbHead1"; this.rbHead1.Size = new Size(14, 13); this.rbHead1.TabIndex = 0x30; this.rbHead1.TabStop = true; this.rbHead1.UseVisualStyleBackColor = true; this.rbHead1.CheckedChanged += new EventHandler(this.checkedChanged); this.label13.AutoSize = true; this.label13.Location = new Point(7, 5); this.label13.Name = "label13"; this.label13.Size = new Size(0x21, 13); this.label13.TabIndex = 0x2f; this.label13.Text = "Head"; this.rbHeadOff.AutoSize = true; this.rbHeadOff.Location = new Point(0x5f, 3); this.rbHeadOff.Name = "rbHeadOff"; this.rbHeadOff.Size = new Size(0x20, 0x11); this.rbHeadOff.TabIndex = 0x2e; this.rbHeadOff.TabStop = true; this.rbHeadOff.Text = "X"; this.rbHeadOff.UseVisualStyleBackColor = true; this.rbHeadOff.CheckedChanged += new EventHandler(this.checkedChanged); this.rbWeapon3.AutoSize = true; this.rbWeapon3.Location = new Point(0xac, 3); this.rbWeapon3.Name = "rbWeapon3"; this.rbWeapon3.Size = new Size(14, 13); this.rbWeapon3.TabIndex = 0x37; this.rbWeapon3.TabStop = true; this.rbWeapon3.UseVisualStyleBackColor = true; this.rbWeapon3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbWeapon2.AutoSize = true; this.rbWeapon2.Location = new Point(0x98, 3); this.rbWeapon2.Name = "rbWeapon2"; this.rbWeapon2.Size = new Size(14, 13); this.rbWeapon2.TabIndex = 0x36; this.rbWeapon2.TabStop = true; this.rbWeapon2.UseVisualStyleBackColor = true; this.rbWeapon2.CheckedChanged += new EventHandler(this.checkedChanged); this.rbWeapon1.AutoSize = true; this.rbWeapon1.Location = new Point(0x84, 3); this.rbWeapon1.Name = "rbWeapon1"; this.rbWeapon1.Size = new Size(14, 13); this.rbWeapon1.TabIndex = 0x35; this.rbWeapon1.TabStop = true; this.rbWeapon1.UseVisualStyleBackColor = true; this.rbWeapon1.CheckedChanged += new EventHandler(this.checkedChanged); this.label14.AutoSize = true; this.label14.Location = new Point(7, 5); this.label14.Name = "label14"; this.label14.Size = new Size(0x30, 13); this.label14.TabIndex = 0x34; this.label14.Text = "Weapon"; this.rbWeaponOff.AutoSize = true; this.rbWeaponOff.Location = new Point(0x5f, 3); this.rbWeaponOff.Name = "rbWeaponOff"; this.rbWeaponOff.Size = new Size(0x20, 0x11); this.rbWeaponOff.TabIndex = 0x33; this.rbWeaponOff.TabStop = true; this.rbWeaponOff.Text = "X"; this.rbWeaponOff.UseVisualStyleBackColor = true; this.rbWeaponOff.CheckedChanged += new EventHandler(this.checkedChanged); this.panel1.BackColor = Color.Transparent; this.panel1.Controls.Add(this.rbFemale); this.panel1.Controls.Add(this.rbMale); this.panel1.Controls.Add(this.label1); this.panel1.Location = new Point(0xf8, 0x1c); this.panel1.Name = "panel1"; this.panel1.Size = new Size(0x2c5, 0x16); this.panel1.TabIndex = 0x38; this.pnlFloor.BackColor = Color.Transparent; this.pnlFloor.Controls.Add(this.rbFloor6); this.pnlFloor.Controls.Add(this.rbFloor9); this.pnlFloor.Controls.Add(this.rbFloor10); this.pnlFloor.Controls.Add(this.rbFloor11); this.pnlFloor.Controls.Add(this.rbFloor8); this.pnlFloor.Controls.Add(this.rbFloor7); this.pnlFloor.Controls.Add(this.pnlFloorCSD); this.pnlFloor.Controls.Add(this.rbFloor3); this.pnlFloor.Controls.Add(this.rbFloor4); this.pnlFloor.Controls.Add(this.rbFloor5); this.pnlFloor.Controls.Add(this.rbFloor2); this.pnlFloor.Controls.Add(this.rbFloor1); this.pnlFloor.Controls.Add(this.label2); this.pnlFloor.Location = new Point(0xf8, 0x1e3); this.pnlFloor.Name = "pnlFloor"; this.pnlFloor.Size = new Size(0x2c5, 0x16); this.pnlFloor.TabIndex = 0x39; this.rbFloor6.AutoSize = true; this.rbFloor6.Location = new Point(0xe8, 3); this.rbFloor6.Name = "rbFloor6"; this.rbFloor6.Size = new Size(14, 13); this.rbFloor6.TabIndex = 0x41; this.rbFloor6.TabStop = true; this.rbFloor6.UseVisualStyleBackColor = true; this.rbFloor6.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFloor9.AutoSize = true; this.rbFloor9.Location = new Point(0x124, 3); this.rbFloor9.Name = "rbFloor9"; this.rbFloor9.Size = new Size(14, 13); this.rbFloor9.TabIndex = 0x40; this.rbFloor9.TabStop = true; this.rbFloor9.UseVisualStyleBackColor = true; this.rbFloor9.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFloor10.AutoSize = true; this.rbFloor10.Location = new Point(0x138, 3); this.rbFloor10.Name = "rbFloor10"; this.rbFloor10.Size = new Size(14, 13); this.rbFloor10.TabIndex = 0x3f; this.rbFloor10.TabStop = true; this.rbFloor10.UseVisualStyleBackColor = true; this.rbFloor10.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFloor11.AutoSize = true; this.rbFloor11.Location = new Point(0x14c, 3); this.rbFloor11.Name = "rbFloor11"; this.rbFloor11.Size = new Size(14, 13); this.rbFloor11.TabIndex = 0x3e; this.rbFloor11.TabStop = true; this.rbFloor11.UseVisualStyleBackColor = true; this.rbFloor11.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFloor8.AutoSize = true; this.rbFloor8.Location = new Point(0x110, 3); this.rbFloor8.Name = "rbFloor8"; this.rbFloor8.Size = new Size(14, 13); this.rbFloor8.TabIndex = 0x3d; this.rbFloor8.TabStop = true; this.rbFloor8.UseVisualStyleBackColor = true; this.rbFloor8.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFloor7.AutoSize = true; this.rbFloor7.Location = new Point(0xfc, 3); this.rbFloor7.Name = "rbFloor7"; this.rbFloor7.Size = new Size(14, 13); this.rbFloor7.TabIndex = 60; this.rbFloor7.TabStop = true; this.rbFloor7.UseVisualStyleBackColor = true; this.rbFloor7.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlFloorCSD.ClickThru = false; this.pnlFloorCSD.Location = new Point(0x174, 0); this.pnlFloorCSD.Name = "pnlFloorCSD"; this.pnlFloorCSD.NoDrawBackground = false; this.pnlFloorCSD.PanelActive = true; this.pnlFloorCSD.SelfDrawBackground = false; this.pnlFloorCSD.Size = new Size(0x151, 0x16); this.pnlFloorCSD.StoredGraphics = null; this.pnlFloorCSD.TabIndex = 0x3b; this.rbFloor3.AutoSize = true; this.rbFloor3.Location = new Point(0xac, 3); this.rbFloor3.Name = "rbFloor3"; this.rbFloor3.Size = new Size(14, 13); this.rbFloor3.TabIndex = 9; this.rbFloor3.TabStop = true; this.rbFloor3.UseVisualStyleBackColor = true; this.rbFloor3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFloor4.AutoSize = true; this.rbFloor4.Location = new Point(0xc0, 3); this.rbFloor4.Name = "rbFloor4"; this.rbFloor4.Size = new Size(14, 13); this.rbFloor4.TabIndex = 8; this.rbFloor4.TabStop = true; this.rbFloor4.UseVisualStyleBackColor = true; this.rbFloor4.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFloor5.AutoSize = true; this.rbFloor5.Location = new Point(0xd4, 3); this.rbFloor5.Name = "rbFloor5"; this.rbFloor5.Size = new Size(14, 13); this.rbFloor5.TabIndex = 7; this.rbFloor5.TabStop = true; this.rbFloor5.UseVisualStyleBackColor = true; this.rbFloor5.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlBody.BackColor = Color.Transparent; this.pnlBody.Controls.Add(this.pnlBodyCSD); this.pnlBody.Controls.Add(this.rbBody1); this.pnlBody.Controls.Add(this.label4); this.pnlBody.Location = new Point(0xf8, 0xee); this.pnlBody.Name = "pnlBody"; this.pnlBody.Size = new Size(0x2c5, 0x16); this.pnlBody.TabIndex = 0x39; this.pnlBodyCSD.ClickThru = false; this.pnlBodyCSD.Location = new Point(0x174, 0); this.pnlBodyCSD.Name = "pnlBodyCSD"; this.pnlBodyCSD.NoDrawBackground = false; this.pnlBodyCSD.PanelActive = true; this.pnlBodyCSD.SelfDrawBackground = false; this.pnlBodyCSD.Size = new Size(0x151, 0x16); this.pnlBodyCSD.StoredGraphics = null; this.pnlBodyCSD.TabIndex = 0x38; this.pnlLegs.BackColor = Color.Transparent; this.pnlLegs.Controls.Add(this.rbLegs7); this.pnlLegs.Controls.Add(this.rbLegs6); this.pnlLegs.Controls.Add(this.pnlLegsCSD); this.pnlLegs.Controls.Add(this.rbLegs5); this.pnlLegs.Controls.Add(this.rbLegs4); this.pnlLegs.Controls.Add(this.rbLegs1); this.pnlLegs.Controls.Add(this.label3); this.pnlLegs.Controls.Add(this.rbLegs2); this.pnlLegs.Controls.Add(this.rbLegs3); this.pnlLegs.Location = new Point(0xf8, 0x19d); this.pnlLegs.Name = "pnlLegs"; this.pnlLegs.Size = new Size(0x2c5, 0x16); this.pnlLegs.TabIndex = 0x39; this.rbLegs7.AutoSize = true; this.rbLegs7.Location = new Point(0xfc, 3); this.rbLegs7.Name = "rbLegs7"; this.rbLegs7.Size = new Size(14, 13); this.rbLegs7.TabIndex = 0x3b; this.rbLegs7.TabStop = true; this.rbLegs7.UseVisualStyleBackColor = true; this.rbLegs7.CheckedChanged += new EventHandler(this.checkedChanged); this.rbLegs6.AutoSize = true; this.rbLegs6.Location = new Point(0xe8, 3); this.rbLegs6.Name = "rbLegs6"; this.rbLegs6.Size = new Size(14, 13); this.rbLegs6.TabIndex = 0x3a; this.rbLegs6.TabStop = true; this.rbLegs6.UseVisualStyleBackColor = true; this.rbLegs6.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlLegsCSD.ClickThru = false; this.pnlLegsCSD.Location = new Point(0x174, 0); this.pnlLegsCSD.Name = "pnlLegsCSD"; this.pnlLegsCSD.NoDrawBackground = false; this.pnlLegsCSD.PanelActive = true; this.pnlLegsCSD.SelfDrawBackground = false; this.pnlLegsCSD.Size = new Size(0x151, 0x16); this.pnlLegsCSD.StoredGraphics = null; this.pnlLegsCSD.TabIndex = 0x39; this.rbLegs5.AutoSize = true; this.rbLegs5.Location = new Point(0xd4, 3); this.rbLegs5.Name = "rbLegs5"; this.rbLegs5.Size = new Size(14, 13); this.rbLegs5.TabIndex = 12; this.rbLegs5.TabStop = true; this.rbLegs5.UseVisualStyleBackColor = true; this.rbLegs5.CheckedChanged += new EventHandler(this.checkedChanged); this.rbLegs4.AutoSize = true; this.rbLegs4.Location = new Point(0xc0, 3); this.rbLegs4.Name = "rbLegs4"; this.rbLegs4.Size = new Size(14, 13); this.rbLegs4.TabIndex = 11; this.rbLegs4.TabStop = true; this.rbLegs4.UseVisualStyleBackColor = true; this.rbLegs4.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlFeet.BackColor = Color.Transparent; this.pnlFeet.Controls.Add(this.rbFeet6); this.pnlFeet.Controls.Add(this.rbFeet5); this.pnlFeet.Controls.Add(this.pnlFeetCSD); this.pnlFeet.Controls.Add(this.rbFeet4); this.pnlFeet.Controls.Add(this.rbFeetOff); this.pnlFeet.Controls.Add(this.rbFeet1); this.pnlFeet.Controls.Add(this.label5); this.pnlFeet.Controls.Add(this.rbFeet2); this.pnlFeet.Controls.Add(this.rbFeet3); this.pnlFeet.Location = new Point(0xf8, 0x1c0); this.pnlFeet.Name = "pnlFeet"; this.pnlFeet.Size = new Size(0x2c5, 0x16); this.pnlFeet.TabIndex = 0x39; this.rbFeet6.AutoSize = true; this.rbFeet6.Location = new Point(0xe8, 3); this.rbFeet6.Name = "rbFeet6"; this.rbFeet6.Size = new Size(14, 13); this.rbFeet6.TabIndex = 60; this.rbFeet6.TabStop = true; this.rbFeet6.UseVisualStyleBackColor = true; this.rbFeet6.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFeet5.AutoSize = true; this.rbFeet5.Location = new Point(0xd4, 3); this.rbFeet5.Name = "rbFeet5"; this.rbFeet5.Size = new Size(14, 13); this.rbFeet5.TabIndex = 0x3b; this.rbFeet5.TabStop = true; this.rbFeet5.UseVisualStyleBackColor = true; this.rbFeet5.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlFeetCSD.ClickThru = false; this.pnlFeetCSD.Location = new Point(0x174, 0); this.pnlFeetCSD.Name = "pnlFeetCSD"; this.pnlFeetCSD.NoDrawBackground = false; this.pnlFeetCSD.PanelActive = true; this.pnlFeetCSD.SelfDrawBackground = false; this.pnlFeetCSD.Size = new Size(0x151, 0x16); this.pnlFeetCSD.StoredGraphics = null; this.pnlFeetCSD.TabIndex = 0x3a; this.rbFeet4.AutoSize = true; this.rbFeet4.Location = new Point(0xc0, 3); this.rbFeet4.Name = "rbFeet4"; this.rbFeet4.Size = new Size(14, 13); this.rbFeet4.TabIndex = 0x31; this.rbFeet4.TabStop = true; this.rbFeet4.UseVisualStyleBackColor = true; this.rbFeet4.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFeetOff.AutoSize = true; this.rbFeetOff.Location = new Point(0x5f, 3); this.rbFeetOff.Name = "rbFeetOff"; this.rbFeetOff.Size = new Size(0x20, 0x11); this.rbFeetOff.TabIndex = 0x30; this.rbFeetOff.TabStop = true; this.rbFeetOff.Text = "X"; this.rbFeetOff.UseVisualStyleBackColor = true; this.pnlTorso.BackColor = Color.Transparent; this.pnlTorso.Controls.Add(this.pnlTorsoCSD); this.pnlTorso.Controls.Add(this.rbTorso1); this.pnlTorso.Controls.Add(this.label6); this.pnlTorso.Controls.Add(this.rbTorso2); this.pnlTorso.Controls.Add(this.rbTorso3); this.pnlTorso.Controls.Add(this.rbTorso4); this.pnlTorso.Location = new Point(0xf8, 0x111); this.pnlTorso.Name = "pnlTorso"; this.pnlTorso.Size = new Size(0x2c5, 0x16); this.pnlTorso.TabIndex = 0x39; this.pnlTorsoCSD.ClickThru = false; this.pnlTorsoCSD.Location = new Point(0x174, 0); this.pnlTorsoCSD.Name = "pnlTorsoCSD"; this.pnlTorsoCSD.NoDrawBackground = false; this.pnlTorsoCSD.PanelActive = true; this.pnlTorsoCSD.SelfDrawBackground = false; this.pnlTorsoCSD.Size = new Size(0x151, 0x16); this.pnlTorsoCSD.StoredGraphics = null; this.pnlTorsoCSD.TabIndex = 0x39; this.pnlTabard.BackColor = Color.Transparent; this.pnlTabard.Controls.Add(this.rbTabard8); this.pnlTabard.Controls.Add(this.rbTabard7); this.pnlTabard.Controls.Add(this.rbTabard6); this.pnlTabard.Controls.Add(this.rbTabard5); this.pnlTabard.Controls.Add(this.pnlTabardCSD); this.pnlTabard.Controls.Add(this.rbTabard4); this.pnlTabard.Controls.Add(this.rbTabard3); this.pnlTabard.Controls.Add(this.rbTabardOff); this.pnlTabard.Controls.Add(this.rbTabard2); this.pnlTabard.Controls.Add(this.rbTabard1); this.pnlTabard.Controls.Add(this.label7); this.pnlTabard.Location = new Point(0xf8, 0xcb); this.pnlTabard.Name = "pnlTabard"; this.pnlTabard.Size = new Size(0x2c5, 0x16); this.pnlTabard.TabIndex = 0x39; this.rbTabard8.AutoSize = true; this.rbTabard8.Location = new Point(0x110, 3); this.rbTabard8.Name = "rbTabard8"; this.rbTabard8.Size = new Size(14, 13); this.rbTabard8.TabIndex = 0x3b; this.rbTabard8.TabStop = true; this.rbTabard8.UseVisualStyleBackColor = true; this.rbTabard8.CheckedChanged += new EventHandler(this.checkedChanged); this.rbTabard7.AutoSize = true; this.rbTabard7.Location = new Point(0xfc, 3); this.rbTabard7.Name = "rbTabard7"; this.rbTabard7.Size = new Size(14, 13); this.rbTabard7.TabIndex = 0x3a; this.rbTabard7.TabStop = true; this.rbTabard7.UseVisualStyleBackColor = true; this.rbTabard7.CheckedChanged += new EventHandler(this.checkedChanged); this.rbTabard6.AutoSize = true; this.rbTabard6.Location = new Point(0xe8, 3); this.rbTabard6.Name = "rbTabard6"; this.rbTabard6.Size = new Size(14, 13); this.rbTabard6.TabIndex = 0x39; this.rbTabard6.TabStop = true; this.rbTabard6.UseVisualStyleBackColor = true; this.rbTabard6.CheckedChanged += new EventHandler(this.checkedChanged); this.rbTabard5.AutoSize = true; this.rbTabard5.Location = new Point(0xd4, 3); this.rbTabard5.Name = "rbTabard5"; this.rbTabard5.Size = new Size(14, 13); this.rbTabard5.TabIndex = 0x38; this.rbTabard5.TabStop = true; this.rbTabard5.UseVisualStyleBackColor = true; this.rbTabard5.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlTabardCSD.ClickThru = false; this.pnlTabardCSD.Location = new Point(0x174, 0); this.pnlTabardCSD.Name = "pnlTabardCSD"; this.pnlTabardCSD.NoDrawBackground = false; this.pnlTabardCSD.PanelActive = true; this.pnlTabardCSD.SelfDrawBackground = false; this.pnlTabardCSD.Size = new Size(0x151, 0x16); this.pnlTabardCSD.StoredGraphics = null; this.pnlTabardCSD.TabIndex = 0x37; this.rbTabard4.AutoSize = true; this.rbTabard4.Location = new Point(0xc0, 3); this.rbTabard4.Name = "rbTabard4"; this.rbTabard4.Size = new Size(14, 13); this.rbTabard4.TabIndex = 0x35; this.rbTabard4.TabStop = true; this.rbTabard4.UseVisualStyleBackColor = true; this.rbTabard4.CheckedChanged += new EventHandler(this.checkedChanged); this.rbTabard3.AutoSize = true; this.rbTabard3.Location = new Point(0xac, 3); this.rbTabard3.Name = "rbTabard3"; this.rbTabard3.Size = new Size(14, 13); this.rbTabard3.TabIndex = 0x34; this.rbTabard3.TabStop = true; this.rbTabard3.UseVisualStyleBackColor = true; this.rbTabard3.CheckedChanged += new EventHandler(this.checkedChanged); this.rbTabardOff.AutoSize = true; this.rbTabardOff.Location = new Point(0x5f, 3); this.rbTabardOff.Name = "rbTabardOff"; this.rbTabardOff.Size = new Size(0x20, 0x11); this.rbTabardOff.TabIndex = 0x33; this.rbTabardOff.TabStop = true; this.rbTabardOff.Text = "X"; this.rbTabardOff.UseVisualStyleBackColor = true; this.pnlArms.BackColor = Color.Transparent; this.pnlArms.Controls.Add(this.pnlArmsCSD); this.pnlArms.Controls.Add(this.rbArms4); this.pnlArms.Controls.Add(this.rbArmsOff); this.pnlArms.Controls.Add(this.rbArms1); this.pnlArms.Controls.Add(this.label9); this.pnlArms.Controls.Add(this.rbArms2); this.pnlArms.Controls.Add(this.rbArms3); this.pnlArms.Location = new Point(0xf8, 0x134); this.pnlArms.Name = "pnlArms"; this.pnlArms.Size = new Size(0x2c5, 0x16); this.pnlArms.TabIndex = 0x39; this.pnlArmsCSD.ClickThru = false; this.pnlArmsCSD.Location = new Point(0x174, 0); this.pnlArmsCSD.Name = "pnlArmsCSD"; this.pnlArmsCSD.NoDrawBackground = false; this.pnlArmsCSD.PanelActive = true; this.pnlArmsCSD.SelfDrawBackground = false; this.pnlArmsCSD.Size = new Size(0x151, 0x16); this.pnlArmsCSD.StoredGraphics = null; this.pnlArmsCSD.TabIndex = 0x3a; this.rbArms4.AutoSize = true; this.rbArms4.Location = new Point(0xc0, 3); this.rbArms4.Name = "rbArms4"; this.rbArms4.Size = new Size(14, 13); this.rbArms4.TabIndex = 0x31; this.rbArms4.TabStop = true; this.rbArms4.UseVisualStyleBackColor = true; this.rbArms4.CheckedChanged += new EventHandler(this.checkedChanged); this.rbArmsOff.AutoSize = true; this.rbArmsOff.Location = new Point(0x5f, 3); this.rbArmsOff.Name = "rbArmsOff"; this.rbArmsOff.Size = new Size(0x20, 0x11); this.rbArmsOff.TabIndex = 0x30; this.rbArmsOff.TabStop = true; this.rbArmsOff.Text = "X"; this.rbArmsOff.UseVisualStyleBackColor = true; this.pnlHands.BackColor = Color.Transparent; this.pnlHands.Controls.Add(this.pnlHandsCSD); this.pnlHands.Controls.Add(this.rbHands4); this.pnlHands.Controls.Add(this.rbHandsOff); this.pnlHands.Controls.Add(this.rbHands1); this.pnlHands.Controls.Add(this.label8); this.pnlHands.Controls.Add(this.rbHands2); this.pnlHands.Controls.Add(this.rbHands3); this.pnlHands.Location = new Point(0xf8, 0x157); this.pnlHands.Name = "pnlHands"; this.pnlHands.Size = new Size(0x2c5, 0x16); this.pnlHands.TabIndex = 0x39; this.pnlHandsCSD.ClickThru = false; this.pnlHandsCSD.Location = new Point(0x174, 0); this.pnlHandsCSD.Name = "pnlHandsCSD"; this.pnlHandsCSD.NoDrawBackground = false; this.pnlHandsCSD.PanelActive = true; this.pnlHandsCSD.SelfDrawBackground = false; this.pnlHandsCSD.Size = new Size(0x151, 0x16); this.pnlHandsCSD.StoredGraphics = null; this.pnlHandsCSD.TabIndex = 0x35; this.rbHands4.AutoSize = true; this.rbHands4.Location = new Point(0xc0, 3); this.rbHands4.Name = "rbHands4"; this.rbHands4.Size = new Size(14, 13); this.rbHands4.TabIndex = 0x30; this.rbHands4.TabStop = true; this.rbHands4.UseVisualStyleBackColor = true; this.rbHands4.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHandsOff.AutoSize = true; this.rbHandsOff.Location = new Point(0x5f, 3); this.rbHandsOff.Name = "rbHandsOff"; this.rbHandsOff.Size = new Size(0x20, 0x11); this.rbHandsOff.TabIndex = 0x2f; this.rbHandsOff.TabStop = true; this.rbHandsOff.Text = "X"; this.rbHandsOff.UseVisualStyleBackColor = true; this.pnlShoulders.BackColor = Color.Transparent; this.pnlShoulders.Controls.Add(this.pnlShouldersCSD); this.pnlShoulders.Controls.Add(this.rbShoulderOff); this.pnlShoulders.Controls.Add(this.label10); this.pnlShoulders.Controls.Add(this.rbShoulders1); this.pnlShoulders.Controls.Add(this.rbShoulders2); this.pnlShoulders.Controls.Add(this.rbShoulders3); this.pnlShoulders.Controls.Add(this.rbShoulders4); this.pnlShoulders.Location = new Point(0xf8, 0xa8); this.pnlShoulders.Name = "pnlShoulders"; this.pnlShoulders.Size = new Size(0x2c5, 0x16); this.pnlShoulders.TabIndex = 0x39; this.pnlShouldersCSD.ClickThru = false; this.pnlShouldersCSD.Location = new Point(0x174, 0); this.pnlShouldersCSD.Name = "pnlShouldersCSD"; this.pnlShouldersCSD.NoDrawBackground = false; this.pnlShouldersCSD.PanelActive = true; this.pnlShouldersCSD.SelfDrawBackground = false; this.pnlShouldersCSD.Size = new Size(0x151, 0x16); this.pnlShouldersCSD.StoredGraphics = null; this.pnlShouldersCSD.TabIndex = 0x36; this.rbShoulderOff.AutoSize = true; this.rbShoulderOff.Location = new Point(0x5f, 3); this.rbShoulderOff.Name = "rbShoulderOff"; this.rbShoulderOff.Size = new Size(0x20, 0x11); this.rbShoulderOff.TabIndex = 0x2f; this.rbShoulderOff.TabStop = true; this.rbShoulderOff.Text = "X"; this.rbShoulderOff.UseVisualStyleBackColor = true; this.pnlFace.BackColor = Color.Transparent; this.pnlFace.Controls.Add(this.rbFace7); this.pnlFace.Controls.Add(this.rbFace6); this.pnlFace.Controls.Add(this.rbFace5); this.pnlFace.Controls.Add(this.pnlFaceCSD); this.pnlFace.Controls.Add(this.rbFace4); this.pnlFace.Controls.Add(this.rbFace3); this.pnlFace.Controls.Add(this.rbFace2); this.pnlFace.Controls.Add(this.rbFace1); this.pnlFace.Controls.Add(this.label11); this.pnlFace.Location = new Point(0xf8, 0x85); this.pnlFace.Name = "pnlFace"; this.pnlFace.Size = new Size(0x2c5, 0x16); this.pnlFace.TabIndex = 0x39; this.rbFace7.AutoSize = true; this.rbFace7.Location = new Point(0xfc, 3); this.rbFace7.Name = "rbFace7"; this.rbFace7.Size = new Size(14, 13); this.rbFace7.TabIndex = 0x38; this.rbFace7.TabStop = true; this.rbFace7.UseVisualStyleBackColor = true; this.rbFace7.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFace6.AutoSize = true; this.rbFace6.Location = new Point(0xe8, 3); this.rbFace6.Name = "rbFace6"; this.rbFace6.Size = new Size(14, 13); this.rbFace6.TabIndex = 0x37; this.rbFace6.TabStop = true; this.rbFace6.UseVisualStyleBackColor = true; this.rbFace6.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFace5.AutoSize = true; this.rbFace5.Location = new Point(0xd4, 3); this.rbFace5.Name = "rbFace5"; this.rbFace5.Size = new Size(14, 13); this.rbFace5.TabIndex = 0x36; this.rbFace5.TabStop = true; this.rbFace5.UseVisualStyleBackColor = true; this.rbFace5.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlFaceCSD.ClickThru = false; this.pnlFaceCSD.Location = new Point(0x174, 0); this.pnlFaceCSD.Name = "pnlFaceCSD"; this.pnlFaceCSD.NoDrawBackground = false; this.pnlFaceCSD.PanelActive = true; this.pnlFaceCSD.SelfDrawBackground = false; this.pnlFaceCSD.Size = new Size(0x151, 0x16); this.pnlFaceCSD.StoredGraphics = null; this.pnlFaceCSD.TabIndex = 0x35; this.rbFace4.AutoSize = true; this.rbFace4.Location = new Point(0xc0, 3); this.rbFace4.Name = "rbFace4"; this.rbFace4.Size = new Size(14, 13); this.rbFace4.TabIndex = 0x2a; this.rbFace4.TabStop = true; this.rbFace4.UseVisualStyleBackColor = true; this.rbFace4.CheckedChanged += new EventHandler(this.checkedChanged); this.rbFace3.AutoSize = true; this.rbFace3.Location = new Point(0xac, 3); this.rbFace3.Name = "rbFace3"; this.rbFace3.Size = new Size(14, 13); this.rbFace3.TabIndex = 0x29; this.rbFace3.TabStop = true; this.rbFace3.UseVisualStyleBackColor = true; this.rbFace3.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlHair.BackColor = Color.Transparent; this.pnlHair.Controls.Add(this.rbHair5); this.pnlHair.Controls.Add(this.rbHair6); this.pnlHair.Controls.Add(this.pnlHairCSD); this.pnlHair.Controls.Add(this.rbHairOff); this.pnlHair.Controls.Add(this.rbHair1); this.pnlHair.Controls.Add(this.label12); this.pnlHair.Controls.Add(this.rbHair2); this.pnlHair.Controls.Add(this.rbHair3); this.pnlHair.Controls.Add(this.rbHair4); this.pnlHair.Location = new Point(0xf8, 0x62); this.pnlHair.Name = "pnlHair"; this.pnlHair.Size = new Size(0x2c5, 0x16); this.pnlHair.TabIndex = 0x39; this.rbHair5.AutoSize = true; this.rbHair5.Location = new Point(0xd4, 3); this.rbHair5.Name = "rbHair5"; this.rbHair5.Size = new Size(14, 13); this.rbHair5.TabIndex = 0x36; this.rbHair5.TabStop = true; this.rbHair5.UseVisualStyleBackColor = true; this.rbHair5.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHair6.AutoSize = true; this.rbHair6.Location = new Point(0xe8, 3); this.rbHair6.Name = "rbHair6"; this.rbHair6.Size = new Size(14, 13); this.rbHair6.TabIndex = 0x37; this.rbHair6.TabStop = true; this.rbHair6.UseVisualStyleBackColor = true; this.rbHair6.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlHairCSD.ClickThru = false; this.pnlHairCSD.Location = new Point(0x174, 0); this.pnlHairCSD.Name = "pnlHairCSD"; this.pnlHairCSD.NoDrawBackground = false; this.pnlHairCSD.PanelActive = true; this.pnlHairCSD.SelfDrawBackground = false; this.pnlHairCSD.Size = new Size(0x151, 0x16); this.pnlHairCSD.StoredGraphics = null; this.pnlHairCSD.TabIndex = 0x35; this.rbHairOff.AutoSize = true; this.rbHairOff.Location = new Point(0x5f, 3); this.rbHairOff.Name = "rbHairOff"; this.rbHairOff.Size = new Size(0x20, 0x11); this.rbHairOff.TabIndex = 0x33; this.rbHairOff.TabStop = true; this.rbHairOff.Text = "X"; this.rbHairOff.UseVisualStyleBackColor = true; this.pnlHead.BackColor = Color.Transparent; this.pnlHead.Controls.Add(this.rbHead12); this.pnlHead.Controls.Add(this.rbHead9); this.pnlHead.Controls.Add(this.rbHead10); this.pnlHead.Controls.Add(this.rbHead11); this.pnlHead.Controls.Add(this.rbHead8); this.pnlHead.Controls.Add(this.rbHead5); this.pnlHead.Controls.Add(this.rbHead6); this.pnlHead.Controls.Add(this.rbHead7); this.pnlHead.Controls.Add(this.pnlHeadCSD); this.pnlHead.Controls.Add(this.rbHead4); this.pnlHead.Controls.Add(this.rbHeadOff); this.pnlHead.Controls.Add(this.label13); this.pnlHead.Controls.Add(this.rbHead1); this.pnlHead.Controls.Add(this.rbHead2); this.pnlHead.Controls.Add(this.rbHead3); this.pnlHead.Location = new Point(0xf8, 0x3f); this.pnlHead.Name = "pnlHead"; this.pnlHead.Size = new Size(0x2c5, 0x16); this.pnlHead.TabIndex = 0x39; this.rbHead12.AutoSize = true; this.rbHead12.Location = new Point(0x160, 3); this.rbHead12.Name = "rbHead12"; this.rbHead12.Size = new Size(14, 13); this.rbHead12.TabIndex = 60; this.rbHead12.TabStop = true; this.rbHead12.UseVisualStyleBackColor = true; this.rbHead12.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead9.AutoSize = true; this.rbHead9.Location = new Point(0x124, 3); this.rbHead9.Name = "rbHead9"; this.rbHead9.Size = new Size(14, 13); this.rbHead9.TabIndex = 0x39; this.rbHead9.TabStop = true; this.rbHead9.UseVisualStyleBackColor = true; this.rbHead9.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead10.AutoSize = true; this.rbHead10.Location = new Point(0x138, 3); this.rbHead10.Name = "rbHead10"; this.rbHead10.Size = new Size(14, 13); this.rbHead10.TabIndex = 0x3a; this.rbHead10.TabStop = true; this.rbHead10.UseVisualStyleBackColor = true; this.rbHead10.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead11.AutoSize = true; this.rbHead11.Location = new Point(0x14c, 3); this.rbHead11.Name = "rbHead11"; this.rbHead11.Size = new Size(14, 13); this.rbHead11.TabIndex = 0x3b; this.rbHead11.TabStop = true; this.rbHead11.UseVisualStyleBackColor = true; this.rbHead11.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead8.AutoSize = true; this.rbHead8.Location = new Point(0x110, 3); this.rbHead8.Name = "rbHead8"; this.rbHead8.Size = new Size(14, 13); this.rbHead8.TabIndex = 0x38; this.rbHead8.TabStop = true; this.rbHead8.UseVisualStyleBackColor = true; this.rbHead8.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead5.AutoSize = true; this.rbHead5.Location = new Point(0xd4, 3); this.rbHead5.Name = "rbHead5"; this.rbHead5.Size = new Size(14, 13); this.rbHead5.TabIndex = 0x35; this.rbHead5.TabStop = true; this.rbHead5.UseVisualStyleBackColor = true; this.rbHead5.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead6.AutoSize = true; this.rbHead6.Location = new Point(0xe8, 3); this.rbHead6.Name = "rbHead6"; this.rbHead6.Size = new Size(14, 13); this.rbHead6.TabIndex = 0x36; this.rbHead6.TabStop = true; this.rbHead6.UseVisualStyleBackColor = true; this.rbHead6.CheckedChanged += new EventHandler(this.checkedChanged); this.rbHead7.AutoSize = true; this.rbHead7.Location = new Point(0xfc, 3); this.rbHead7.Name = "rbHead7"; this.rbHead7.Size = new Size(14, 13); this.rbHead7.TabIndex = 0x37; this.rbHead7.TabStop = true; this.rbHead7.UseVisualStyleBackColor = true; this.rbHead7.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlHeadCSD.ClickThru = false; this.pnlHeadCSD.Location = new Point(0x174, 0); this.pnlHeadCSD.Name = "pnlHeadCSD"; this.pnlHeadCSD.NoDrawBackground = false; this.pnlHeadCSD.PanelActive = true; this.pnlHeadCSD.SelfDrawBackground = false; this.pnlHeadCSD.Size = new Size(0x151, 0x16); this.pnlHeadCSD.StoredGraphics = null; this.pnlHeadCSD.TabIndex = 0x34; this.rbHead4.AutoSize = true; this.rbHead4.Location = new Point(0xc0, 3); this.rbHead4.Name = "rbHead4"; this.rbHead4.Size = new Size(14, 13); this.rbHead4.TabIndex = 0x33; this.rbHead4.TabStop = true; this.rbHead4.UseVisualStyleBackColor = true; this.rbHead4.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlWeapon.BackColor = Color.Transparent; this.pnlWeapon.Controls.Add(this.rbWeapon5); this.pnlWeapon.Controls.Add(this.rbWeapon6); this.pnlWeapon.Controls.Add(this.pnlWeaponCSD); this.pnlWeapon.Controls.Add(this.rbWeapon4); this.pnlWeapon.Controls.Add(this.rbWeaponOff); this.pnlWeapon.Controls.Add(this.label14); this.pnlWeapon.Controls.Add(this.rbWeapon1); this.pnlWeapon.Controls.Add(this.rbWeapon2); this.pnlWeapon.Controls.Add(this.rbWeapon3); this.pnlWeapon.Location = new Point(0xf8, 0x17a); this.pnlWeapon.Name = "pnlWeapon"; this.pnlWeapon.Size = new Size(0x2c5, 0x16); this.pnlWeapon.TabIndex = 0x39; this.rbWeapon5.AutoSize = true; this.rbWeapon5.Location = new Point(0xd4, 3); this.rbWeapon5.Name = "rbWeapon5"; this.rbWeapon5.Size = new Size(14, 13); this.rbWeapon5.TabIndex = 0x3a; this.rbWeapon5.TabStop = true; this.rbWeapon5.UseVisualStyleBackColor = true; this.rbWeapon5.CheckedChanged += new EventHandler(this.checkedChanged); this.rbWeapon6.AutoSize = true; this.rbWeapon6.Location = new Point(0xe8, 3); this.rbWeapon6.Name = "rbWeapon6"; this.rbWeapon6.Size = new Size(14, 13); this.rbWeapon6.TabIndex = 0x3b; this.rbWeapon6.TabStop = true; this.rbWeapon6.UseVisualStyleBackColor = true; this.rbWeapon6.CheckedChanged += new EventHandler(this.checkedChanged); this.pnlWeaponCSD.ClickThru = false; this.pnlWeaponCSD.Location = new Point(0x174, 0); this.pnlWeaponCSD.Name = "pnlWeaponCSD"; this.pnlWeaponCSD.NoDrawBackground = false; this.pnlWeaponCSD.PanelActive = true; this.pnlWeaponCSD.SelfDrawBackground = false; this.pnlWeaponCSD.Size = new Size(0x151, 0x16); this.pnlWeaponCSD.StoredGraphics = null; this.pnlWeaponCSD.TabIndex = 0x38; this.rbWeapon4.AutoSize = true; this.rbWeapon4.Location = new Point(0xc0, 3); this.rbWeapon4.Name = "rbWeapon4"; this.rbWeapon4.Size = new Size(14, 13); this.rbWeapon4.TabIndex = 0x2e; this.rbWeapon4.TabStop = true; this.rbWeapon4.UseVisualStyleBackColor = true; this.btnRandom.BackgroundImageLayout = ImageLayout.None; this.btnRandom.BorderColor = Color.FromArgb(0, 0, 0x8b); this.btnRandom.BorderDrawing = true; this.btnRandom.FocusRectangleEnabled = false; this.btnRandom.ForeColor = SystemColors.ControlText; this.btnRandom.Image = null; this.btnRandom.ImageBorderColor = Color.FromArgb(210, 0x69, 30); this.btnRandom.ImageBorderEnabled = false; this.btnRandom.ImageDropShadow = false; this.btnRandom.ImageFocused = null; this.btnRandom.ImageInactive = null; this.btnRandom.ImageMouseOver = null; this.btnRandom.ImageNormal = null; this.btnRandom.ImagePressed = null; this.btnRandom.InnerBorderColor = Color.FromArgb(0xd3, 0xd3, 0xd3); this.btnRandom.InnerBorderColor_Focus = Color.FromArgb(0xad, 0xd8, 230); this.btnRandom.InnerBorderColor_MouseOver = Color.FromArgb(0xff, 0xd7, 0); this.btnRandom.Location = new Point(0xf6, 0x205); this.btnRandom.Name = "btnRandom"; this.btnRandom.OffsetPressedContent = true; this.btnRandom.Padding2 = 5; this.btnRandom.Size = new Size(0x5b, 0x2e); this.btnRandom.StretchImage = false; this.btnRandom.TabIndex = 0x3d; this.btnRandom.TextDropShadow = false; this.btnRandom.UseVisualStyleBackColor = true; this.btnRandom.Click += new EventHandler(this.btnRandom_Click); this.btnLastSaved.BorderColor = Color.FromArgb(0, 0, 0x8b); this.btnLastSaved.BorderDrawing = true; this.btnLastSaved.FocusRectangleEnabled = false; this.btnLastSaved.Image = null; this.btnLastSaved.ImageBorderColor = Color.FromArgb(210, 0x69, 30); this.btnLastSaved.ImageBorderEnabled = true; this.btnLastSaved.ImageDropShadow = true; this.btnLastSaved.ImageFocused = null; this.btnLastSaved.ImageInactive = null; this.btnLastSaved.ImageMouseOver = null; this.btnLastSaved.ImageNormal = null; this.btnLastSaved.ImagePressed = null; this.btnLastSaved.InnerBorderColor = Color.FromArgb(0xd3, 0xd3, 0xd3); this.btnLastSaved.InnerBorderColor_Focus = Color.FromArgb(0xad, 0xd8, 230); this.btnLastSaved.InnerBorderColor_MouseOver = Color.FromArgb(0xff, 0xd7, 0); this.btnLastSaved.Location = new Point(0x227, 0x205); this.btnLastSaved.Name = "btnLastSaved"; this.btnLastSaved.OffsetPressedContent = true; this.btnLastSaved.Padding2 = 5; this.btnLastSaved.Size = new Size(200, 0x2e); this.btnLastSaved.StretchImage = false; this.btnLastSaved.TabIndex = 60; this.btnLastSaved.Text = "Reset To Last Saved"; this.btnLastSaved.TextDropShadow = false; this.btnLastSaved.UseVisualStyleBackColor = true; this.btnLastSaved.Click += new EventHandler(this.btnLastSaved_Click); this.btnDefault.BorderColor = Color.FromArgb(0, 0, 0x8b); this.btnDefault.BorderDrawing = true; this.btnDefault.FocusRectangleEnabled = false; this.btnDefault.Image = null; this.btnDefault.ImageBorderColor = Color.FromArgb(210, 0x69, 30); this.btnDefault.ImageBorderEnabled = true; this.btnDefault.ImageDropShadow = true; this.btnDefault.ImageFocused = null; this.btnDefault.ImageInactive = null; this.btnDefault.ImageMouseOver = null; this.btnDefault.ImageNormal = null; this.btnDefault.ImagePressed = null; this.btnDefault.InnerBorderColor = Color.FromArgb(0xd3, 0xd3, 0xd3); this.btnDefault.InnerBorderColor_Focus = Color.FromArgb(0xad, 0xd8, 230); this.btnDefault.InnerBorderColor_MouseOver = Color.FromArgb(0xff, 0xd7, 0); this.btnDefault.Location = new Point(0x157, 0x205); this.btnDefault.Name = "btnDefault"; this.btnDefault.OffsetPressedContent = true; this.btnDefault.Padding2 = 5; this.btnDefault.Size = new Size(200, 0x2e); this.btnDefault.StretchImage = false; this.btnDefault.TabIndex = 0x3b; this.btnDefault.Text = "Reset To Default"; this.btnDefault.TextDropShadow = false; this.btnDefault.UseVisualStyleBackColor = true; this.btnDefault.Click += new EventHandler(this.btnDefault_Click); this.btnUploadAvatar.BorderColor = Color.FromArgb(0, 0, 0x8b); this.btnUploadAvatar.BorderDrawing = true; this.btnUploadAvatar.FocusRectangleEnabled = false; this.btnUploadAvatar.Image = null; this.btnUploadAvatar.ImageBorderColor = Color.FromArgb(210, 0x69, 30); this.btnUploadAvatar.ImageBorderEnabled = true; this.btnUploadAvatar.ImageDropShadow = true; this.btnUploadAvatar.ImageFocused = null; this.btnUploadAvatar.ImageInactive = null; this.btnUploadAvatar.ImageMouseOver = null; this.btnUploadAvatar.ImageNormal = null; this.btnUploadAvatar.ImagePressed = null; this.btnUploadAvatar.InnerBorderColor = Color.FromArgb(0xd3, 0xd3, 0xd3); this.btnUploadAvatar.InnerBorderColor_Focus = Color.FromArgb(0xad, 0xd8, 230); this.btnUploadAvatar.InnerBorderColor_MouseOver = Color.FromArgb(0xff, 0xd7, 0); this.btnUploadAvatar.Location = new Point(0x2f5, 0x205); this.btnUploadAvatar.Name = "btnUploadAvatar"; this.btnUploadAvatar.OffsetPressedContent = true; this.btnUploadAvatar.Padding2 = 5; this.btnUploadAvatar.Size = new Size(200, 0x2e); this.btnUploadAvatar.StretchImage = false; this.btnUploadAvatar.TabIndex = 0x3a; this.btnUploadAvatar.Text = "Upload Avatar"; this.btnUploadAvatar.TextDropShadow = false; this.btnUploadAvatar.UseVisualStyleBackColor = true; this.btnUploadAvatar.Click += new EventHandler(this.btnUploadAvatar_Click); this.imgAvatar.BackColor = Color.Transparent; this.imgAvatar.Location = new Point(0x30, 0x1c); this.imgAvatar.Name = "imgAvatar"; this.imgAvatar.Size = new Size(0x9a, 500); this.imgAvatar.TabIndex = 0; base.AutoScaleMode = AutoScaleMode.None; this.BackColor = Color.FromArgb(0x86, 0x99, 0xa5); this.BackgroundImageLayout = ImageLayout.Stretch; base.Controls.Add(this.btnRandom); base.Controls.Add(this.btnLastSaved); base.Controls.Add(this.btnDefault); base.Controls.Add(this.btnUploadAvatar); base.Controls.Add(this.pnlWeapon); base.Controls.Add(this.pnlHead); base.Controls.Add(this.pnlHair); base.Controls.Add(this.pnlFace); base.Controls.Add(this.pnlShoulders); base.Controls.Add(this.pnlHands); base.Controls.Add(this.pnlArms); base.Controls.Add(this.pnlTabard); base.Controls.Add(this.pnlTorso); base.Controls.Add(this.pnlFeet); base.Controls.Add(this.pnlLegs); base.Controls.Add(this.pnlBody); base.Controls.Add(this.pnlFloor); base.Controls.Add(this.panel1); base.Controls.Add(this.imgAvatar); this.MaximumSize = new Size(0x3e0, 0x236); this.MinimumSize = new Size(0x3e0, 0x236); base.Name = "AvatarEditorPanel"; base.Size = new Size(0x3e0, 0x236); base.Load += new EventHandler(this.AvatarEditorPanel_Load); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.pnlFloor.ResumeLayout(false); this.pnlFloor.PerformLayout(); this.pnlBody.ResumeLayout(false); this.pnlBody.PerformLayout(); this.pnlLegs.ResumeLayout(false); this.pnlLegs.PerformLayout(); this.pnlFeet.ResumeLayout(false); this.pnlFeet.PerformLayout(); this.pnlTorso.ResumeLayout(false); this.pnlTorso.PerformLayout(); this.pnlTabard.ResumeLayout(false); this.pnlTabard.PerformLayout(); this.pnlArms.ResumeLayout(false); this.pnlArms.PerformLayout(); this.pnlHands.ResumeLayout(false); this.pnlHands.PerformLayout(); this.pnlShoulders.ResumeLayout(false); this.pnlShoulders.PerformLayout(); this.pnlFace.ResumeLayout(false); this.pnlFace.PerformLayout(); this.pnlHair.ResumeLayout(false); this.pnlHair.PerformLayout(); this.pnlHead.ResumeLayout(false); this.pnlHead.PerformLayout(); this.pnlWeapon.ResumeLayout(false); this.pnlWeapon.PerformLayout(); base.ResumeLayout(false); }
public void init(CustomSelfDrawPanel.UICardPack pack, ConfirmOpenPackPanel.CardClickPlayDelegate callback) { this.confirmPanel.init(pack, callback); }
public static void addRewardIcons(CustomSelfDrawPanel.CSDControl parentControl, Point baseLocation, NewQuests.NewQuestDefinition def, int gloryMode) { if (def != null) { CustomSelfDrawPanel.CSDLabel control = null; if (gloryMode > 0) { control = new CustomSelfDrawPanel.CSDLabel { Color = ARGBColors.Black, Position = baseLocation, Size = new Size(110, GFXLibrary.quest_rewards[0].Height), Font = FontManager.GetFont("Arial", 11f, FontStyle.Bold), Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_LEFT }; parentControl.addControl(control); baseLocation.X += 100; } int num = 0; if ((def.reward_charges.Length > 0) && (gloryMode == 1)) { parentControl.addControl(createRewardIcon(9, -1, new Point(baseLocation.X, baseLocation.Y + 2), 0xc8c)); baseLocation.X += 60; num++; if (((def.getRewardGlory() > 0) && (gloryMode != 0)) && ((GameEngine.Instance.LocalWorldData.Alternate_Ruleset != 1) && (gloryMode > 0))) { CustomSelfDrawPanel.CSDLabel label2 = new CustomSelfDrawPanel.CSDLabel { Text = "+", Color = ARGBColors.Black, Position = new Point((baseLocation.X - 0x12) - 2, (baseLocation.Y + 12) - 2), Size = new Size(50, 30), Font = FontManager.GetFont("Arial", 14f, FontStyle.Bold), Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER }; parentControl.addControl(label2); baseLocation.X += 30; } } if (gloryMode >= 0) { if (def.reward_honour > 0) { parentControl.addControl(createRewardIcon(1, def.reward_honour, baseLocation, 0xc83)); baseLocation.X += 120; num++; } if (def.reward_gold > 0) { parentControl.addControl(createRewardIcon(2, def.reward_gold, baseLocation, 0xc84)); baseLocation.X += 120; num++; } if (def.reward_wood > 0) { parentControl.addControl(createRewardIcon(3, def.reward_wood, baseLocation, 0xc85)); baseLocation.X += 120; num++; } if (def.reward_stone > 0) { parentControl.addControl(createRewardIcon(4, def.reward_stone, baseLocation, 0xc86)); baseLocation.X += 120; num++; } if (def.reward_apples > 0) { parentControl.addControl(createRewardIcon(12, def.reward_apples, baseLocation, 0xc8e)); baseLocation.X += 120; num++; } if (def.reward_card_pack > 0) { parentControl.addControl(createRewardIcon(6, def.reward_card_pack, baseLocation, 0xc88)); baseLocation.X += 120; num++; } if (def.reward_2day_premium > 0) { parentControl.addControl(createRewardIcon(7, def.reward_2day_premium, baseLocation, 0xc89)); baseLocation.X += 120; num++; } if (def.reward_faithpoints > 0) { parentControl.addControl(createRewardIcon(8, def.reward_faithpoints, baseLocation, 0xc8a)); baseLocation.X += 120; num++; } if (def.reward_tickets > 0) { parentControl.addControl(createRewardIcon(10, def.reward_tickets, baseLocation, 0xc8d)); baseLocation.X += 120; num++; } } if (((def.getRewardGlory() > 0) && (gloryMode != 0)) && (GameEngine.Instance.LocalWorldData.Alternate_Ruleset != 1)) { if (gloryMode > 0) { CustomSelfDrawPanel.CSDLabel label3 = new CustomSelfDrawPanel.CSDLabel { Text = SK.Text("QUESTS_or", "Or"), Color = ARGBColors.Black, Position = new Point(baseLocation.X, baseLocation.Y + 12), Size = new Size(50, 30), Font = FontManager.GetFont("Arial", 10f, FontStyle.Bold), Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER }; parentControl.addControl(label3); baseLocation.X += 50; } parentControl.addControl(createRewardIcon(0, def.getRewardGlory(), baseLocation, 0xc8b)); baseLocation.X += 120; num++; } if (control != null) { if (num == 1) { control.Text = SK.Text("QUEST_Reward", "Reward"); } else { control.Text = SK.Text("QUEST_Rewards", "Rewards"); } } } }
public ReportBattleValuesPanel(CustomSelfDrawPanel parent, Size size) { this.m_parent = parent; this.Size = size; }
private int RefreshCards(CustomSelfDrawPanel.CSDImage content, List<CustomSelfDrawPanel.UICard> list, int width) { int[] numArray = null; if (GameEngine.Instance.World.lastUserCardSearchCriteria != null) { switch (GameEngine.Instance.World.lastUserCardSearchCriteria.newCardCategoryFilter) { case 0x1001: numArray = CardTypes.newCategories_ApplesOrder; break; case 0x1002: numArray = CardTypes.newCategories_CheeseOrder; break; case 0x1003: numArray = CardTypes.newCategories_MeatOrder; break; case 0x1004: numArray = CardTypes.newCategories_BreadOrder; break; case 0x1005: numArray = CardTypes.newCategories_VegOrder; break; case 0x1006: numArray = CardTypes.newCategories_FishOrder; break; case 0x1007: numArray = CardTypes.newCategories_AleOrder; break; case 0x2001: numArray = CardTypes.newCategories_WoodOrder; break; case 0x2002: numArray = CardTypes.newCategories_StoneOrder; break; case 0x2003: numArray = CardTypes.newCategories_IronOrder; break; case 0x2004: numArray = CardTypes.newCategories_PitchOrder; break; case 0x4001: numArray = CardTypes.newCategories_VenisonOrder; break; case 0x4002: numArray = CardTypes.newCategories_FurnitureOrder; break; case 0x4003: numArray = CardTypes.newCategories_MetalwareOrder; break; case 0x4004: numArray = CardTypes.newCategories_ClothesOrder; break; case 0x4005: numArray = CardTypes.newCategories_WineOrder; break; case 0x4006: numArray = CardTypes.newCategories_SaltOrder; break; case 0x4007: numArray = CardTypes.newCategories_SpicesOrder; break; case 0x4008: numArray = CardTypes.newCategories_SilkOrder; break; case 0x8001: numArray = CardTypes.newCategories_BowsOrder; break; case 0x8002: numArray = CardTypes.newCategories_PikesOrder; break; case 0x8003: numArray = CardTypes.newCategories_ArmourOrder; break; case 0x8004: numArray = CardTypes.newCategories_SwordsOrder; break; case 0x8005: numArray = CardTypes.newCategories_CatapultsOrder; break; case 0x10001: numArray = CardTypes.newCategories_CastleConOrder; break; case 0x10002: numArray = CardTypes.newCategories_DefencesOrder; break; case 0x10003: numArray = CardTypes.newCategories_WallsOrder; break; case 0x10004: numArray = CardTypes.newCategories_KnightsOrder; break; case 0x20001: numArray = CardTypes.newCategories_ScoutingOrder; break; case 0x20002: numArray = CardTypes.newCategories_SpeedOrder; break; case 0x20003: numArray = CardTypes.newCategories_RecruitmentOrder; break; case 0x20004: numArray = CardTypes.newCategories_TroopsOrder; break; case 0x20005: numArray = CardTypes.newCategories_DiplomacyOrder; break; case 0x40001: numArray = CardTypes.newCategories_TradeOrder; break; case 0x40002: numArray = CardTypes.newCategories_ReligionOrder; break; case 0x40003: numArray = CardTypes.newCategories_HonourOrder; break; case 0x40004: numArray = CardTypes.newCategories_GoldOrder; break; case 0x40005: numArray = CardTypes.newCategories_PopOrder; break; case 0x40006: numArray = CardTypes.newCategories_ResearchOrder; break; case 0x40007: numArray = CardTypes.newCategories_CapacityOrder; break; case 0x40008: numArray = CardTypes.newCategories_ConstructionOrder; break; } } if (GameEngine.Instance.World.getTutorialStage() == 8) { list.Sort(CustomSelfDrawPanel.UICard.TUT2cardsNameComparer); } else if (GameEngine.Instance.World.getTutorialStage() == 12) { list.Sort(CustomSelfDrawPanel.UICard.TUTcardsNameComparer); } else if (this.sortByMode == 0) { list.Sort(CustomSelfDrawPanel.UICard.cardsNameComparer); } else if (this.sortByMode == 1) { list.Sort(CustomSelfDrawPanel.UICard.cardsIDComparer); } else if (this.sortByMode == 2) { list.Sort(CustomSelfDrawPanel.UICard.cardsNameComparerReverse); } else if (this.sortByMode == 3) { list.Sort(CustomSelfDrawPanel.UICard.cardsIDComparerReverse); } else if (this.sortByMode == 7) { list.Sort(CustomSelfDrawPanel.UICard.cardsQuantityComparer); } else if (this.sortByMode == 8) { list.Sort(CustomSelfDrawPanel.UICard.cardsQuantityComparerReverse); } int num = GameEngine.Instance.World.getRank() + 1; content.clearDirectControlsOnly(); foreach (CustomSelfDrawPanel.UICard card in this.dummyCards) { card.clearControls(); } this.dummyCards.Clear(); int num2 = 0; int x = 0x10; int y = 0; if (this.currentCardSection == 0) { x = 0; } if (numArray != null) { this.sortBack.Visible = false; this.AvailablePanelContent.ClipRect = new Rectangle(this.AvailablePanelContent.ClipRect.X, this.AvailablePanelContent.ClipRect.Y, this.AvailablePanelContent.ClipRect.Width, this.AvailablePanel.Height - (BorderPadding * 2)); int num5 = 0; int num6 = -1; for (int i = 0; i < numArray.Length; i += 3) { if (numArray[i + 2] != num6) { int cardType = numArray[i]; int num9 = numArray[i + 1] * 0xb2; int num10 = (numArray[i + 2] - num5) * 0xed; bool flag = false; CustomSelfDrawPanel.UICard control = null; foreach (CustomSelfDrawPanel.UICard card3 in list) { if (CardTypes.getCardType(card3.Definition.id) == cardType) { flag = true; control = card3; } } CardTypes.CardDefinition def = CardTypes.getCardDefinition(cardType); if ((!flag && (((def.cardRank <= 0) || (def.cardRarity <= 0)) || (def.available != 1))) && (num9 == 0)) { bool flag2 = false; int num11 = CardTypes.getCardType(cardType); if ((num11 >= 0xbd7) && (num11 <= 0xbf5)) { for (int j = 0; j < numArray.Length; j += 3) { if (((numArray[j + 2] == numArray[i + 2]) && (cardType != numArray[j])) && (CardTypes.getCardDefinition(numArray[j]).available == 1)) { numArray[j + 1]--; flag2 = true; } } } if (!flag2) { num5++; num6 = numArray[i + 2]; continue; } } if ((num10 + 0xed) > num2) { num2 = num10 + 0xed; } if (flag) { control.Position = new Point(num9, num10); content.addControl(control); if ((num < control.Definition.cardRank) || (control.UserIDList.Count == 0)) { control.rankLabel.Color = ARGBColors.Red; control.Hilight(ARGBColors.Gray); } else { control.rankLabel.Color = ARGBColors.White; control.Hilight(ARGBColors.White); } if (control.cardCount > 1) { control.countLabel.Text = control.cardCount.ToString(); if (control.cardCount >= 100) { control.countLabel.Font = FontManager.GetFont("Arial", 16f, FontStyle.Bold); } else { control.countLabel.Font = FontManager.GetFont("Arial", 18f, FontStyle.Bold); } } } else if (((def.cardRank > 0) && (def.cardRarity > 0)) && (def.available == 1)) { CustomSelfDrawPanel.UICard card4 = BuyCardsPanel.makeUICard(def, RemoteServices.Instance.UserID, 0x2710); card4.Position = new Point(num9, num10); content.addControl(card4); CustomSelfDrawPanel.CSDFill fill = new CustomSelfDrawPanel.CSDFill { FillColor = Color.FromArgb(170, 0, 0, 0), Alpha = 0.2f, Position = new Point(2, 1), Size = new Size((card4.Size.Width - 2) - 4, (card4.Size.Height - 1) - 5) }; card4.addControl(fill); this.dummyCards.Add(card4); card4.CustomTooltipID = 0x2775; card4.CustomTooltipData = cardType; CustomSelfDrawPanel.CSDLabel label = new CustomSelfDrawPanel.CSDLabel(); if (def.cardPoints > 0) { label.Text = SK.Text("CARDS_GetCard", "Get Card"); label.Data = def.id; label.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.linkToBuy)); } else { label.Text = SK.Text("CARDS_No_Cards", "No Cards"); } label.Position = new Point(num9 + 3, num10 + 5); label.Size = new Size(0x9d, 0xd9); label.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER; label.Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold); label.Color = ARGBColors.White; label.CustomTooltipID = 0x2775; label.CustomTooltipData = cardType; content.addControl(label); } } } } else { if (!this.usingRecentFilter) { this.sortBack.Visible = true; } this.AvailablePanelContent.ClipRect = new Rectangle(this.AvailablePanelContent.ClipRect.X, this.AvailablePanelContent.ClipRect.Y, this.AvailablePanelContent.ClipRect.Width, (this.AvailablePanel.Height - (BorderPadding * 2)) - 0x18); int num13 = 0; int num14 = 0; foreach (CustomSelfDrawPanel.UICard card5 in list) { card5.Position = new Point(x, y); content.addControl(card5); num14 = y; if (x > width) { x = 0x10; if (this.currentCardSection == 0) { x = 0; } if (!this.compressedCards) { y += card5.Height + 8; } else { y += 0x3a; } } else { x += card5.Width + 12; } if (this.compressedCards && (num13 < (list.Count - 4))) { card5.ClipRect = new Rectangle(0, 0, card5.Width, 60); card5.bigEffect.Visible = false; card5.rankLabel.Visible = false; } else { card5.ClipRect = Rectangle.Empty; card5.bigEffect.Visible = true; card5.rankLabel.Visible = true; } if (this.compressedCards) { CustomSelfDrawPanel.CSDLine line = new CustomSelfDrawPanel.CSDLine { Position = new Point(card5.Position.X + 3, card5.Position.Y + 1), Size = new Size(card5.Width - 7, 0), LineColor = Color.FromArgb(0x80, ARGBColors.Black) }; content.addControl(line); } num13++; if ((num < card5.Definition.cardRank) || (card5.UserIDList.Count == 0)) { card5.rankLabel.Color = ARGBColors.Red; card5.Hilight(ARGBColors.Gray); } else { card5.rankLabel.Color = ARGBColors.White; card5.Hilight(ARGBColors.White); } if (card5.cardCount > 1) { card5.countLabel.Text = card5.cardCount.ToString(); if (card5.cardCount >= 100) { card5.countLabel.Font = FontManager.GetFont("Arial", 16f, FontStyle.Bold); } else { card5.countLabel.Font = FontManager.GetFont("Arial", 18f, FontStyle.Bold); } } } if (list.Count > 0) { num2 = (num14 + list[0].Height) + 8; } } disableCardsInPlay(this.UICardList); content.invalidate(); return num2; }
private void AddControlToPanel(CustomSelfDrawPanel.CSDControl c) { base.addControl(c); }
public void init(MyMessageBoxPopUp myFormBaseParent, string message, int type, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate leftClickDelegate, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate noClickDelegateSpecial) { base.clearControls(); this.BackColor = ARGBColors.Transparent; this.typeOfPopUp = type; this.parent = myFormBaseParent; base.addControl(this.controlToAddTo); Graphics graphics = base.CreateGraphics(); Size size = graphics.MeasureString(message, this.popupText.Font, 0x3e8).ToSize(); graphics.Dispose(); this.popupText.Size = new Size(size.Width + 10, size.Height); this.popupText.Text = message; this.popupText.Size = new Size(base.Width - 0x10, base.Height - 0x10); this.popupText.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER; this.popupText.Position = new Point((base.Size.Width / 2) - (this.popupText.Width / 2), 15); this.controlToAddTo.addControl(this.popupText); this.buttonLeft.ImageNorm = (Image) GFXLibrary.button_132_normal; this.buttonLeft.ImageOver = (Image) GFXLibrary.button_132_over; this.buttonLeft.ImageClick = (Image) GFXLibrary.button_132_in; this.buttonLeft.Position = new Point(10, (base.Size.Height - this.buttonLeft.Height) - 5); this.buttonLeft.setClickDelegate(leftClickDelegate); this.buttonCenter.ImageNorm = (Image) GFXLibrary.button_132_normal; this.buttonCenter.ImageOver = (Image) GFXLibrary.button_132_over; this.buttonCenter.ImageClick = (Image) GFXLibrary.button_132_in; this.buttonCenter.Position = new Point((base.Size.Width / 2) - (this.buttonCenter.Width / 2), (base.Size.Height - this.buttonCenter.Height) - 5); this.buttonRight.ImageNorm = (Image) GFXLibrary.button_132_normal; this.buttonRight.ImageOver = (Image) GFXLibrary.button_132_over; this.buttonRight.ImageClick = (Image) GFXLibrary.button_132_in; this.buttonRight.Position = new Point((base.Size.Width - this.buttonRight.Width) - 10, (base.Size.Height - this.buttonRight.Size.Height) - 5); this.noSpecialDelegate = noClickDelegateSpecial; this.buttonRight.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.ClosePanel)); switch (type) { case 0: this.buttonLeft.Text.Text = SK.Text("GENERIC_Yes", "Yes"); this.buttonRight.Text.Text = SK.Text("GENERIC_No", "No"); this.controlToAddTo.addControl(this.buttonLeft); this.controlToAddTo.addControl(this.buttonRight); return; case 1: case 4: case 5: break; case 2: this.buttonCenter.Text.Text = SK.Text("GENERIC_OK", "OK"); this.buttonCenter.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.ClosePanel)); this.controlToAddTo.addControl(this.buttonCenter); return; case 3: this.buttonLeft.Text.Text = SK.Text("GENERIC_OK", "OK"); this.buttonRight.Text.Text = SK.Text("GENERIC_Cancel", "Cancel"); this.controlToAddTo.addControl(this.buttonLeft); this.controlToAddTo.addControl(this.buttonRight); return; case 6: this.buttonCenter.Text.Text = SK.Text("GENERIC_OK", "OK"); this.buttonCenter.setClickDelegate(leftClickDelegate); this.controlToAddTo.addControl(this.buttonCenter); break; default: return; } }
public void init(MyMessageBoxPopUp myFormBaseParent, string message, int type, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate leftClickDelegate, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate noButtonClickDelegate, bool leaveGreaoutOpenOnClose) { this.leaveGreyoutOpen = leaveGreaoutOpenOnClose; this.init(myFormBaseParent, message, type, leftClickDelegate, noButtonClickDelegate); }
private void villageListDoubleClick(CustomSelfDrawPanel.CSDListItem item) { this.addVillage(item); }
private void villageListClick(CustomSelfDrawPanel.CSDListItem item) { this.villageAddButton.Enabled = this.villageSearchList.getSelectedItem() != null; }
public void updateFlags(CustomSelfDrawPanel.CSDFill fill, int fillBoxNumber) { int flag = 0; int num2 = 0; int num3 = 0; int num4 = 0; int num5 = 0; FactionData.getFlagData(this.factionFlagData, ref flag, ref num2, ref num3, ref num4, ref num5); if (flag == 0) { flag = 1; } if ((flag - 2) >= 1) { this.flagMinus2.Visible = true; this.flagMinus2.Image = (Image) GFXLibrary.factionFlags[flag - 2]; } else { this.flagMinus2.Visible = true; this.flagMinus2.Image = (Image) GFXLibrary.factionFlags[(flag - 2) + 0x3f]; } if ((flag - 1) >= 1) { this.flagMinus1.Visible = true; this.flagMinus1.Image = (Image) GFXLibrary.factionFlags[flag - 1]; } else { this.flagMinus1.Visible = true; this.flagMinus1.Image = (Image) GFXLibrary.factionFlags[(flag - 1) + 0x3f]; } if ((flag + 1) < GFXLibrary.factionFlags.Length) { this.flagPlus1.Visible = true; this.flagPlus1.Image = (Image) GFXLibrary.factionFlags[flag + 1]; } else { this.flagPlus1.Visible = true; this.flagPlus1.Image = (Image) GFXLibrary.factionFlags[(flag + 1) - 0x3f]; } if ((flag + 2) < GFXLibrary.factionFlags.Length) { this.flagPlus2.Visible = true; this.flagPlus2.Image = (Image) GFXLibrary.factionFlags[flag + 2]; } else { this.flagPlus2.Visible = true; this.flagPlus2.Image = (Image) GFXLibrary.factionFlags[(flag + 2) - 0x3f]; } this.selectedFlag.Image = (Image) GFXLibrary.factionFlags[flag]; ColorMap[] mapArray = FactionData.getColourMap(num2, num3, num4, num5, 0xff); this.selectedFlag.ColourMap = mapArray; this.flagMinus2.ColourMap = mapArray; this.flagMinus1.ColourMap = mapArray; this.flagPlus1.ColourMap = mapArray; this.flagPlus2.ColourMap = mapArray; this.selectedColour1.Position = this.colours1[num2].Position; this.selectedColour2.Position = this.colours2[num3].Position; this.selectedColour3.Position = this.colours3[num4].Position; this.selectedColour4.Position = this.colours4[num5].Position; this.selectedColour1.LineColor = ARGBColors.Black; this.selectedColour2.LineColor = ARGBColors.Black; this.selectedColour3.LineColor = ARGBColors.Black; this.selectedColour4.LineColor = ARGBColors.Black; switch (num2) { case 11: case 14: case 15: case 1: case 0x16: case 0x19: case 0x1a: case 0x1b: this.selectedColour1.LineColor = ARGBColors.White; break; } switch (num3) { case 11: case 14: case 15: case 1: case 0x16: case 0x19: case 0x1a: case 0x1b: this.selectedColour2.LineColor = ARGBColors.White; break; } switch (num4) { case 11: case 14: case 15: case 1: case 0x16: case 0x19: case 0x1a: case 0x1b: this.selectedColour3.LineColor = ARGBColors.White; break; } switch (num5) { case 11: case 14: case 15: case 1: case 0x16: case 0x19: case 0x1a: case 0x1b: this.selectedColour4.LineColor = ARGBColors.White; break; } base.Invalidate(); }
private void createRows(int startColumn, int startRow, int dx, int dy, int[] layout, CustomSelfDrawPanel.CSDImage[][] rows, int numRows, int numColumns) { GameEngine.Instance.World.getRank(); for (int i = 0; i < numRows; i++) { int researchType = layout[i * 2]; int num3 = layout[(i * 2) + 1]; int num4 = 1; if (researchType >= 0) { num4 += ResearchData.getNumLevels(researchType, 0x16, GameEngine.Instance.LocalWorldData); } int y = (((i * dy) + startRow) * 110) + 40; rows[i] = new CustomSelfDrawPanel.CSDImage[numColumns]; for (int j = 0; j < num4; j++) { int x = ((((j + num3) * dx) + startColumn) * 150) + 40; CustomSelfDrawPanel.CSDImage image = new CustomSelfDrawPanel.CSDImage { Position = new Point(x, y) }; rows[i][j + num3] = image; if (j == 0) { image.Data = 0; switch (num3) { case 0: { continue; } case 1: { x = (((((j - 1) + num3) * dx) + startColumn) * 150) + 40; CustomSelfDrawPanel.CSDImage image2 = new CustomSelfDrawPanel.CSDImage { Position = new Point(x, y) }; rows[i][(j - 1) + num3] = image2; for (int m = i - 1; m > 0; m--) { if (rows[m][(j - 1) + num3] != null) { break; } int num9 = (((m * dy) + startRow) * 110) + 40; CustomSelfDrawPanel.CSDImage image3 = new CustomSelfDrawPanel.CSDImage { Position = new Point(x, num9), Data = 1 }; rows[m][(j - 1) + num3] = image3; } continue; } } for (int k = i - 1; k > 0; k--) { if (rows[k][j + num3] != null) { break; } int num11 = (((k * dy) + startRow) * 110) + 40; CustomSelfDrawPanel.CSDImage image4 = new CustomSelfDrawPanel.CSDImage { Position = new Point(x, num11), Data = 1 }; rows[k][j + num3] = image4; } } else { image.Data = 2; } } } }
public void UpdateScrollbar(CustomSelfDrawPanel.CSDVertScrollBar bar, CustomSelfDrawPanel.CSDImage content) { bar.Visible = content.Height > content.ClipRect.Height; bar.Max = content.Height - content.ClipRect.Height; bar.NumVisibleLines = content.ClipRect.Height; }
private void regionListClick(CustomSelfDrawPanel.CSDListItem item) { this.regionAddButton.Enabled = this.regionSearchList.getSelectedItem() != null; }
public void SwitchPanel(int panel) { this.cardPanelPlay.clearControls(); this.cardPanelBuy.clearControls(); this.cardPanelManage.clearControls(); this.cardPanelPremium.clearControls(); this.cardPanelViewAll.clearControls(); this.crownsBuyPanel.clearControls(); if (panel == this.currentPanelID) { panel = 1; } switch (panel) { case 1: this.currentPanel = this.cardPanelPlay; break; case 2: this.currentPanel = this.cardPanelBuy; break; case 4: this.currentPanel = this.cardPanelPremium; break; case 6: this.currentPanel = this.cardPanelManage; break; case 7: this.currentPanel = this.crownsBuyPanel; break; case 8: this.currentPanel = this.cardPanelViewAll; break; default: this.currentPanel = this.cardPanelPlay; break; } this.tbSearchBox.Parent.Controls.Remove(this.tbSearchBox); this.currentPanel.Controls.Add(this.tbSearchBox); this.processTextChanged = false; this.tbSearchBox.Text = ""; this.processTextChanged = true; this.tbSearchBox.Visible = false; this.currentPanelID = panel; new ComponentResourceManager(this.currentPanel.GetType()); base.SuspendLayout(); this.currentPanel.Location = new Point(0, 0); this.currentPanel.Name = "cardPanel"; this.currentPanel.Size = new Size(0x3e8, 600); this.currentPanel.StoredGraphics = null; this.currentPanel.TabIndex = 0; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.None; base.ClientSize = new Size(0x3e8, 600); base.ControlBox = false; base.Controls.Clear(); base.Controls.Add(this.currentPanel); base.FormBorderStyle = FormBorderStyle.None; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "PlayCardsWindow"; base.ShowIcon = false; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.Manual; this.Text = "PlayCardsWindow"; base.ResumeLayout(false); this.init(this.currentCardSection, false); }
private void updateRows(int startColumn, int startRow, int dx, int dy, int[] layout, CustomSelfDrawPanel.CSDImage[][] rows, int numRows) { int rank = GameEngine.Instance.World.getRank(); int subRank = GameEngine.Instance.World.getRankSubLevel(); Font font = FontManager.GetFont("Arial", 10f, FontStyle.Regular); Font font2 = FontManager.GetFont("Arial", 12f, FontStyle.Bold); Font font3 = FontManager.GetFont("Arial", 8f, FontStyle.Regular); Font font4 = FontManager.GetFont("Arial", 7.5f, FontStyle.Regular); for (int i = 0; i < numRows; i++) { int researchType = layout[i * 2]; int num5 = layout[(i * 2) + 1]; int num6 = 1; if (researchType >= 0) { num6 += ResearchData.getNumLevels(researchType, rank, GameEngine.Instance.LocalWorldData); } for (int j = 0; j < num6; j++) { int num30; CustomSelfDrawPanel.CSDImage control = rows[i][j + num5]; control.clearControls(); this.scrollPanelImage.addControl(control); if (j == 0) { if (num5 == 0) { control.Image = (Image) this.getIllBack(dx, dy, 0, 0, 1, 0, -1); CustomSelfDrawPanel.CSDImage image2 = this.getNextImage(); image2.Position = new Point(3, 7); string str = ""; switch (researchType) { case -4: image2.Image = (Image) GFXLibrary.research_ill_education; str = SK.Text("Research_Education", "Education"); break; case -3: image2.Image = (Image) GFXLibrary.research_ill_military; str = SK.Text("Research_Military", "Military"); break; case -2: image2.Image = (Image) GFXLibrary.research_ill_farming; str = SK.Text("Research_Farming", "Farming"); break; case -1: image2.Image = (Image) GFXLibrary.research_ill_industry; str = SK.Text("Research_Industry", "Industry"); break; } control.addControl(image2); CustomSelfDrawPanel.CSDLabel label = this.getNextLabel(); label.Text = str; label.Color = ARGBColors.Black; label.Position = new Point(6, 0x47); label.Size = new Size(0x87, 30); label.Font = font; label.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER; control.addControl(label); continue; } control.Tooltip = researchType * 0x3e8; int num8 = 1; int num9 = -1; bool flag = false; int num10 = -1; bool flag2 = false; bool flag3 = false; if (!this.lastDataQueued.isResearchStepOpen(researchType, j, rank, subRank, ref num9, ref flag)) { num8 = 2; } else if (!this.lastData.isResearchStepOpen(researchType, j, rank, subRank, ref num10, ref flag2)) { flag3 = true; } if (num5 == 1) { bool flag4 = false; if ((this.lastDataQueued.research[researchType] > 0) && (this.lastData.research[researchType] == 0)) { flag4 = true; } if (flag4) { control.Image = (Image) GFXLibrary.ill_back_yline_0101; } else { control.Image = (Image) this.getIllBack(dx, dy, 0, 1, 0, num8, researchType); } } else if (flag3) { control.Image = (Image) GFXLibrary.ill_back_yline_1100; } else { control.Image = (Image) this.getIllBack(dx, dy, 1, 0, 0, num8, researchType); } CustomSelfDrawPanel.CSDImage image3 = this.getNextImage(); image3.Image = (Image) this.getIllustration(researchType); image3.Position = new Point(3, 7); control.addControl(image3); if (num8 != 2) { CustomSelfDrawPanel.CSDImage image4 = this.getNextImage(); if (!flag3) { image4.Image = (Image) GFXLibrary.ill_back_green_textback; } else { image4.Image = (Image) GFXLibrary.ill_back_yellow_textback; } image4.Position = new Point(4, 0x44); control.addControl(image4); } else if (num9 > 0) { CustomSelfDrawPanel.CSDImage image5 = this.getNextImage(); image5.Image = (Image) GFXLibrary.ill_shield; image5.Position = new Point(0x69, 2); image5.Visible = true; image3.addControl(image5); CustomSelfDrawPanel.CSDLabel label2 = this.getNextLabel(); if (num9 >= 100) { num30 = (num9 - 100) + 1; label2.Text = num30.ToString(); } else { label2.Text = num9.ToString(); } label2.Color = ARGBColors.White; label2.Position = new Point(0, -2); label2.Size = image5.Size; label2.Font = font2; label2.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER; label2.Visible = true; image5.addControl(label2); } int num11 = 0; CustomSelfDrawPanel.CSDLabel label3 = this.getNextLabel(); if ((Program.mySettings.LanguageIdent == "tr") && ((((researchType == 14) || (researchType == 0x42)) || ((researchType == 0x2e) || (researchType == 0x29))) || ((researchType == 0x2b) || (researchType == 0x2a)))) { label3.Font = font3; } else if ((Program.mySettings.LanguageIdent == "pl") && (((researchType == 14) || (researchType == 0x25)) || ((researchType == 0x2d) || (researchType == 50)))) { label3.Font = font3; } else if ((Program.mySettings.LanguageIdent == "it") && (((researchType == 0x11) || (researchType == 0x43)) || (researchType == 0x29))) { label3.Font = font3; } else if ((Program.mySettings.LanguageIdent == "pt") && ((((researchType == 0) || (researchType == 0x27)) || ((researchType == 0x11) || (researchType == 0x42))) || ((((researchType == 0x40) || (researchType == 10)) || ((researchType == 0x2b) || (researchType == 0x2c))) || ((researchType == 0x2d) || (researchType == 0x2e))))) { label3.Font = font3; } else if ((Program.mySettings.LanguageIdent == "pt") && ((researchType == 0x22) || (researchType == 0x2a))) { label3.Font = font4; num11 = -5; } else if (((researchType == 0x42) && (Program.mySettings.LanguageIdent == "en")) || (((researchType == 0x2d) || (researchType == 0x2b)) && (Program.mySettings.LanguageIdent == "de"))) { label3.Font = font3; } else { label3.Font = font; } label3.Text = ResearchData.getResearchName(researchType); label3.Color = ARGBColors.Black; label3.Position = new Point(6, 0x47 + num11); label3.Size = new Size(0x87, 30); label3.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER; control.addControl(label3); if (num5 == 1) { CustomSelfDrawPanel.CSDImage image6 = rows[i][(j - 1) + num5]; int num12 = 0; if ((i < (numRows - 1)) && (rows[i + 1][(j - 1) + num5] != null)) { num12 = 1; } if (num12 == 1) { image6.Image = (Image) GFXLibrary.gline_1110; } else { image6.Image = (Image) GFXLibrary.gline_1100; } this.scrollPanelImage.addControl(image6); for (int k = i - 1; k > 0; k--) { CustomSelfDrawPanel.CSDImage image8 = rows[k][(j - 1) + num5]; if (image8 != null) { if (image8.Data != 1) { break; } image8.Image = (Image) GFXLibrary.gline_vertical; this.scrollPanelImage.addControl(image8); } } } else { for (int m = i - 1; m > 0; m--) { CustomSelfDrawPanel.CSDImage image9 = rows[m][j + num5]; if (image9 != null) { if (image9.Data != 1) { break; } if (flag3) { image9.Image = (Image) GFXLibrary.yline_vertical; } else if (num8 == 1) { image9.Image = (Image) GFXLibrary.gline_vertical; } else { image9.Image = (Image) GFXLibrary.bline_vertical; } this.scrollPanelImage.addControl(image9); } } } continue; } control.Tooltip = (researchType * 0x3e8) + j; int down = 0; if (i < (numRows - 1)) { CustomSelfDrawPanel.CSDImage image10 = rows[i + 1][j + num5]; if ((image10 != null) && ((image10.Data == 0) || (image10.Data == 1))) { down = 1; } } int right = 0; if (j != (num6 - 1)) { right = 1; } int mode = 0; bool flag5 = false; bool flag6 = false; int rankNeeded = -1; bool special = false; if (this.lastDataQueued.research[researchType] == (j - 1)) { if (this.lastData.research[researchType] != (j - 1)) { flag5 = true; } if (this.lastDataQueued.isResearchStepOpen(researchType, j - 1, rank, subRank, ref rankNeeded, ref special)) { mode = 1; if (right != 0) { right = 2; } if (down != 0) { down = 2; } if (!this.lastData.isResearchStepOpen(researchType, j - 1, rank, subRank, ref rankNeeded, ref special)) { flag5 = true; } } else { mode = 2; if ((rankNeeded > 0) && special) { flag5 = false; CustomSelfDrawPanel.CSDImage image11 = this.getNextImage(); image11.Image = (Image) GFXLibrary.ill_shield; image11.Position = new Point(0x4b - (image11.Image.Width / 2), 7); image11.Visible = true; control.addControl(image11); CustomSelfDrawPanel.CSDLabel label4 = this.getNextLabel(); if (rankNeeded >= 100) { num30 = (rankNeeded - 100) + 1; label4.Text = num30.ToString(); } else { label4.Text = rankNeeded.ToString(); } label4.Color = ARGBColors.White; label4.Position = new Point(0, -2); label4.Size = image11.Size; label4.Font = font2; label4.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER; label4.Visible = true; image11.addControl(label4); } } int openedBuilding = -1; int openedCastleBuilding = -1; int openedTroop = -1; this.getOpenedResearch(researchType, j, ref openedBuilding, ref openedCastleBuilding, ref openedTroop); if (((openedBuilding >= 0) || (openedCastleBuilding > 0)) || (openedTroop > 0)) { CustomSelfDrawPanel.CSDImage image12 = this.getNextImage(); if (openedBuilding >= 0) { image12.Image = (Image) this.getBuildingGFX(openedBuilding); } if (openedCastleBuilding >= 0) { image12.Image = (Image) this.getCastleGFX(openedCastleBuilding); } if (openedTroop >= 0) { image12.Image = (Image) this.getCastleGFX(openedTroop); } if (image12.Image != null) { image12.Position = new Point(0x70 - (image12.Image.Width / 2), 0x52 - (image12.Image.Height / 2)); image12.Visible = true; control.addControl(image12); } } } else if (this.lastDataQueued.research[researchType] < (j - 1)) { mode = 2; this.lastDataQueued.isResearchStepOpen(researchType, j - 1, rank, subRank, ref rankNeeded, ref special); if ((rankNeeded > 0) && special) { CustomSelfDrawPanel.CSDImage image13 = this.getNextImage(); image13.Image = (Image) GFXLibrary.ill_shield; image13.Position = new Point(0x4b - (image13.Image.Width / 2), 7); image13.Visible = true; control.addControl(image13); CustomSelfDrawPanel.CSDLabel label5 = this.getNextLabel(); if (rankNeeded >= 100) { label5.Text = ((rankNeeded - 100) + 1).ToString(); } else { label5.Text = rankNeeded.ToString(); } label5.Color = ARGBColors.White; label5.Position = new Point(0, -2); label5.Size = image13.Size; label5.Font = font2; label5.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER; label5.Visible = true; image13.addControl(label5); } int num22 = -1; int num23 = -1; int num24 = -1; this.getOpenedResearch(researchType, j, ref num22, ref num23, ref num24); if (((num22 >= 0) || (num23 > 0)) || (num24 > 0)) { CustomSelfDrawPanel.CSDImage image14 = this.getNextImage(); if (num22 >= 0) { image14.Image = (Image) this.getBuildingGFX(num22); } if (num23 >= 0) { image14.Image = (Image) this.getCastleGFX(num23); } if (num24 >= 0) { image14.Image = (Image) this.getCastleGFX(num24); } if (image14.Image != null) { image14.Position = new Point(0x70 - (image14.Image.Width / 2), 0x52 - (image14.Image.Height / 2)); image14.Visible = true; control.addControl(image14); } } } else { if (this.lastData.research[researchType] == (j - 1)) { if (j > 1) { flag6 = true; } flag5 = true; } else if (this.lastData.research[researchType] < (j - 1)) { flag5 = true; } mode = 0; if (down != 0) { int num25 = 0; int num26 = -1; int num27 = -1; int num28 = this.getOpenedResearch(researchType, j, ref num25, ref num26, ref num27); if (num28 >= 0) { int num29 = -1; bool flag8 = false; if (!this.lastDataQueued.isResearchStepOpen(num28, 0, rank, subRank, ref num29, ref flag8)) { down = 2; } } } if ((right != 0) && !this.lastDataQueued.isResearchStepOpen(researchType, j, rank, subRank, ref rankNeeded, ref special)) { right = 2; } } if (flag6) { control.Image = (Image) this.getTransitionCircle(dx, dy, mode, 0, 1, down, right, researchType, j - 1); } else if (!flag5) { control.Image = (Image) this.getCircle(dx, dy, mode, 0, 1, down, right, researchType, j - 1); } else { control.Image = (Image) this.getYellowCircle(dx, dy, mode, 0, 1, down, right, researchType, j - 1); } CustomSelfDrawPanel.CSDImage image15 = this.getNextImage(); if (!flag5) { image15.Image = (Image) this.getNumberImage(j, mode); } else { image15.Image = (Image) this.getNumberImage(j, 2); } image15.Position = new Point((control.Size.Width / 2) - (image15.Size.Width / 2), (control.Size.Height / 2) - (image15.Size.Height / 2)); control.addControl(image15); } } }
public Color addColours(CustomSelfDrawPanel panel, Color[] colours, Color curColour, int row) { panel.clearControls(); CustomSelfDrawPanel.CSDFill fill = null; bool flag = false; int num = 0; foreach (Color color in colours) { CustomSelfDrawPanel.CSDFill control = new CustomSelfDrawPanel.CSDFill { Size = new Size(12, 12), Position = new Point(num * 13, 4) }; control.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.colourClickedCSD)); control.FillColor = color; panel.addControl(control); num++; if (color == curColour) { flag = true; control.Border = true; } if (fill == null) { fill = control; } } if (!flag) { curColour = colours[0]; fill.Border = true; } panel.Invalidate(); return curColour; }
public ConfirmOpenPackPopup openConfirmOpenPackPopup(CustomSelfDrawPanel.UICardPack pack, ConfirmOpenPackPanel.CardClickPlayDelegate callback) { this.closePopupWindow(this.m_confirmOpenPackPopup); this.m_confirmOpenPackPopup = new ConfirmOpenPackPopup(); this.positionWindow(this.m_confirmOpenPackPopup, false, false); this.m_confirmOpenPackPopup.init(pack, callback); this.m_confirmOpenPackPopup.Show(this.getCardWindow()); return this.m_confirmOpenPackPopup; }
public void createColours(AvatarData avatar) { Panel pnlBody = null; CustomSelfDrawPanel pnlBodyCSD = null; Color[] colorArray = null; colorArray = avatar.getBodyColourRange(); if (!AvatarData.compare(colorArray, this.lastBodyColours)) { pnlBody = this.pnlBody; pnlBodyCSD = this.pnlBodyCSD; avatar.BodyColour = this.addColours(pnlBodyCSD, colorArray, avatar.BodyColour, 0); this.lastBodyColours = colorArray; } colorArray = avatar.getLegsColourRange(); if (!AvatarData.compare(colorArray, this.lastLegColours)) { pnlBody = this.pnlLegs; pnlBodyCSD = this.pnlLegsCSD; avatar.LegsColour = this.addColours(pnlBodyCSD, colorArray, avatar.LegsColour, 1); this.lastLegColours = colorArray; } colorArray = avatar.getFeetColourRange(); if (!AvatarData.compare(colorArray, this.lastFeetColours)) { pnlBody = this.pnlFeet; pnlBodyCSD = this.pnlFeetCSD; avatar.FeetColour = this.addColours(pnlBodyCSD, colorArray, avatar.FeetColour, 2); this.lastFeetColours = colorArray; } colorArray = avatar.getTorsoColourRange(); if (!AvatarData.compare(colorArray, this.lastTorsoColours)) { pnlBody = this.pnlTorso; pnlBodyCSD = this.pnlTorsoCSD; avatar.TorsoColour = this.addColours(pnlBodyCSD, colorArray, avatar.TorsoColour, 3); this.lastTorsoColours = colorArray; } colorArray = avatar.getTabardColourRange(); if (!AvatarData.compare(colorArray, this.lastTabardColours)) { pnlBody = this.pnlTabard; pnlBodyCSD = this.pnlTabardCSD; avatar.TabardColour = this.addColours(pnlBodyCSD, colorArray, avatar.TabardColour, 4); this.lastTabardColours = colorArray; } colorArray = avatar.getArmsColourRange(); if (!AvatarData.compare(colorArray, this.lastArmsColours)) { pnlBody = this.pnlArms; pnlBodyCSD = this.pnlArmsCSD; avatar.ArmsColour = this.addColours(pnlBodyCSD, colorArray, avatar.ArmsColour, 5); this.lastArmsColours = colorArray; } colorArray = avatar.getHandsColourRange(); if (!AvatarData.compare(colorArray, this.lastHandsColours)) { pnlBody = this.pnlHands; pnlBodyCSD = this.pnlHandsCSD; avatar.HandsColour = this.addColours(pnlBodyCSD, colorArray, avatar.HandsColour, 6); this.lastHandsColours = colorArray; } colorArray = avatar.getShouldersColourRange(); if (!AvatarData.compare(colorArray, this.lastShouldersColours)) { pnlBody = this.pnlShoulders; pnlBodyCSD = this.pnlShouldersCSD; avatar.ShouldersColour = this.addColours(pnlBodyCSD, colorArray, avatar.ShouldersColour, 7); this.lastShouldersColours = colorArray; } colorArray = avatar.getHairColourRange(); if (!AvatarData.compare(colorArray, this.lastHairColours)) { pnlBody = this.pnlHair; pnlBodyCSD = this.pnlHairCSD; avatar.HairColour = this.addColours(pnlBodyCSD, colorArray, avatar.HairColour, 9); this.lastHairColours = colorArray; } colorArray = avatar.getHeadColourRange(); if (!AvatarData.compare(colorArray, this.lastHeadColours)) { pnlBody = this.pnlHead; pnlBodyCSD = this.pnlHeadCSD; pnlBody.SuspendLayout(); this.removeColours(pnlBody); avatar.HeadColour = this.addColours(pnlBodyCSD, colorArray, avatar.HeadColour, 10); this.lastHeadColours = colorArray; this.resumeLayout(pnlBody); } colorArray = avatar.getWeaponColourRange(); if (!AvatarData.compare(colorArray, this.lastWeaponColours)) { pnlBody = this.pnlWeapon; pnlBodyCSD = this.pnlWeaponCSD; avatar.WeaponColour = this.addColours(pnlBodyCSD, colorArray, avatar.WeaponColour, 11); this.lastWeaponColours = colorArray; } }
private void positionWindow(CustomSelfDrawPanel window, bool dxCentre, bool needCreated) { }
public void init(CustomSelfDrawPanel.UICardPack pack, CardClickPlayDelegate callback) { this.m_callback = callback; base.clearControls(); this.background.Size = base.Size; this.background.Position = new Point(0, 0); base.addControl(this.background); this.background.Create((Image) GFXLibrary.cardpanel_grey_9slice_left_top, (Image) GFXLibrary.cardpanel_grey_9slice_middle_top, (Image) GFXLibrary.cardpanel_grey_9slice_right_top, (Image) GFXLibrary.cardpanel_grey_9slice_left_middle, (Image) GFXLibrary.cardpanel_grey_9slice_middle_middle, (Image) GFXLibrary.cardpanel_grey_9slice_right_middle, (Image) GFXLibrary.cardpanel_grey_9slice_left_bottom, (Image) GFXLibrary.cardpanel_grey_9slice_middle_bottom, (Image) GFXLibrary.cardpanel_grey_9slice_right_bottom); this.topLeftImage.Image = (Image) GFXLibrary.cardpanel_grey_9slice_gradation_top_left; this.topLeftImage.Position = new Point(0, 0); this.background.addControl(this.topLeftImage); this.bottomRightImage.Image = (Image) GFXLibrary.cardpanel_grey_9slice_gradation_bottom; this.bottomRightImage.Position = new Point(this.background.Width - this.bottomRightImage.Image.Width, this.background.Height - this.bottomRightImage.Image.Height); this.background.addControl(this.bottomRightImage); string category = GameEngine.Instance.World.ProfileCardOffers[pack.PackIDs[0]].Category; int num = 0; foreach (CardTypes.UserCardPack pack2 in GameEngine.Instance.World.ProfileUserCardPacks.Values) { if (GameEngine.Instance.World.ProfileCardOffers[pack2.PackID].Category == category) { num += pack2.Count; } } if (num > 10) { num = 10; } int num2 = num; this.numMultiple = new NumericUpDown(); base.Controls.Add(this.numMultiple); this.numMultiple.Minimum = 1M; this.numMultiple.Maximum = num2; this.numMultiple.Increment = 1M; this.numMultiple.Left = (base.Width / 2) - (this.numMultiple.Width / 2); this.numMultiple.Top = ((base.Height / 2) - (this.numMultiple.Height / 2)) - 20; this.numMultiple.DecimalPlaces = 0; this.numMultiple.KeyUp += new KeyEventHandler(this.numMultiple_KeyUp); this.confirmLabel.Text = SK.Text("ConfirmOpenPack_HowMany", "How many packs of this type would you like to open?"); this.confirmLabel.Color = ARGBColors.Black; this.confirmLabel.Position = new Point(20, 10); this.confirmLabel.Font = FontManager.GetFont("Arial", 14f, FontStyle.Regular); this.confirmLabel.Size = new Size(this.background.Width - 40, 80); this.confirmLabel.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER; this.background.addControl(this.confirmLabel); this.packTypeLabel.Text = pack.nameText; this.packTypeLabel.Color = ARGBColors.Black; this.packTypeLabel.Position = new Point(20, 80); this.packTypeLabel.Font = FontManager.GetFont("Arial", 14f, FontStyle.Regular); this.packTypeLabel.Size = new Size(this.background.Width - 40, 80); this.packTypeLabel.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER; this.background.addControl(this.packTypeLabel); this.confirmButton.ImageNorm = (Image) GFXLibrary.cardpanel_button_blue_normal; this.confirmButton.ImageOver = (Image) GFXLibrary.cardpanel_button_blue_over; this.confirmButton.ImageClick = (Image) GFXLibrary.cardpanel_button_blue_pressed; this.confirmButton.Position = new Point(230, 190); this.confirmButton.Text.Text = SK.Text("ConfirmOpenPack_OpenPacks", "Open Packs"); this.confirmButton.TextYOffset = -2; this.confirmButton.Text.Color = ARGBColors.Black; this.confirmButton.Text.Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold); this.confirmButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.playCard), "ConfirmOpenPackPanel_confirm_open_pack"); this.background.addControl(this.confirmButton); this.minButton.ImageNorm = (Image) GFXLibrary.building_icon_circle; this.minButton.ImageOver = (Image) GFXLibrary.building_icon_circle; this.minButton.ImageClick = (Image) GFXLibrary.building_icon_circle; this.minButton.Position = new Point(this.numMultiple.Left, 0x87); this.minButton.Text.Text = this.numMultiple.Minimum.ToString(); this.minButton.TextYOffset = -1; this.minButton.Text.Color = ARGBColors.Black; this.minButton.Text.Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold); this.minButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.minAmount), "SetOpenPackAmount_Minimum"); this.background.addControl(this.minButton); this.middleButton.ImageNorm = (Image) GFXLibrary.building_icon_circle; this.middleButton.ImageOver = (Image) GFXLibrary.building_icon_circle; this.middleButton.ImageClick = (Image) GFXLibrary.building_icon_circle; this.middleButton.Position = new Point((this.numMultiple.Left + (this.numMultiple.Width / 2)) - (this.middleButton.Width / 2), 0x87); this.middleButton.TextYOffset = -1; this.middleButton.Text.Text = (((int) (this.numMultiple.Minimum + this.numMultiple.Maximum)) / 2).ToString(); this.middleButton.Text.Color = ARGBColors.Black; this.middleButton.Text.Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold); this.middleButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.middleAmount), "SetOpenPackAmount_Middle"); this.background.addControl(this.middleButton); this.maxButton.ImageNorm = (Image) GFXLibrary.building_icon_circle; this.maxButton.ImageOver = (Image) GFXLibrary.building_icon_circle; this.maxButton.ImageClick = (Image) GFXLibrary.building_icon_circle; this.maxButton.Position = new Point((this.numMultiple.Left + this.numMultiple.Width) - this.maxButton.Width, 0x87); this.maxButton.TextYOffset = -1; this.maxButton.Text.Text = this.numMultiple.Maximum.ToString(); this.maxButton.Text.Color = ARGBColors.Black; this.maxButton.Text.Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold); this.maxButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.maxAmount), "SetOpenPackAmount_Maximum"); this.background.addControl(this.maxButton); this.left.Position = new Point(this.numMultiple.Left - 5, this.numMultiple.Top - 5); this.left.Height = ((this.minButton.Position.Y + this.minButton.Height) - this.left.Position.Y) + 5; this.left.LineColor = ARGBColors.Black; this.left.Width = 0; this.background.addControl(this.left); this.right.Position = new Point(this.numMultiple.Right + 5, this.numMultiple.Top - 5); this.right.Height = ((this.minButton.Position.Y + this.minButton.Height) - this.right.Position.Y) + 5; this.right.LineColor = ARGBColors.Black; this.right.Width = 0; this.background.addControl(this.right); this.top.Position = new Point(this.numMultiple.Left - 5, this.numMultiple.Top - 5); this.top.Width = this.right.Position.X - this.left.Position.X; this.top.LineColor = ARGBColors.Black; this.top.Height = 0; this.background.addControl(this.top); this.bottom.Position = new Point(this.numMultiple.Left - 5, (this.minButton.Position.Y + this.minButton.Height) + 5); this.bottom.Width = this.right.Position.X - this.left.Position.X; this.bottom.LineColor = ARGBColors.Black; this.bottom.Height = 0; this.background.addControl(this.bottom); this.cancelButton.ImageNorm = (Image) GFXLibrary.cardpanel_button_blue_normal; this.cancelButton.ImageOver = (Image) GFXLibrary.cardpanel_button_blue_over; this.cancelButton.ImageClick = (Image) GFXLibrary.cardpanel_button_blue_pressed; this.cancelButton.Position = new Point(30, 190); this.cancelButton.Text.Text = SK.Text("GENERIC_Cancel", "Cancel"); this.cancelButton.TextYOffset = -2; this.cancelButton.Text.Color = ARGBColors.Black; this.cancelButton.Text.Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold); this.cancelButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.closeClick), "ConfirmOpenPackPanel_cancel"); this.background.addControl(this.cancelButton); this.confirmCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked; this.confirmCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty; this.confirmCheck.Position = new Point(20, 240); this.confirmCheck.Checked = true; this.confirmCheck.CBLabel.Text = SK.Text("ConfirmOpenPack_AlwaysAsk", "Always ask to open multiple packs?"); this.confirmCheck.CBLabel.Color = ARGBColors.Black; this.confirmCheck.CBLabel.Position = new Point(20, -1); this.confirmCheck.CBLabel.Size = new Size(360, 0x23); this.confirmCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular); this.background.addControl(this.confirmCheck); }
private void playerListClick(CustomSelfDrawPanel.CSDListItem item) { this.playerAddButton.Enabled = this.playerSearchList.getSelectedItem() != null; this.villageTabButton.Active = this.playerAddButton.Enabled; this.villageTabButton.Alpha = this.playerAddButton.Enabled ? 1f : 0.5f; this.villageTabButton.CustomTooltipID = this.playerAddButton.Enabled ? 0x1ff : 0x206; }