Originally Posted by
Coyl
I wish you just made the in-menu representation for SettingColor.
See the createChildMenus method of PoeHUD.Hud.Menu.Menu
I didn't implement it exactly as threetowers had it in his snippet, but if you could take a look and let me know how you would have done it differently I would appreciate the learning experience.
Code:
public class SettingColor : SettingsBlock
{
public SettingColor(string name, int Red = 255, int Green = 255, int Blue = 255) : base(name)
{
this.Red.Default = Red;
this.Green.Default = Green;
this.Blue.Default = Blue;
}
public Color FromRGB { get { return Color.FromArgb(this.Red, this.Green, this.Blue); } }
public SettingIntRange Red = new SettingIntRange("Red", 0, 255);
public SettingIntRange Green = new SettingIntRange("Green", 0, 255);
public SettingIntRange Blue = new SettingIntRange("Blue", 0, 255);
}