v1.6.17.0 (Unto the Breach update)

This commit is contained in:
Regalis11
2024-10-22 17:29:04 +03:00
parent e74b3cdb17
commit 6e6c17e100
417 changed files with 17166 additions and 5870 deletions
@@ -748,7 +748,7 @@ namespace Barotrauma
}
}
enumDropDown.MustSelectAtLeastOne = !hasNoneOption;
enumDropDown.OnSelected += (selected, val) =>
enumDropDown.AfterSelected += (selected, val) =>
{
if (SetPropertyValue(property, entity, string.Join(", ", enumDropDown.SelectedDataMultiple.Select(d => d.ToString()))))
{
@@ -788,8 +788,12 @@ namespace Barotrauma
ToolTip = toolTip,
Font = GUIStyle.SmallFont,
Text = StripPrefabTags(value),
OverflowClip = true
OverflowClip = true,
};
if (editableAttribute != null && editableAttribute.MaxLength > 0)
{
propertyBox.MaxTextLength = editableAttribute.MaxLength;
}
HashSet<MapEntity> editedEntities = new HashSet<MapEntity>();
propertyBox.OnTextChanged += (textBox, text) =>
@@ -805,8 +809,7 @@ namespace Barotrauma
refresh += () =>
{
if (propertyBox.Selected) { return; }
propertyBox.Text = StripPrefabTags(property.GetValue(entity).ToString());
propertyBox.Text = StripPrefabTags(property.GetValue(entity)?.ToString());
};
bool OnApply(GUITextBox textBox)