0
0
Fork 0
mirror of https://git.do.srb2.org/STJr/ZoneBuilder.git synced 2025-02-25 21:33:06 +00:00
This commit is contained in:
sphere 2021-10-26 02:45:09 +02:00 committed by spherallic
parent 9ff08fe97b
commit cafa42dccd

View file

@ -128,7 +128,7 @@ namespace CodeImp.DoomBuilder.Windows
// Flags
ThingTypeInfo ti = General.Map.Data.GetThingInfoEx(s_thingType);
IDictionary<string, string> newFlags = (ti == null || ti.Flags.Count == 0) ? General.Map.Config.ThingFlags : ti.Flags;
flags.UpdateCheckboxes(newFlags);
flags.UpdateCheckboxes(newFlags, General.Map.Config.ThingFlags);
anglelabel.Text = (ti == null) ? "Angle:" : ti.AngleText + ":";
flagsvallabel.Text = (ti == null) ? "Flags value:" : ti.FlagsValueText + ":";
foreach (CheckBox c in flags.Checkboxes)
@ -142,7 +142,7 @@ namespace CodeImp.DoomBuilder.Windows
posZ.AllowNegative = General.Map.FormatInterface.MinThingHeight < 0;
// Update...
flags.UpdateCheckboxes(newFlags);
flags.UpdateCheckboxes(newFlags, General.Map.Config.ThingFlags);
if (ti != null)
{
flagsvallabel.Text = ti.FlagsValueText + ":";
@ -318,7 +318,7 @@ namespace CodeImp.DoomBuilder.Windows
return;
IDictionary<string, string> newFlags = (thinginfo == null || thinginfo.Flags.Count == 0) ? General.Map.Config.ThingFlags : thinginfo.Flags;
flags.UpdateCheckboxes(newFlags);
flags.UpdateCheckboxes(newFlags, General.Map.Config.ThingFlags);
anglelabel.Text = (thinginfo == null) ? "Angle:" : thinginfo.AngleText + ":";
flagsvallabel.Text = (thinginfo == null) ? "Flags value:" : thinginfo.FlagsValueText + ":";
}