Release 1.8.6.2 - Calm Before the Storm
This commit is contained in:
@@ -23,6 +23,8 @@ namespace Barotrauma
|
||||
{
|
||||
sealed class MainMenuScreen : Screen
|
||||
{
|
||||
public static HashSet<Identifier> DismissedNotifications = new HashSet<Identifier>();
|
||||
|
||||
private enum Tab
|
||||
{
|
||||
NewGame = 0,
|
||||
@@ -588,6 +590,12 @@ namespace Barotrauma
|
||||
SelectTab(Tab.Empty);
|
||||
}
|
||||
|
||||
public static void AddDismissedNotification(Identifier id)
|
||||
{
|
||||
DismissedNotifications.Add(id);
|
||||
GameSettings.SaveCurrentConfig();
|
||||
}
|
||||
|
||||
private void SetMenuTabPositioning()
|
||||
{
|
||||
foreach (GUIFrame menuTab in menuTabs.Values)
|
||||
@@ -616,7 +624,7 @@ namespace Barotrauma
|
||||
};
|
||||
var tutorialPreview = new GUILayoutGroup(new RectTransform(new Vector2(0.6f, 1.0f), tutorialContent.RectTransform)) { RelativeSpacing = 0.05f, Stretch = true };
|
||||
var imageContainer = new GUIFrame(new RectTransform(new Vector2(1.0f, 0.5f), tutorialPreview.RectTransform), style: "InnerFrame");
|
||||
tutorialBanner = new GUIImage(new RectTransform(Vector2.One, imageContainer.RectTransform), style: null, scaleToFit: true);
|
||||
tutorialBanner = new GUIImage(new RectTransform(Vector2.One, imageContainer.RectTransform), style: null, scaleToFit: GUIImage.ScalingMode.ScaleToFitSmallestExtent);
|
||||
|
||||
var infoContainer = new GUIFrame(new RectTransform(new Vector2(1.0f, 0.5f), tutorialPreview.RectTransform), style: "GUIFrameListBox");
|
||||
var infoContent = new GUILayoutGroup(new RectTransform(new Vector2(0.95f, 0.9f), infoContainer.RectTransform, Anchor.Center), childAnchor: Anchor.TopLeft)
|
||||
@@ -1382,7 +1390,7 @@ namespace Barotrauma
|
||||
var playstyleContainer = new GUIFrame(new RectTransform(new Vector2(1.35f, 0.1f), parent.RectTransform), style: null, color: Color.Black);
|
||||
|
||||
playstyleBanner = new GUIImage(new RectTransform(new Vector2(1.0f, 0.1f), playstyleContainer.RectTransform),
|
||||
GUIStyle.GetComponentStyle($"PlayStyleBanner.{PlayStyle.Serious}").GetSprite(GUIComponent.ComponentState.None), scaleToFit: true)
|
||||
GUIStyle.GetComponentStyle($"PlayStyleBanner.{PlayStyle.Serious}").GetSprite(GUIComponent.ComponentState.None), scaleToFit: GUIImage.ScalingMode.ScaleToFitSmallestExtent)
|
||||
{
|
||||
UserData = PlayStyle.Serious
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user