v1.3.0.1 (Epic Store release)

This commit is contained in:
Regalis11
2024-03-28 18:34:33 +02:00
parent 81ca8637be
commit 3791670c42
269 changed files with 13160 additions and 2966 deletions
@@ -9,7 +9,7 @@ namespace Barotrauma
{
static partial void CreateConsentPrompt()
{
if (consentTextAvailable)
if (ConsentTextAvailable)
{
var background = new GUIFrame(new RectTransform(GUI.Canvas.RelativeSize, GUI.Canvas), style: "GUIBackgroundBlocker");
var frame = new GUIFrame(new RectTransform(new Vector2(0.5f, 0.7f), background.RectTransform, Anchor.Center) { MinSize = new Point(800, 0), MaxSize = new Point(1500, int.MaxValue) });
@@ -20,8 +20,13 @@ namespace Barotrauma
AbsoluteSpacing = GUI.IntScale(15)
};
string consentTextTag = "statisticsconsenttext";
if (EosInterface.IdQueries.IsLoggedIntoEosConnect)
{
consentTextTag = "statisticsconsenteostext";
}
new GUITextBlock(new RectTransform(new Vector2(1.0f, 0.0f), content.RectTransform), TextManager.Get("statisticsconsentheader"), font: GUIStyle.SubHeadingFont, textColor: Color.White);
var mainText = new GUITextBlock(new RectTransform(new Vector2(1.0f, 0.0f), content.RectTransform), RichString.Rich(TextManager.Get("statisticsconsenttext")), wrap: true);
var mainText = new GUITextBlock(new RectTransform(new Vector2(1.0f, 0.0f), content.RectTransform), RichString.Rich(TextManager.Get(consentTextTag)), wrap: true);
foreach (var data in mainText.RichTextData)
{
@@ -30,7 +35,7 @@ namespace Barotrauma
Data = data,
OnClick = (GUITextBlock component, GUITextBlock.ClickableArea area) =>
{
GameMain.ShowOpenUrlInWebBrowserPrompt("https://gameanalytics.com/privacy/");
GameMain.ShowOpenUriPrompt("https://gameanalytics.com/privacy/");
}
});
}
@@ -70,7 +75,7 @@ namespace Barotrauma
}
yield return CoroutineStatus.Success;
}
buttonContainerSpacing(0.2f);
var noBtn = new GUIButton(new RectTransform(new Vector2(0.3f, 1.0f), buttonContainer.RectTransform), TextManager.Get("No"));