Unstable 1.8.4.0

This commit is contained in:
Markus Isberg
2025-03-12 12:56:27 +00:00
parent a4c3e868e4
commit a4a3427e4e
627 changed files with 29860 additions and 10018 deletions

View File

@@ -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)