diff --git a/SoG_SGreader/CustomControls/NumericUpDownWrap.cs b/SoG_SGreader/CustomControls/NumericUpDownWrap.cs new file mode 100644 index 0000000..6d630c9 --- /dev/null +++ b/SoG_SGreader/CustomControls/NumericUpDownWrap.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing.Drawing2D; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SoG_SGreader.CustomControls +{ + /// + /// A PictureBox with configurable interpolation mode. + /// Copy-Pasted from https://www.codeproject.com/Articles/717312/PixelBox-A-PictureBox-with-configurable-Interpolat + /// + public class NumericUpDownWrap : NumericUpDown + { + #region Initialization + public NumericUpDownWrap() + { + // Set default. + Wrap = true; + } + #endregion + + #region Properties + [Category("Behavior")] + [DefaultValue(true)] + public bool Wrap { get; set; } + #endregion + + protected override void UpdateEditText() + { + // Wrap logic + if (Value < Minimum) + { + Value = Maximum; // Wrap to maximum if the value goes below minimum + } + else if (Value > Maximum) + { + Value = Minimum; // Wrap to minimum if the value exceeds maximum + } + else + { + base.UpdateEditText(); // Use default behavior otherwise + } + } + + public override void DownButton() + { + // Need to handle wrapping when the down button is clicked + if (Value == Minimum) + { + Value = Maximum; // Wrap to maximum + } + else + { + base.DownButton(); + } + } + + public override void UpButton() + { + // Need to handle wrapping when the up button is clicked + if (Value == Maximum) + { + Value = Minimum; // Wrap to minimum + } + else + { + base.UpButton(); + } + } + } +} diff --git a/SoG_SGreader/Forms/FrmMain.Designer.cs b/SoG_SGreader/Forms/FrmMain.Designer.cs index 649da8e..bb0f776 100644 --- a/SoG_SGreader/Forms/FrmMain.Designer.cs +++ b/SoG_SGreader/Forms/FrmMain.Designer.cs @@ -40,7 +40,7 @@ private void InitializeComponent() this.grpPatch = new System.Windows.Forms.GroupBox(); this.lblGamePatch = new System.Windows.Forms.Label(); this.label55 = new System.Windows.Forms.Label(); - this.numID = new System.Windows.Forms.NumericUpDown(); + this.numID = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.grpGeneral = new System.Windows.Forms.GroupBox(); this.rbFemale = new System.Windows.Forms.RadioButton(); this.lblGender = new System.Windows.Forms.Label(); @@ -50,8 +50,8 @@ private void InitializeComponent() this.txtNickname = new System.Windows.Forms.TextBox(); this.lblName = new System.Windows.Forms.Label(); this.lblBirthday = new System.Windows.Forms.Label(); - this.numBirtdayMonth = new System.Windows.Forms.NumericUpDown(); - this.numBirthdayDay = new System.Windows.Forms.NumericUpDown(); + this.numBirtdayMonth = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numBirthdayDay = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.txtTimePlayed = new System.Windows.Forms.TextBox(); this.label49 = new System.Windows.Forms.Label(); this.grpEquipped = new System.Windows.Forms.GroupBox(); @@ -81,10 +81,10 @@ private void InitializeComponent() this.lblEqHat = new System.Windows.Forms.Label(); this.cbStyleWeapon = new System.Windows.Forms.ComboBox(); this.grpSkillpoints = new System.Windows.Forms.GroupBox(); - this.numSkillTalentPoints = new System.Windows.Forms.NumericUpDown(); + this.numSkillTalentPoints = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.lblGoldPoints = new System.Windows.Forms.Label(); - this.numSkillSilverPoints = new System.Windows.Forms.NumericUpDown(); - this.numSkillGoldPoints = new System.Windows.Forms.NumericUpDown(); + this.numSkillSilverPoints = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numSkillGoldPoints = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.lblSilverPoints = new System.Windows.Forms.Label(); this.lblTalentPoints = new System.Windows.Forms.Label(); this.grpLevel = new System.Windows.Forms.GroupBox(); @@ -92,10 +92,10 @@ private void InitializeComponent() this.lblExpUnknown0 = new System.Windows.Forms.Label(); this.lblCurrectExp = new System.Windows.Forms.Label(); this.lblLevel = new System.Windows.Forms.Label(); - this.numEXPUnknown1 = new System.Windows.Forms.NumericUpDown(); - this.numEXPUnknown0 = new System.Windows.Forms.NumericUpDown(); - this.numEXPcurrent = new System.Windows.Forms.NumericUpDown(); - this.numLevel = new System.Windows.Forms.NumericUpDown(); + this.numEXPUnknown1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numEXPUnknown0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numEXPcurrent = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numLevel = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.grpColors = new System.Windows.Forms.GroupBox(); this.lblPants = new System.Windows.Forms.Label(); this.lblShirt = new System.Windows.Forms.Label(); @@ -112,13 +112,13 @@ private void InitializeComponent() this.Item = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.Count = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.Position = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.numGold = new System.Windows.Forms.NumericUpDown(); + this.numGold = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.lblGold = new System.Windows.Forms.Label(); this.grpItem = new System.Windows.Forms.GroupBox(); this.btnDeleteSelectedItem = new System.Windows.Forms.Button(); this.btnAddItem = new System.Windows.Forms.Button(); this.lblItemCount = new System.Windows.Forms.Label(); - this.numItemCount = new System.Windows.Forms.NumericUpDown(); + this.numItemCount = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.cbSelectedItem = new System.Windows.Forms.ComboBox(); this.tabPets = new System.Windows.Forms.TabPage(); this.lstPets = new System.Windows.Forms.ListView(); @@ -132,7 +132,7 @@ private void InitializeComponent() this.grpPet = new System.Windows.Forms.GroupBox(); this.cbPetType = new System.Windows.Forms.ComboBox(); this.lblPetType = new System.Windows.Forms.Label(); - this.numPetLevel = new System.Windows.Forms.NumericUpDown(); + this.numPetLevel = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.lblPetLevel = new System.Windows.Forms.Label(); this.lblPetSpeed = new System.Windows.Forms.Label(); this.lblPetCrit = new System.Windows.Forms.Label(); @@ -141,196 +141,196 @@ private void InitializeComponent() this.lblPetNickname = new System.Windows.Forms.Label(); this.txtPetNickname = new System.Windows.Forms.TextBox(); this.lblPetHealth = new System.Windows.Forms.Label(); - this.numPetSpeed = new System.Windows.Forms.NumericUpDown(); - this.numPetCrit = new System.Windows.Forms.NumericUpDown(); - this.numPetDamage = new System.Windows.Forms.NumericUpDown(); - this.numPetEnergy = new System.Windows.Forms.NumericUpDown(); - this.numPetHP = new System.Windows.Forms.NumericUpDown(); + this.numPetSpeed = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numPetCrit = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numPetDamage = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numPetEnergy = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numPetHP = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.tabSkills = new System.Windows.Forms.TabPage(); this.tabControlSkills = new System.Windows.Forms.TabControl(); this.tabSkillsMelee = new System.Windows.Forms.TabPage(); this.cbOnlyLegalLevels = new System.Windows.Forms.CheckBox(); this.groupBox11 = new System.Windows.Forms.GroupBox(); - this.numSkillMelee2h4 = new System.Windows.Forms.NumericUpDown(); - this.numSkillMelee2h3 = new System.Windows.Forms.NumericUpDown(); - this.numSkillMelee2h2 = new System.Windows.Forms.NumericUpDown(); - this.numSkillMelee2h1 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMelee2h4 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numSkillMelee2h3 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numSkillMelee2h2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numSkillMelee2h1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox7 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox11 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox8 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox10 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMelee2h0 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMelee2h0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox9 = new SoG_SGreader.CustomControls.PixelBox(); this.groupBox10 = new System.Windows.Forms.GroupBox(); - this.numSkillMelee1h1 = new System.Windows.Forms.NumericUpDown(); - this.numSkillMelee1h0 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMelee1h1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numSkillMelee1h0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox1 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox2 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMelee1h2 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMelee1h2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox4 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMelee1h3 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMelee1h3 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox5 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMelee1h4 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMelee1h4 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox6 = new SoG_SGreader.CustomControls.PixelBox(); this.tabSkillsMagic = new System.Windows.Forms.TabPage(); this.groupBox15 = new System.Windows.Forms.GroupBox(); - this.numSkillMagicA2 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicA2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox21 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMagicA1 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicA1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox22 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMagicA0 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicA0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox23 = new SoG_SGreader.CustomControls.PixelBox(); this.groupBox14 = new System.Windows.Forms.GroupBox(); - this.numSkillMagicE2 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicE2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox18 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMagicE1 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicE1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox19 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMagicE0 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicE0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox20 = new SoG_SGreader.CustomControls.PixelBox(); this.groupBox13 = new System.Windows.Forms.GroupBox(); - this.numSkillMagicI2 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicI2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox15 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMagicI1 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicI1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox16 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMagicI0 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicI0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox17 = new SoG_SGreader.CustomControls.PixelBox(); this.groupBox12 = new System.Windows.Forms.GroupBox(); - this.numSkillMagicF2 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicF2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox14 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMagicF1 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicF1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox13 = new SoG_SGreader.CustomControls.PixelBox(); - this.numSkillMagicF0 = new System.Windows.Forms.NumericUpDown(); + this.numSkillMagicF0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox12 = new SoG_SGreader.CustomControls.PixelBox(); this.tabSkillsUtility = new System.Windows.Forms.TabPage(); this.groupBox18 = new System.Windows.Forms.GroupBox(); - this.numUtilityE0 = new System.Windows.Forms.NumericUpDown(); + this.numUtilityE0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox30 = new SoG_SGreader.CustomControls.PixelBox(); - this.numUtilityE1 = new System.Windows.Forms.NumericUpDown(); + this.numUtilityE1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox31 = new SoG_SGreader.CustomControls.PixelBox(); - this.numUtilityE2 = new System.Windows.Forms.NumericUpDown(); + this.numUtilityE2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox32 = new SoG_SGreader.CustomControls.PixelBox(); this.groupBox17 = new System.Windows.Forms.GroupBox(); - this.numUtilityD0 = new System.Windows.Forms.NumericUpDown(); + this.numUtilityD0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox27 = new SoG_SGreader.CustomControls.PixelBox(); - this.numUtilityD1 = new System.Windows.Forms.NumericUpDown(); + this.numUtilityD1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox28 = new SoG_SGreader.CustomControls.PixelBox(); - this.numUtilityD2 = new System.Windows.Forms.NumericUpDown(); + this.numUtilityD2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox29 = new SoG_SGreader.CustomControls.PixelBox(); this.groupBox16 = new System.Windows.Forms.GroupBox(); - this.numUtilityO0 = new System.Windows.Forms.NumericUpDown(); + this.numUtilityO0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox24 = new SoG_SGreader.CustomControls.PixelBox(); - this.numUtilityO1 = new System.Windows.Forms.NumericUpDown(); + this.numUtilityO1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox25 = new SoG_SGreader.CustomControls.PixelBox(); - this.numUtilityO2 = new System.Windows.Forms.NumericUpDown(); + this.numUtilityO2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox26 = new SoG_SGreader.CustomControls.PixelBox(); this.tabTalentsMelee = new System.Windows.Forms.TabPage(); this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.numTalentMelee13 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMelee8 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee13 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMelee8 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox43 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox36 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMelee14 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMelee9 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee14 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMelee9 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox44 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox39 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMelee10 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMelee5 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee10 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMelee5 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox45 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox40 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMelee11 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMelee6 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee11 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMelee6 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox46 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox41 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMelee12 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMelee7 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee12 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMelee7 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox47 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox42 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMelee3 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee3 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox37 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMelee4 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee4 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox38 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMelee0 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox33 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMelee1 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox34 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMelee2 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMelee2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox35 = new SoG_SGreader.CustomControls.PixelBox(); this.tabTalentsMagic = new System.Windows.Forms.TabPage(); this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.numTalentMagic13 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMagic8 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic13 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMagic8 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox48 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox49 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMagic14 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMagic9 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic14 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMagic9 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox50 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox51 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMagic10 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMagic5 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic10 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMagic5 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox52 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox53 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMagic11 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMagic6 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic11 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMagic6 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox54 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox55 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMagic12 = new System.Windows.Forms.NumericUpDown(); - this.numTalentMagic7 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic12 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentMagic7 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox56 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox57 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMagic3 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic3 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox58 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMagic4 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic4 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox59 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMagic0 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox60 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMagic1 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox61 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentMagic2 = new System.Windows.Forms.NumericUpDown(); + this.numTalentMagic2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox62 = new SoG_SGreader.CustomControls.PixelBox(); this.tabTalentsGeneral = new System.Windows.Forms.TabPage(); this.label1 = new System.Windows.Forms.Label(); this.groupBox5 = new System.Windows.Forms.GroupBox(); - this.numTalentGeneral20 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral20 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox78 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral19 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral19 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox79 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral18 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral18 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox80 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral17 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral17 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox81 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral16 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral16 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox82 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral15 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral15 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox83 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral13 = new System.Windows.Forms.NumericUpDown(); - this.numTalentGeneral6 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral13 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentGeneral6 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox65 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox72 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral12 = new System.Windows.Forms.NumericUpDown(); - this.numTalentGeneral5 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral12 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentGeneral5 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox66 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox69 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral11 = new System.Windows.Forms.NumericUpDown(); - this.numTalentGeneral4 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral11 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentGeneral4 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox73 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox70 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral10 = new System.Windows.Forms.NumericUpDown(); - this.numTalentGeneral3 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral10 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentGeneral3 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox74 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox71 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral9 = new System.Windows.Forms.NumericUpDown(); - this.numTalentGeneral2 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral9 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentGeneral2 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox76 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox64 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral8 = new System.Windows.Forms.NumericUpDown(); - this.numTalentGeneral1 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral8 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentGeneral1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox77 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox63 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral14 = new System.Windows.Forms.NumericUpDown(); - this.numTalentGeneral7 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral14 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); + this.numTalentGeneral7 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox67 = new SoG_SGreader.CustomControls.PixelBox(); this.pictureBox68 = new SoG_SGreader.CustomControls.PixelBox(); - this.numTalentGeneral0 = new System.Windows.Forms.NumericUpDown(); + this.numTalentGeneral0 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.pictureBox75 = new SoG_SGreader.CustomControls.PixelBox(); this.tabCards = new System.Windows.Forms.TabPage(); this.grpCards = new System.Windows.Forms.GroupBox(); @@ -390,7 +390,7 @@ private void InitializeComponent() this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); - this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); + this.numericUpDown1 = new SoG_SGreader.CustomControls.NumericUpDownWrap(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.lstEnemiesKilled = new System.Windows.Forms.ListView(); this.Enemy = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); @@ -1618,7 +1618,7 @@ private void InitializeComponent() // this.numItemCount.Location = new System.Drawing.Point(176, 47); this.numItemCount.Maximum = new decimal(new int[] { - 9999, + 2147483647, 0, 0, 0}); @@ -5865,7 +5865,7 @@ private void InitializeComponent() private System.Windows.Forms.TabPage tabInventory; private System.Windows.Forms.GroupBox grpItem; private System.Windows.Forms.Label lblItemCount; - private System.Windows.Forms.NumericUpDown numItemCount; + private NumericUpDownWrap numItemCount; private System.Windows.Forms.ComboBox cbSelectedItem; private System.Windows.Forms.ToolStripMenuItem importToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; @@ -5892,18 +5892,18 @@ private void InitializeComponent() private System.Windows.Forms.Label lblExpUnknown0; private System.Windows.Forms.Label lblCurrectExp; private System.Windows.Forms.Label lblLevel; - private System.Windows.Forms.NumericUpDown numEXPUnknown1; - private System.Windows.Forms.NumericUpDown numEXPUnknown0; - private System.Windows.Forms.NumericUpDown numEXPcurrent; - private System.Windows.Forms.NumericUpDown numLevel; + private NumericUpDownWrap numEXPUnknown1; + private NumericUpDownWrap numEXPUnknown0; + private NumericUpDownWrap numEXPcurrent; + private NumericUpDownWrap numLevel; private System.Windows.Forms.TabPage tabSkills; private System.Windows.Forms.GroupBox grpSkillpoints; private System.Windows.Forms.Label lblGoldPoints; private System.Windows.Forms.Label lblSilverPoints; private System.Windows.Forms.Label lblTalentPoints; - private System.Windows.Forms.NumericUpDown numSkillTalentPoints; - private System.Windows.Forms.NumericUpDown numSkillSilverPoints; - private System.Windows.Forms.NumericUpDown numSkillGoldPoints; + private NumericUpDownWrap numSkillTalentPoints; + private NumericUpDownWrap numSkillSilverPoints; + private NumericUpDownWrap numSkillGoldPoints; private System.Windows.Forms.ToolTip Tooltips; private System.Windows.Forms.GroupBox grpEquipped; private System.Windows.Forms.Label lblAccessory2; @@ -5946,14 +5946,14 @@ private void InitializeComponent() private System.Windows.Forms.Label lblPetDamage; private System.Windows.Forms.Label lblPetEnergy; private System.Windows.Forms.Label lblPetHealth; - private System.Windows.Forms.NumericUpDown numPetSpeed; - private System.Windows.Forms.NumericUpDown numPetCrit; - private System.Windows.Forms.NumericUpDown numPetDamage; + private NumericUpDownWrap numPetSpeed; + private NumericUpDownWrap numPetCrit; + private NumericUpDownWrap numPetDamage; private System.Windows.Forms.TextBox txtPetNickname; - private System.Windows.Forms.NumericUpDown numPetEnergy; + private NumericUpDownWrap numPetEnergy; private System.Windows.Forms.Label lblPetNickname; - private System.Windows.Forms.NumericUpDown numPetHP; - private System.Windows.Forms.NumericUpDown numPetLevel; + private NumericUpDownWrap numPetHP; + private NumericUpDownWrap numPetLevel; private System.Windows.Forms.Label lblPetLevel; private System.Windows.Forms.Button btnDeleteSelectedItem; private System.Windows.Forms.Label label49; @@ -5963,14 +5963,14 @@ private void InitializeComponent() private System.Windows.Forms.Label lblPetType; private System.Windows.Forms.TextBox txtTimePlayed; private System.Windows.Forms.Label lblBirthday; - private System.Windows.Forms.NumericUpDown numBirtdayMonth; - private System.Windows.Forms.NumericUpDown numBirthdayDay; + private NumericUpDownWrap numBirtdayMonth; + private NumericUpDownWrap numBirthdayDay; private System.Windows.Forms.GroupBox grpPatch; private System.Windows.Forms.Label label55; - private System.Windows.Forms.NumericUpDown numID; + private NumericUpDownWrap numID; private System.Windows.Forms.GroupBox grpGeneral; private System.Windows.Forms.Label lblCollectorId; - private System.Windows.Forms.NumericUpDown numGold; + private NumericUpDownWrap numGold; private System.Windows.Forms.Label lblGold; private System.Windows.Forms.TabControl tabControlSkills; private System.Windows.Forms.TabPage tabSkillsMelee; @@ -6056,141 +6056,141 @@ private void InitializeComponent() private CheckedListBox cblstFlagsChecked; private Label lblFlagsChaningNoEffect; private Label lblQuestsChaningNoEffect; - private NumericUpDown numSkillMelee1h0; - private NumericUpDown numSkillMelee1h1; - private NumericUpDown numSkillMelee2h0; - private NumericUpDown numSkillMelee1h2; - private NumericUpDown numSkillMelee1h3; - private NumericUpDown numSkillMelee1h4; - private NumericUpDown numSkillMagicA2; - private NumericUpDown numSkillMagicA1; - private NumericUpDown numSkillMagicA0; - private NumericUpDown numSkillMagicE2; - private NumericUpDown numSkillMagicE1; - private NumericUpDown numSkillMagicE0; - private NumericUpDown numSkillMagicI2; - private NumericUpDown numSkillMagicI1; - private NumericUpDown numSkillMagicI0; - private NumericUpDown numSkillMagicF2; - private NumericUpDown numSkillMagicF1; - private NumericUpDown numSkillMagicF0; - private NumericUpDown numUtilityE0; - private NumericUpDown numUtilityE1; - private NumericUpDown numUtilityE2; - private NumericUpDown numUtilityD0; - private NumericUpDown numUtilityD1; - private NumericUpDown numUtilityD2; - private NumericUpDown numUtilityO0; - private NumericUpDown numUtilityO1; - private NumericUpDown numUtilityO2; - private NumericUpDown numSkillMelee2h4; - private NumericUpDown numSkillMelee2h3; - private NumericUpDown numSkillMelee2h2; - private NumericUpDown numSkillMelee2h1; + private NumericUpDownWrap numSkillMelee1h0; + private NumericUpDownWrap numSkillMelee1h1; + private NumericUpDownWrap numSkillMelee2h0; + private NumericUpDownWrap numSkillMelee1h2; + private NumericUpDownWrap numSkillMelee1h3; + private NumericUpDownWrap numSkillMelee1h4; + private NumericUpDownWrap numSkillMagicA2; + private NumericUpDownWrap numSkillMagicA1; + private NumericUpDownWrap numSkillMagicA0; + private NumericUpDownWrap numSkillMagicE2; + private NumericUpDownWrap numSkillMagicE1; + private NumericUpDownWrap numSkillMagicE0; + private NumericUpDownWrap numSkillMagicI2; + private NumericUpDownWrap numSkillMagicI1; + private NumericUpDownWrap numSkillMagicI0; + private NumericUpDownWrap numSkillMagicF2; + private NumericUpDownWrap numSkillMagicF1; + private NumericUpDownWrap numSkillMagicF0; + private NumericUpDownWrap numUtilityE0; + private NumericUpDownWrap numUtilityE1; + private NumericUpDownWrap numUtilityE2; + private NumericUpDownWrap numUtilityD0; + private NumericUpDownWrap numUtilityD1; + private NumericUpDownWrap numUtilityD2; + private NumericUpDownWrap numUtilityO0; + private NumericUpDownWrap numUtilityO1; + private NumericUpDownWrap numUtilityO2; + private NumericUpDownWrap numSkillMelee2h4; + private NumericUpDownWrap numSkillMelee2h3; + private NumericUpDownWrap numSkillMelee2h2; + private NumericUpDownWrap numSkillMelee2h1; private GroupBox groupBox3; - private NumericUpDown numTalentMelee13; - private NumericUpDown numTalentMelee8; + private NumericUpDownWrap numTalentMelee13; + private NumericUpDownWrap numTalentMelee8; private PixelBox pictureBox43; private PixelBox pictureBox36; - private NumericUpDown numTalentMelee14; - private NumericUpDown numTalentMelee9; + private NumericUpDownWrap numTalentMelee14; + private NumericUpDownWrap numTalentMelee9; private PixelBox pictureBox44; private PixelBox pictureBox39; - private NumericUpDown numTalentMelee10; - private NumericUpDown numTalentMelee5; + private NumericUpDownWrap numTalentMelee10; + private NumericUpDownWrap numTalentMelee5; private PixelBox pictureBox45; private PixelBox pictureBox40; - private NumericUpDown numTalentMelee11; - private NumericUpDown numTalentMelee6; + private NumericUpDownWrap numTalentMelee11; + private NumericUpDownWrap numTalentMelee6; private PixelBox pictureBox46; private PixelBox pictureBox41; - private NumericUpDown numTalentMelee12; - private NumericUpDown numTalentMelee7; + private NumericUpDownWrap numTalentMelee12; + private NumericUpDownWrap numTalentMelee7; private PixelBox pictureBox47; private PixelBox pictureBox42; - private NumericUpDown numTalentMelee3; + private NumericUpDownWrap numTalentMelee3; private PixelBox pictureBox37; - private NumericUpDown numTalentMelee4; + private NumericUpDownWrap numTalentMelee4; private PixelBox pictureBox38; - private NumericUpDown numTalentMelee0; + private NumericUpDownWrap numTalentMelee0; private PixelBox pictureBox33; - private NumericUpDown numTalentMelee1; + private NumericUpDownWrap numTalentMelee1; private PixelBox pictureBox34; - private NumericUpDown numTalentMelee2; + private NumericUpDownWrap numTalentMelee2; private PixelBox pictureBox35; private GroupBox groupBox4; - private NumericUpDown numTalentMagic13; - private NumericUpDown numTalentMagic8; + private NumericUpDownWrap numTalentMagic13; + private NumericUpDownWrap numTalentMagic8; private PixelBox pictureBox48; private PixelBox pictureBox49; - private NumericUpDown numTalentMagic14; - private NumericUpDown numTalentMagic9; + private NumericUpDownWrap numTalentMagic14; + private NumericUpDownWrap numTalentMagic9; private PixelBox pictureBox50; private PixelBox pictureBox51; - private NumericUpDown numTalentMagic10; - private NumericUpDown numTalentMagic5; + private NumericUpDownWrap numTalentMagic10; + private NumericUpDownWrap numTalentMagic5; private PixelBox pictureBox52; private PixelBox pictureBox53; - private NumericUpDown numTalentMagic11; - private NumericUpDown numTalentMagic6; + private NumericUpDownWrap numTalentMagic11; + private NumericUpDownWrap numTalentMagic6; private PixelBox pictureBox54; private PixelBox pictureBox55; - private NumericUpDown numTalentMagic12; - private NumericUpDown numTalentMagic7; + private NumericUpDownWrap numTalentMagic12; + private NumericUpDownWrap numTalentMagic7; private PixelBox pictureBox56; private PixelBox pictureBox57; - private NumericUpDown numTalentMagic3; + private NumericUpDownWrap numTalentMagic3; private PixelBox pictureBox58; - private NumericUpDown numTalentMagic4; + private NumericUpDownWrap numTalentMagic4; private PixelBox pictureBox59; - private NumericUpDown numTalentMagic0; + private NumericUpDownWrap numTalentMagic0; private PixelBox pictureBox60; - private NumericUpDown numTalentMagic1; + private NumericUpDownWrap numTalentMagic1; private PixelBox pictureBox61; - private NumericUpDown numTalentMagic2; + private NumericUpDownWrap numTalentMagic2; private PixelBox pictureBox62; private GroupBox groupBox5; - private NumericUpDown numTalentGeneral20; + private NumericUpDownWrap numTalentGeneral20; private PixelBox pictureBox78; - private NumericUpDown numTalentGeneral19; + private NumericUpDownWrap numTalentGeneral19; private PixelBox pictureBox79; - private NumericUpDown numTalentGeneral18; + private NumericUpDownWrap numTalentGeneral18; private PixelBox pictureBox80; - private NumericUpDown numTalentGeneral17; + private NumericUpDownWrap numTalentGeneral17; private PixelBox pictureBox81; - private NumericUpDown numTalentGeneral16; + private NumericUpDownWrap numTalentGeneral16; private PixelBox pictureBox82; - private NumericUpDown numTalentGeneral15; + private NumericUpDownWrap numTalentGeneral15; private PixelBox pictureBox83; - private NumericUpDown numTalentGeneral13; - private NumericUpDown numTalentGeneral6; + private NumericUpDownWrap numTalentGeneral13; + private NumericUpDownWrap numTalentGeneral6; private PixelBox pictureBox65; private PixelBox pictureBox72; - private NumericUpDown numTalentGeneral12; - private NumericUpDown numTalentGeneral5; + private NumericUpDownWrap numTalentGeneral12; + private NumericUpDownWrap numTalentGeneral5; private PixelBox pictureBox66; private PixelBox pictureBox69; - private NumericUpDown numTalentGeneral11; - private NumericUpDown numTalentGeneral4; + private NumericUpDownWrap numTalentGeneral11; + private NumericUpDownWrap numTalentGeneral4; private PixelBox pictureBox73; private PixelBox pictureBox70; - private NumericUpDown numTalentGeneral10; - private NumericUpDown numTalentGeneral3; + private NumericUpDownWrap numTalentGeneral10; + private NumericUpDownWrap numTalentGeneral3; private PixelBox pictureBox74; private PixelBox pictureBox71; - private NumericUpDown numTalentGeneral9; - private NumericUpDown numTalentGeneral2; + private NumericUpDownWrap numTalentGeneral9; + private NumericUpDownWrap numTalentGeneral2; private PixelBox pictureBox76; private PixelBox pictureBox64; - private NumericUpDown numTalentGeneral8; - private NumericUpDown numTalentGeneral1; + private NumericUpDownWrap numTalentGeneral8; + private NumericUpDownWrap numTalentGeneral1; private PixelBox pictureBox77; private PixelBox pictureBox63; - private NumericUpDown numTalentGeneral14; - private NumericUpDown numTalentGeneral7; + private NumericUpDownWrap numTalentGeneral14; + private NumericUpDownWrap numTalentGeneral7; private PixelBox pictureBox67; private PixelBox pictureBox68; - private NumericUpDown numTalentGeneral0; + private NumericUpDownWrap numTalentGeneral0; private PixelBox pictureBox75; private PixelBox pictureBox1; private PixelBox pictureBox7; @@ -6233,7 +6233,7 @@ private void InitializeComponent() private Button button1; private Button button2; private Label label2; - private NumericUpDown numericUpDown1; + private NumericUpDownWrap numericUpDown1; private ComboBox comboBox1; private Label label3; private TabPage tabPotions; diff --git a/SoG_SGreader/SoG_SGreader.csproj b/SoG_SGreader/SoG_SGreader.csproj index c2a975b..ba9b00d 100644 --- a/SoG_SGreader/SoG_SGreader.csproj +++ b/SoG_SGreader/SoG_SGreader.csproj @@ -30,7 +30,7 @@ false true true - true + true AnyCPU @@ -133,6 +133,9 @@ + + Component + Component