public override void Import(bool direct, ref Dictionary <string, bool> changedClasses) { if (!Remove) { Ultima.Hues.List[Index].Import(File); } else { Ultima.Hues.List[Index].Name = ""; for (int i = 0; i < Ultima.Hues.List[Index].Colors.Length; ++i) { Ultima.Hues.List[Index].Colors[i] = -32767; } Ultima.Hues.List[Index].TableStart = -32768; Ultima.Hues.List[Index].TableEnd = -32768; } if (!direct) { ControlEvents.FireHueChangeEvent(); Options.ChangedUltimaClass["Hues"] = true; } changedClasses["Hues"] = true; }
private void OnClickApplyHue1to2(object sender, EventArgs e) { if (!_hue2Loaded) { return; } Hue org = Hues.List[_selected]; Hue sec = SecondHue.List[_selected]; sec.Colors.CopyTo(org.Colors, 0); org.Name = sec.Name; org.TableStart = org.Colors[0]; org.TableEnd = org.Colors[org.Colors.Length - 1]; _compare[_selected] = true; PaintBox1(); PaintBox2(); Options.ChangedUltimaClass["Hues"] = true; ControlEvents.FireHueChangeEvent(); }