Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
32d51c84ac | ||
![]() |
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.1</Version>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<Copyright>papershredder432#0883</Copyright>
|
<Copyright>papershredder432#0883</Copyright>
|
||||||
|
@ -6,7 +6,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace FuckYouBeta
|
namespace FuckYouBeta
|
||||||
{
|
{
|
||||||
[BepInPlugin("com.FuckYouBeta", "Fuck You Beta", "1.0.0")]
|
[BepInPlugin("com.FuckYouBeta", "Fuck You Beta", "1.2.1")]
|
||||||
public class Plugin : BaseUnityPlugin
|
public class Plugin : BaseUnityPlugin
|
||||||
{
|
{
|
||||||
private void Awake()
|
private void Awake()
|
||||||
@ -21,8 +21,15 @@ namespace FuckYouBeta
|
|||||||
|
|
||||||
void FixedUpdate()
|
void FixedUpdate()
|
||||||
{
|
{
|
||||||
|
HideBetaSplash();
|
||||||
|
|
||||||
|
HideWatermark();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HideBetaSplash()
|
||||||
|
{
|
||||||
|
if (Singleton<CommonUI>.Instance == null) return;
|
||||||
MenuScreen screen = Singleton<CommonUI>.Instance.MenuScreen;
|
MenuScreen screen = Singleton<CommonUI>.Instance.MenuScreen;
|
||||||
if (screen == null) return;
|
|
||||||
|
|
||||||
var field = typeof(MenuScreen).GetField("_alphaWarningGameObject", BindingFlags.NonPublic | BindingFlags.Instance);
|
var field = typeof(MenuScreen).GetField("_alphaWarningGameObject", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||||
var e = field.GetValue(screen) as GameObject;
|
var e = field.GetValue(screen) as GameObject;
|
||||||
@ -30,5 +37,16 @@ namespace FuckYouBeta
|
|||||||
field.SetValue(screen, e);
|
field.SetValue(screen, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void HideWatermark()
|
||||||
|
{
|
||||||
|
if (Singleton<PreloaderUI>.Instance == null) return;
|
||||||
|
PreloaderUI preloaderUi = Singleton<PreloaderUI>.Instance;
|
||||||
|
|
||||||
|
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