public static void UpdateButton(LoadScreen __instance, ref SpriteObject ____creditsButton) { if (!BaseHunieModPlugin.newVersionAvailable) { return; } SpriteObject spr = GameUtil.ImageFileToSprite("update.png", "updatesprite"); if (spr != null) { ____creditsButton.SetLightness(0f); ____creditsButton.AddChild(spr); updateSprite = ____creditsButton.GetChildren(true)[____creditsButton.GetChildren().Length - 1] as SpriteObject; updateSprite.SetLocalPosition(-83, 24); updateSprite.SetOwnChildIndex(3); updateSprite.spriteAlpha = 0f; } }