public ArgbColorControl(GameCache cache, FieldInfo field) : this() { Cache = cache; Field = field; label1.Text = field.Name.ToSpaced().Replace("_", ""); new ToolTip().SetToolTip(label1, $"{field.FieldType} {CacheForm.GetDocumentation(field)}"); }
public RealVector2dControl(HaloOnlineCacheContext cacheContext, FieldInfo field) : this() { CacheContext = cacheContext; Field = field; label1.Text = field.Name.ToSpaced().Replace("_", ""); new ToolTip().SetToolTip(label1, $"{field.FieldType.Name} {CacheForm.GetDocumentation(field)}"); }
public ValueControl(GameCache cache, FieldInfo field) : this() { Cache = cache; Field = field; label1.Text = field.Name.ToSpaced(); new ToolTip().SetToolTip(label1, $"{field.FieldType.Name} {CacheForm.GetDocumentation(field)}"); }
public TagReferenceControl(CacheForm form, HaloOnlineCacheContext cacheContext, FieldInfo field) : this() { Form = form; CacheContext = cacheContext; Field = field; label1.Text = field.Name.ToSpaced(); new ToolTip().SetToolTip(label1, $"{field.FieldType.Name} {CacheForm.GetDocumentation(field)}"); }
public BlockControl(CacheForm form, HaloOnlineCacheContext cacheContext, Type type, FieldInfo field) : this() { CacheContext = cacheContext; Field = field; groupBox.Text = field.Name.ToSpaced().Replace("_", ""); new ToolTip().SetToolTip(groupBox, $"{groupBox.Text} Block {CacheForm.GetDocumentation(field)}"); Struct = new StructControl(form, CacheContext, type.GenericTypeArguments[0], null); groupBox.Controls.Add(Struct); Struct.Dock = DockStyle.Fill; Struct.BringToFront(); Height = groupBox.Height; }
public StructControl(CacheForm form, HaloOnlineCacheContext cacheContext, Type type, FieldInfo field) : this() { CacheContext = cacheContext; Field = field; if (Field == null) { groupBox.Visible = false; } else { groupBox.Text = Field.Name.ToSpaced(); } FieldControls = CreateFieldControls(form, Field == null ? (Control)this : groupBox, type); if (field != null) { new ToolTip().SetToolTip(this, $"{field.FieldType.Name} {CacheForm.GetDocumentation(field)}"); } }
public FlagsControl(FieldInfo field) : this() { Field = field; label1.Text = field.Name.ToSpaced(); new ToolTip().SetToolTip(label1, $"{field.FieldType.GetEnumUnderlyingType().Name} Flags {CacheForm.GetDocumentation(field)}"); var names = Enum.GetNames(field.FieldType); var values = Enum.GetValues(field.FieldType); for (var i = 1; i < names.Length; i++) { var value = values.GetValue(i); checkedListBox1.Items.Add(new FlagsBit(names[i].ToSpaced().Replace("_", ""), value)); } checkedListBox1.Height = (checkedListBox1.Items.Count * 15) + 7; Height = label1.Height = checkedListBox1.Bottom; }
public EnumControl(FieldInfo field) : this() { Field = field; label1.Text = field.Name.ToSpaced(); new ToolTip().SetToolTip(label1, $"{field.FieldType.GetEnumUnderlyingType().Name} Enum {CacheForm.GetDocumentation(field)}"); var names = Enum.GetNames(field.FieldType); var values = Enum.GetValues(field.FieldType); for (var i = 0; i < names.Length; i++) { var value = values.GetValue(i); itemsComboBox.Items.Add(new EnumOption(names[i].ToSpaced().Replace("_", ""), value)); } }
public BoundsControl(HaloOnlineCacheContext cacheContext, FieldInfo field) : this() { CacheContext = cacheContext; Field = field; label1.Text = field.Name.ToSpaced().Replace("_", ""); new ToolTip().SetToolTip(label1, $"{field.FieldType.GenericTypeArguments[0].Name} Bounds {CacheForm.GetDocumentation(field)}"); }