*** the version label
Removes the version label.
This commit is contained in:
parent
5dbb9b6bba
commit
e6514d872e
@ -3,8 +3,8 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<AssemblyName>FuckYouBeta</AssemblyName>
|
||||
<Description>Fuck offs the beta warning</Description>
|
||||
<Version>1.0.0</Version>
|
||||
<Description>Fuck offs the beta warning (and version label in the bottom left)</Description>
|
||||
<Version>1.2.0</Version>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Copyright>papershredder432#0883</Copyright>
|
||||
|
@ -1,6 +1,8 @@
|
||||
using BepInEx;
|
||||
using Comfort.Common;
|
||||
using EFT;
|
||||
using EFT.UI;
|
||||
using HarmonyLib;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
|
||||
@ -20,6 +22,13 @@ namespace FuckYouBeta
|
||||
}
|
||||
|
||||
void FixedUpdate()
|
||||
{
|
||||
HideBetaSplash();
|
||||
|
||||
HideWatermark();
|
||||
}
|
||||
|
||||
private void HideBetaSplash()
|
||||
{
|
||||
MenuScreen screen = Singleton<CommonUI>.Instance.MenuScreen;
|
||||
if (screen == null) return;
|
||||
@ -30,5 +39,16 @@ namespace FuckYouBeta
|
||||
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