Skip to content

Change the UI theme

The HUD, the windows and the menus take their colours, fonts and backgrounds from one Data Asset, DA_UIStyle. You give the interface green accents, taller title bars and bigger menu buttons without opening a widget, then a typeface and a menu picture of your own. The how-to page Restyle the interface is the full reference of the asset.

How the asset is organised

Content/ZombieSurvival/DataAssets/UI/DA_UIStyle sits next to its class, PDA_UIStyle: there is no Childs/ folder here. It holds four named tables.

Table What it holds
Colors Every colour, from the panel background to the need colours. ConditionBar and SourceIconTint are here.
Sizes Text sizes, heights, widths and paddings. Only TitleBarHeight and SourceTilePadding are read: the others are reference data and change nothing on screen.
Fonts One entry per kind of text, such as Title, Body or MenuButton.
Brushes The brushes, from the panel and the title bar to the menu backdrops, and the three loot source tiles SourceTile, SourceTileHover and SourceTileSelected.

Next to them, ContainerKinds, FallbackContainerIcon, GroundSourceName and GroundSourceIcon hold the names and pictures of the loot source column.

Most widgets have a Style field whose default is DA_UIStyle. Many of them name, in an ApplyStyle function, the Fonts and Colors keys each of their texts uses. Pointing one widget's Style at another style asset restyles that widget alone.

Steps

1. Open the style asset

Open DA_UIStyle. To keep a way back, duplicate it first as a backup, or commit the project to your source control.

2. A green condition bar

In Colors, find ConditionBar. It is the thin bar under the icon of an item that has a state, such as a weapon or a tool. Set it to a green, for example R 0.2, G 0.8, B 0.3, A 1.

3. A green outline on the selected source

In Brushes, find SourceTileSelected, the active tile of the loot source column. It ships with a black fill and a 2-unit orange outline. In its outline settings, set the outline colour to the same green.

Keep the fill dark. Several furniture pictures are light beige, and a mid-grey fill makes them hard to read.

4. Taller title bars

In Sizes, set TitleBarHeight from 28 to 34. Every window changes at once and gets more room for descenders.

5. Bigger menu buttons

In Fonts, open MenuButton and raise its Size by 2.

6. Save and look

  1. Save DA_UIStyle.
  2. Open Content/ZombieSurvival/Maps/L_Boot and press Play. The main menu buttons are larger.
  3. Open Content/ZombieSurvival/Maps/L_World and press Play. Every window has a taller title bar, and the baseball bat in your bag shows a green bar under its icon.
  4. Walk into a house and search a piece of furniture with E. The selected tile of the source column has a green outline.

The bag after the change: the green condition bar under the bat, and the taller title bars of the two windows.

A widget reads the style when it is built, so restart Play after each change.

7. A typeface of your own (optional)

The interface uses Roboto from your own engine install, /Engine/EngineFonts/Roboto, named in the Fonts table. No font ships in Content/ZombieSurvival/. This step has not been played as written.

  1. Import your font files into a folder of yours under Content/ZombieSurvival/, for example a new first-level Fonts/ folder: the first level of the layout is the asset type. You need a Font asset that lists the faces.
  2. In Fonts, open each entry you want in the new typeface. Set its font family to your Font asset and its typeface to one of its faces. Each entry names its own font, so a whole new typeface is one change per entry.
  3. Save, and check the menus and the HUD again.

Use a font file whose licence lets you ship it: that licence is yours to check. For Roboto, THIRD-PARTY.md section 4 states both licences that may apply.

8. Your own menu picture (optional)

Every menu screen shows Textures/UI/T_UI_MenuBackdrop, a 3840 × 2160 painted picture, under Materials/UI/M_UI_MenuGradient (MenuBackdrop in Brushes), which darkens the left side behind the buttons.

  1. Reimport your own 3840 × 2160 key art over T_UI_MenuBackdrop (right-click, Reimport with New File), so every reference keeps pointing at it.
  2. If your picture is lighter or darker, open Materials/UI/M_UI_MenuGradient and change the default values of LeftOpacity, RightOpacity, FadeStart and FadeEnd until the buttons read well.
  3. Open Maps/L_MainMenu and press Play.

What the style asset does not reach

  • WBP_Tooltip, the body of a tooltip, holds a text but no reference to the style asset.
  • WBP_ActionBar keeps its own fill colour for the progress bar.
  • The window geometry is not in the style. FrameWidth, MinBodyHeight and ExpandedBodyHeight are Settings on WBP_PanelFrame, set per window inside WBP_HUD. Windows cannot be resized in play.
  • The radial ring's colours are parameters of MI_UI_RadialSectors, not style keys.

If it does not work

  • Nothing changed: Play was not restarted, or you edited a Sizes key other than TitleBarHeight or SourceTilePadding. The others are not read.
  • One widget keeps the old look: its Style points at another style asset, or it holds no reference to the style at all, like WBP_Tooltip.