Release 1.9.7.0 - Summer Update 2025

This commit is contained in:
Regalis11
2025-06-17 16:38:11 +03:00
parent 22227f13e5
commit ea5a2bc693
297 changed files with 7344 additions and 2421 deletions
@@ -446,19 +446,22 @@ namespace Barotrauma
UpdateScrollBarSize();
}
public void Select(object userData, Force force = Force.No, AutoScroll autoScroll = AutoScroll.Enabled)
public bool Select(object userData, Force force = Force.No, AutoScroll autoScroll = AutoScroll.Enabled)
{
var children = Content.Children;
int i = 0;
bool wasSelected = false;
foreach (GUIComponent child in children)
{
if (Equals(child.UserData, userData))
{
wasSelected = true;
Select(i, force, autoScroll);
if (!SelectMultiple) { return; }
if (!SelectMultiple) { return true; }
}
i++;
}
return wasSelected;
}
private Point CalculateFrameSize(bool isHorizontal, int scrollBarSize)