EvilMcEvilFace-ImmersivePlanetIntroForVanillaHud icon

ImmersivePlanetIntroForVanillaHud

Shows Y4NGZUI's Immersive planet introduction card during the landing while the base game (Vanilla) HUD theme is selected. Uses Y4NGZUI's own card, so it looks and types exactly like the Immersive theme's.

Last updated 2 hours ago
Total downloads 9
Total rating 0 
Categories AI Generated
Dependency string EvilMcEvilFace-ImmersivePlanetIntroForVanillaHud-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305
Y4NGZ313-Y4NGZUI-1.0.3 icon
Y4NGZ313-Y4NGZUI

Two new HUD themes, helmet visor effects and an in-game menu to tune every HUD element.

Preferred version: 1.0.3

README

Immersive Planet Intro for the Vanilla HUD

A small BepInEx addon for Y4NGZUI. It shows Y4NGZUI's Immersive planet introduction — the typed moon card with the rotating globe, weather, hazard and conditions — during the landing while the base game (Vanilla) HUD theme is selected.

The Vanilla theme normally draws the stock Lethal Company moon card. With this addon, the Immersive card is drawn instead, while every other part of the HUD stays vanilla.

How it works

Y4NGZUI's Immersive theme draws the moon card with VisorFramePlanetCardAttachment, a card built for its visor glass layer. That card only exists while the Immersive theme (and its visor frame) is active, so selecting Vanilla never builds it.

This addon:

  1. Waits for Y4NGZUI and reads HudThemePackages.Active through reflection. It acts only when no theme package is active, i.e. the Vanilla/base game HUD.
  2. Watches the stock HUDManager.planetIntroAnimator for the PlanetIntro / PlanetIntro 0 states, exactly like Y4NGZUI's own PlanetCardPresenter does.
  3. Creates a screen-space plane on the HUD canvas and lends it to Y4NGZUI as ImmersiveFrame.Plane, then asks Y4NGZUI to build its real VisorFramePlanetCardAttachment on it. The addon does not reimplement the card: the globe meshes, font, colors, caret, typing animation and typing ticks all come from Y4NGZUI.
  4. Copies the planet name, conditions and hazard level from the stock card, plays the card with Y4NGZUI's own cue, and steps its animation each frame.
  5. Hides the stock card underneath with a CanvasGroup (the animator keeps running, so the intro still ends normally), then restores it when the intro finishes.

Everything is accessed by reflection, so the addon has no compile-time dependency on Y4NGZUI, Y4NGZCore or a specific build of either, and it idles if Y4NGZUI is not installed.

Install

  1. Install BepInEx 5 and Y4NGZUI 1.0.3 (with its y4ngz-ui-themes.bundle files) as usual.
  2. Drop ImmersivePlanetIntroForVanillaHud.dll into BepInEx/plugins/ImmersivePlanetIntroForVanillaHud/.
  3. In Y4NGZUI's in-game menu, set Theme → HUD Theme to Vanilla.

Hairline and Immersive already draw their own planet cards, so the addon does nothing on those themes. It is client-side, like Y4NGZUI itself, so other players do not need it.

Settings

BepInEx/config/com.immersiveplanetintro.lethalcompany.cfg, section General:

Setting Default Meaning
Enabled true Show the Immersive card on the Vanilla HUD.
Card Scale 1 Card size. 1 matches the card's size on the visor (about 45% of the screen width at 1080p). Useful range 0.5–2.
Log Activity true One log line each time the card is shown.

Build

dotnet build final/ImmersivePlanetIntroForVanillaHud/ImmersivePlanetIntroForVanillaHud.csproj -c Release \
  -p:GameDir="C:/Program Files (x86)/Steam/steamapps/common/Lethal Company"

GameDir (or the LETHAL_COMPANY_DIR environment variable) must point at the install that contains Lethal Company_Data/Managed and BepInEx/core. Add -p:DeployToPlugins=true to copy the DLL into BepInEx/plugins/ImmersivePlanetIntroForVanillaHud.

Notes and limits

  • Built from the shipped Y4NGZUI 1.0.3 code. It relies on Y4NGZUI's internal VisorFramePlanetCardAttachment, VisorFrameAttachment.Open and ImmersiveFrame.Plane; a future Y4NGZUI release that renames or restructures those will make the addon idle (it logs why) instead of breaking the HUD.
  • The card is drawn on the HUD canvas rather than on the visor glass, so it sits at the same screen position and size the Immersive card has on the visor, but it does not bend with the visor or react to helmet lighting.
  • The addon was compiled against the Lethal Company managed assembly surface, but it was not run inside the game in this workspace. Watch the BepInEx log for [ImmersivePlanetIntro] lines while landing to confirm it draws.