Release 1.9.7.0 - Summer Update 2025
This commit is contained in:
@@ -727,7 +727,9 @@ namespace Barotrauma.Steam
|
||||
}
|
||||
if (selectedMods.All(ContentPackageManager.WorkshopPackages.Contains))
|
||||
{
|
||||
if (parentList.AllSelected.All(c => c.GetChild<GUILayoutGroup>()?.GetAllChildren<GUIButton>().Last()?.Style?.Identifier == "WorkshopMenu.DownloadedIcon") && selectedMods.Length > 0 && SteamManager.IsInitialized)
|
||||
static Identifier? GetButtonIconStyle(GUIComponent c) => c.GetChild<GUILayoutGroup>()?.GetAllChildren<GUIButton>().Last()?.Style?.Identifier;
|
||||
if (parentList.AllSelected.All(c => GetButtonIconStyle(c) is { } style && (style == "WorkshopMenu.DownloadedIcon" || style == "WorkshopMenu.InfoButtonUpdate")) &&
|
||||
selectedMods.Length > 0 && SteamManager.IsInitialized)
|
||||
{
|
||||
contextMenuOptions.Add(new((selectedMods.Length > 1 ? "UnsubscribeFromAllSelected" : "WorkshopItemUnsubscribe").ToIdentifier(), true, () =>
|
||||
{
|
||||
@@ -774,8 +776,7 @@ namespace Barotrauma.Steam
|
||||
return true;
|
||||
}
|
||||
};
|
||||
msgBox.Buttons[0].OnClicked += msgBox.Close;
|
||||
msgBox.Buttons[1].OnClicked += (_, _) =>
|
||||
msgBox.Buttons[0].OnClicked += (_, _) =>
|
||||
{
|
||||
if (textBox.Text == mod.Name)
|
||||
{
|
||||
@@ -794,6 +795,7 @@ namespace Barotrauma.Steam
|
||||
return false;
|
||||
}
|
||||
};
|
||||
msgBox.Buttons[1].OnClicked += msgBox.Close;
|
||||
}
|
||||
void CopyToLocal()
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ using Barotrauma.IO;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Steamworks;
|
||||
using Steamworks.Ugc;
|
||||
using Directory = Barotrauma.IO.Directory;
|
||||
using ItemOrPackage = Barotrauma.Either<Steamworks.Ugc.Item, Barotrauma.ContentPackage>;
|
||||
using Path = Barotrauma.IO.Path;
|
||||
@@ -335,9 +336,10 @@ namespace Barotrauma.Steam
|
||||
.WithTags(tagButtons.Where(kvp => kvp.Value.Selected).Select(kvp => kvp.Key.Value))
|
||||
.WithChangeLog(changeNoteTextBox.Text)
|
||||
.WithMetaData($"gameversion={localPackage.GameVersion};modversion={versionTextBox.Text}")
|
||||
.WithVisibility(visibility)
|
||||
.WithPreviewFile(thumbnailPath);
|
||||
|
||||
ugcEditor.Visibility = visibility;
|
||||
|
||||
CoroutineManager.StartCoroutine(
|
||||
MessageBoxCoroutine((currentStepText, messageBox)
|
||||
=> PublishItem(currentStepText, messageBox, versionTextBox.Text, ugcEditor, localPackage)));
|
||||
|
||||
Reference in New Issue
Block a user