*** the version label
Removes the version label.
This commit is contained in:
parent
5dbb9b6bba
commit
e6514d872e
@ -3,8 +3,8 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<AssemblyName>FuckYouBeta</AssemblyName>
|
<AssemblyName>FuckYouBeta</AssemblyName>
|
||||||
<Description>Fuck offs the beta warning</Description>
|
<Description>Fuck offs the beta warning (and version label in the bottom left)</Description>
|
||||||
<Version>1.0.0</Version>
|
<Version>1.2.0</Version>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<Copyright>papershredder432#0883</Copyright>
|
<Copyright>papershredder432#0883</Copyright>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
using BepInEx;
|
using BepInEx;
|
||||||
using Comfort.Common;
|
using Comfort.Common;
|
||||||
|
using EFT;
|
||||||
using EFT.UI;
|
using EFT.UI;
|
||||||
|
using HarmonyLib;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@ -20,6 +22,13 @@ namespace FuckYouBeta
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FixedUpdate()
|
void FixedUpdate()
|
||||||
|
{
|
||||||
|
HideBetaSplash();
|
||||||
|
|
||||||
|
HideWatermark();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HideBetaSplash()
|
||||||
{
|
{
|
||||||
MenuScreen screen = Singleton<CommonUI>.Instance.MenuScreen;
|
MenuScreen screen = Singleton<CommonUI>.Instance.MenuScreen;
|
||||||
if (screen == null) return;
|
if (screen == null) return;
|
||||||
@ -30,5 +39,16 @@ namespace FuckYouBeta
|
|||||||
field.SetValue(screen, e);
|
field.SetValue(screen, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void HideWatermark()
|
||||||
|
{
|
||||||
|
PreloaderUI preloaderUi = Singleton<PreloaderUI>.Instance;
|
||||||
|
if (preloaderUi == null) return;
|
||||||
|
|
||||||
|
var field = typeof(PreloaderUI).GetField("_alphaVersionLabel", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||||
|
var e = field.GetValue(preloaderUi) as LocalizedText;
|
||||||
|
|
||||||
|
e.GameObject.SetActive(false);
|
||||||
|
field.SetValue(preloaderUi, e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user