Start here

↑ ↓ to move, Enter to openKeyword search
Guides

Customizing HUD and Menu Colors (Your First Code Mod)

Goal
recolor Halo Campaign Evolved's menus and in-game HUD at runtime, and understand how to write a clean UE4SS Lua mod for Unreal UI assets
Time
about ten minutes to try the example mod; thirty minutes to write your own
You need
Halo Campaign Evolved with MJOLNIR / UE4SS installed, and a text editor

Goal: recolor Halo Campaign Evolved's menus and in-game HUD at runtime, and understand how to write a clean UE4SS Lua mod for Unreal UI assets Time: about ten minutes to try the example mod; thirty minutes to write your own You need: Halo Campaign Evolved with MJOLNIR / UE4SS installed, and a text editor

If you tried editing chud color settings in the Tag Editor and saw nothing change in game, you ran into the core architectural split of Halo Campaign Evolved. This guide explains why Blam CHUD tags are inert, where the game's cyan UI and HUD theme actually lives in Unreal Engine 5, and walks through mods/MJOLNIRHudColor as a working, event-driven UE4SS Lua mod you can use directly or fork as a template.


Why editing chud tags does nothing

Halo Campaign Evolved splits work cleanly between two engines (tag_data_pipeline.md):

  • Blam (HaloSimulation_tag_release.dll) runs gameplay simulation only — weapons, vehicles, physics, damage, AI, and game rules.
  • Unreal Engine 5 (HaloUI + /Script/Meteorite) owns all rendering, every frontend menu (WBP_MainMenu, campaign, settings, pause), and the entire in-game HUD (WBP_HUD_Main, shield bar, weapon/grenade cradles, motion tracker, reticles, objectives).

The shipped containers still carry 286 legacy Reach-era tags under Tags/ui/chud/ (including globals-chud_globals_definition, v_falcon_chingun, v_revenant, and spike_rifle). Those are leftovers on the simulation side: zero Unreal UI, HUD, or Blueprint assets import any Tags/ui/chud/* tag, and HaloCampaignEvolved.exe never reads CHUD color fields to draw anything.


Do you need to recook Unreal assets?

No. You only need an Unreal Engine 5 cook when authoring brand-new widget trees, textures, or material shader graphs (custom_ui.md). The shipped UI and HUD materials already expose their theme colors through standard UE5 runtime surfaces that UE4SS Lua can update directly — with zero modified game containers and instant live switching.


Where the cyan theme actually lives

Measured live against the shipping build (2026.08.11.1121610.2-Rel-i343-Meteorite-2607-CU4), the cyan-blue theme spans four UE5 layers:

1. Shared Material Parameter Collections (46+ materials at once)

/Game/UI/Shared/Material_Parameter_Collections/MPC_MetUI_ColorLibrary is imported by 46 UI and HUD materials — main menu button backgrounds and glows (M_MetUI_ButtonDefault), footer bars (M_MeteoriteFooterBar), dotted frames (M_BorderStyle_Dotted), cooldown bars, booster bars, heat meters, motion tracker blips, navpoints, and shield meter effects.

ParameterShipped linear RGBApprox. sRGBRole
MET Base Alt(0.016, 0.144, 0.175)#226A74Dark accents and backdrops
MET Blue(0.095, 0.407, 0.497)#57ABBBPrimary menu and UI chrome
MET HUD Blue(0.084, 0.558, 0.687)#52C5D8Primary in-game HUD accent
MET Light Blue(0.366, 0.871, 1.000)#A3F0FFFocus / highlight state
Footer Color 1(0.376, 0.973, 0.930)#A5FCF7Footer highlight
Footer Color 2(0.122, 0.305, 0.292)#629693Footer muted accent
MET Blue Gray(0.289, 0.569, 0.641)#92C7D1Muted dividers and labels
Alert Red, Alert Yellow, Dead Red——Leave untouched so warnings stay readable

/HaloUI/Assets/MPCs/MPC_HaloUI_ColorLibrary also holds Light Blue, Gray Blue, and White Blue for M_MetUI_HUDFillingBar and M_MetUI_CooldownBar.

Setting a vector parameter takes one call through KismetMaterialLibrary:

local kml = StaticFindObject("/Script/Engine.Default__KismetMaterialLibrary")
local mpc = StaticFindObject(
    "/Game/UI/Shared/Material_Parameter_Collections/MPC_MetUI_ColorLibrary.MPC_MetUI_ColorLibrary"
)
kml:SetVectorParameterValue(world, mpc, FName("MET Blue"), { R = 0.694, G = 0.254, B = 0.016, A = 1.0 })

World-load note: Unreal creates a fresh MaterialParameterCollectionInstance for each UWorld. Whenever the game travels between the Frontend menu, a campaign mission, and multiplayer, re-apply the MPC parameters on PlayerController:ClientRestart.

2. CommonTextStyle Blueprint CDOs (menu and HUD text)

Text labels do not read the MPC. Instead, CommonTextBlock widgets reference small CommonTextStyle Blueprint subclasses whose Class Default Object (CDO) holds an FLinearColor in .Color:

  • Menus: BP_MeteoriteButton_Rest_TextStyle (#56ABBB), BP_MeteoriteButton_Focus_TextStyle (#A3F0FF), BP_MeteoriteButton_Disabled_TextStyle (alpha 0.50), BP_MeteoriteDefault_TextStyle, BP_MetUI_*_MetBlue, BP_MetUI_*_LightBlue.
  • In-game HUD: BP_Cradle_MainNumber_TextStyle (magazine count), BP_Cradle_SecondaryNumber_TextStyle (reserve count, alpha 0.50), BP_Cradle_Percent, BP_InteractPrompt_Body_TextStyle, BP_MetUI_Objectives_TextStyle.

FindAllOf("CommonTextStyle") skips CDOs by default in UE4SS, so discover them with ForEachUObject and obj:IsA(ctsClass). Updating cdo.Color changes every future widget automatically (including hover/focus transitions); calling tb:SetStyle(tb.Style) on live CommonTextBlock instances refreshes screens already on viewport.

3. Per-widget in-game HUD Dynamic Material Instances

Several core HUD elements use vector parameters directly on their material instance rather than sampling the MPC:

MaterialWidgetVector parametersLeave untouched
MI_UI_HUD_ShieldMeterWBP_ShieldHealthBarShield Color, LightColor, HealthColorOvershieldColor, BorderColor, ShieldDelayedColor, HealthDelayedColor
MI_HUDCradleFrame_*Weapon, Grenade, Equipment cradlesFrameColorFrameColor_Empty (low-ammo red)
MI_ObjectiveTrackerFrame_SoloWBP_ObjectivesPanelFrameColor—
MI_HUDCradleIcon_*, MI_EquipmentCradleIconWeapon, Grenade, Equipment iconsColorA_*, ColorB_*, Color_BackdropNon-cyan overrides (e.g. MI_HUDCradleIcon_Infinite)
MI_HUDCradleAmmoBullet pipsColorA_*, ColorB_*—
MI_MotionTracker_BaseWBP_MotionTrackerEdgeColor, PlayerColorAlly/enemy blips (user Settings)
MI_HoldPrompt, MI_InteractPromptFrameWBP_InteractPrompt (HoldProgressBorder)ColorA, GradientColor_Top, GradientColor_BottomColorB (white)

Some HUD widgets (such as grenade icons and frames) start bound to a static MaterialInstanceConstant. Calling img:GetDynamicMaterial() on the live UImage promotes it to a per-widget MaterialInstanceDynamic so SetVectorParameterValue works without mutating shared cooked assets. Note that MID_MI_HoldPrompt lives on a HaloUIBorder (HoldProgressBorder) rather than a UImage, so scanning live HUD MaterialInstanceDynamic objects catches it too.

4. Direct UImage widget tints

A handful of icons tint themselves directly via Image.ColorAndOpacity or Image.Brush.TintColor — for example SquadLeaderIcon, VoiceIcon, and WarningIcon on the main menu, and InfiniteAmmoIcon* and countdown brackets on the HUD. Always filter to live runtime instances (/Engine/Transient.) and never mutate cooked templates under /Game/...:WidgetTree.


Watch out for sRGB vs. linear RGB

UE5's FLinearColor expects linear-light RGB in [0, 1], while hex colors (#RRGGBB) are sRGB. Passing 0x57 / 255 = 0.341 directly produces a washed-out pastel instead of the #57ABBB you picked (0.095 in linear light). Always run hex channels through the sRGB-to-linear transfer function first — see srgbToLinear in mods/MJOLNIRHudColor/Scripts/palette.lua.


Using the example mod (MJOLNIRHudColor)

mods/MJOLNIRHudColor implements all four layers cleanly and ships as an opt-in reference mod.

MJOLNIRHudColor uses the generic Mod Settings API. Once installed in My Mods, click Settings on the MJOLNIRHudColor card to configure it visually without editing any Lua files:

MJOLNIRHudColor settings panel inside the MJOLNIR Launcher's My Mods view

  • Theme preset — choose a built-in palette (Amber, Emerald, Crimson, Violet, Tactical Monochrome), Shipped Cyan (Default), or Custom Color….
  • Custom HUD color — appears automatically when Theme preset is set to Custom Color…, with a color swatch picker and #RRGGBB input.
  • Recolor frontend & pause menus — turn off to keep menus in shipped cyan while only recoloring the in-game HUD.
  • F5 preset cycle hotkey — toggle the in-game F5 shortcut on or off.

Changes save to <game_binaries>/ue4ss/mjolnir-settings/MJOLNIRHudColor.json (outside the signed mod folder, so the mod stays signed) and apply automatically on startup, level travel, menu open, or immediately in-game via mjolnir_hud_color reload.

Install and try it locally

  1. Copy mods/MJOLNIRHudColor into <install>/Meteorite/Binaries/Win64/ue4ss/Mods/MJOLNIRHudColor (or WinGDK on Xbox Game Pass).
  2. Add MJOLNIRHudColor : 1 to ue4ss/Mods/mods.txt above the ; Built-in keybinds / Keybinds : 1 line.
  3. Launch Halo Campaign Evolved, or open My Mods → MJOLNIRHudColor → Settings in the launcher to pick your theme or custom hex color before launching.

Live controls

ControlWhat it does
F5Cycle built-in presets (amber → emerald → crimson → violet → white → default) when enabled in Settings
mjolnir_hud_color <preset>Switch to a named preset in the ~ console (e.g. mjolnir_hud_color emerald)
mjolnir_hud_color #RRGGBBDerive a full 6-shade theme live from any hex color (e.g. mjolnir_hud_color #FF6600)
mjolnir_hud_color defaultRestore the exact original shipped cyan values without restarting
mjolnir_hud_color reloadRe-read ue4ss/mjolnir-settings/MJOLNIRHudColor.json immediately after editing settings in the launcher
mjolnir_hud_color_cycleCycle to the next preset from the console

Writing your own mod from this template

MJOLNIRHudColor follows the structure expected of every code mod in this repository (contributing_code_mods.md):

mods/MJOLNIRHudColor/
├── mod.json               # version, summary, category, slug, and "settings" schema
└── Scripts/
    ├── ModSettings.lua    # shared zero-dependency settings loader (byte-identical to MJOLNIRCore's copy)
    ├── palette.lua        # pure Lua (zero UE4SS globals) — unit tested in CI
    └── main.lua           # thin UE4SS runtime: hooks, commands, and applies

Five patterns worth copying into any UE4SS Lua mod you write:

  1. Event-driven, never a per-frame loop. main.lua has no tick loop. It applies once at startup, on /Script/Engine.PlayerController:ClientRestart (new UWorld), via NotifyOnNewObject when WBP_MainMenu_C, WBP_PauseMenu_C, or WBP_HUD_Main_C spawns, and on WBP_GrenadeCradle_C:OnGrenadeSwapAnimMiddlePoint when grenades swap.
  2. Use NotifyOnNewObject for Blueprint classes. RegisterHook on a /Game/... Blueprint function fails at startup if that package has not loaded yet. NotifyOnNewObject succeeds upfront and lets you bind BP_OnActivated or sibling widget hooks lazily once the package is in memory.
  3. Snapshot originals before mutating. Recording each touched parameter's shipped linear RGBA on first sight lets you switch themes repeatedly (even after the original cyan is gone) and restore default cleanly.
  4. Declare settings in mod.json, store values outside the mod directory. Using the Mod Settings API (ModSettings.lua for Lua or native/include/mjolnir_mod_settings.h for native C DLLs) gives players a native UI in the launcher while keeping signed mod folders clean and update-safe.
  5. Keep pure logic separate and unit-tested. Because palette.lua and ModSettings.lua use no UE4SS globals, tools/tests/test_hud_color.lua and tools/tests/test_mod_settings.lua run them directly under plain Lua 5.4 in CI.

What this mod intentionally leaves alone

  • Accessibility colors already in Settings (DT_HudColors* — neutral/friendly/enemy crosshair, motion tracker ally/enemy blips, directional damage, subtitles, nav markers) stay under the player's own Settings choices.
  • Gameplay warning signals (Alert Red, Alert Yellow, Dead Red, FrameColor_Empty, ShieldDelayedColor, HealthDelayedColor, OvershieldColor, white subtitles) are filtered out by classifyShippedColor so combat readability is preserved regardless of theme color.

Publishing or contributing your code mod

Content mods (tags, textures, maps, sounds) upload directly to mjolnircore.com/mods/new (making_your_first_mod.md). Because UE4SS Lua mods execute arbitrary code, they ship through reviewed pull requests to this repository — see contributing_code_mods.md for the checklist (mod.json, luacheck, tools/tests/, and declaring capabilities in the PR template).