HUD and theme
The framework's HUD is built on CommonUI and draws everything from one theme asset, so a copy of the theme restyles every screen without editing a widget. The HUD only reads replicated state: the player's ability system and attributes, the inventory, the score and the game state. The screens, the match's stats, chat and votes live in the UI module.
UMobaHUDSubsystem puts the HUD up for every local player once they control a match's player controller, and takes it
down when they leave. The class is Project Settings > Pioneer MOBA Framework > UI > HUD Class (by default
UMobaHUDScreen).
The HUD
- The command bar at the bottom: the champion's portrait and level, a stats grid (attack damage, armor, ability power, magic resist, attack speed, critical chance, move speed and range), the passive, Q, W, E and R, the summoner spells on D and F, health and mana, the items on 1, 2, 3, 5, 6 and 7, the ward on 4, recall, and gold. An ability slot shows its cooldown as a sweep with the seconds left, its rank as pips, and turns grey while the champion lacks the mana. While an ability point can go into a slot, its edge glows and a plus sits on its corner; a left click on the slot puts the point there.
- Tooltips on every ability slot, the ward and recall, every item slot and every item in the shop. An ability's tooltip shows its name and key, rank, cooldown, mana cost and range, and its Description with this rank's numbers and the champion's stats. While a point can go into it, each number the next rank changes reads "now → next". An item's shows its cost, tier, stats, Description, what it is built from and what it builds into.
- The channel bar above the command bar while the champion channels: the channel's name, the seconds left and a fill. An interrupted channel says so in red. It shows only on the channeller's screen.
- The score at the top right: the team kills, the player's K/D/A and minion kills, and the match clock. A gear at the end of the plate opens the match's settings.
- The kill feed under it: champion, structure and epic-objective kills, with a kill's bounty, 6 s each and 5 at
most. The lines come from the string table
PioneerMobaMatch, so they translate. - While dead: a ring at the top counts down to the respawn, and a death recap names the killer and lists the damage each source dealt in the last 10 s, split into physical, magic and true.
- Gold gained floats up over its source, on the screen of the player who got it.
- Health bars over units, team colored; champions add their level, mana and a white shield segment. A bar floats
40 cm above its unit but never more than 3 m above the unit's feet, so a tall tower's bar stays in view. A scene
component tagged
Moba.HealthBarin a unit's Blueprint puts the bar there instead. - The attack cursor over an enemy a right-click would attack: the theme's Attack Cursor.
- Settings on Escape: the main menu's settings panel over the match, which goes on underneath. Escape first cancels an aimed ability or an armed attack-move and closes the shop; otherwise it opens the settings. In Play In Editor, use F10 or the gear.
Each part is built by its own function on UMobaHUDScreen, so a project replaces one part by subclassing the screen,
overriding that function, and naming the subclass as the HUD Class.
The minimap
At the bottom right: the map seen from above with +X up, units and structures as team-colored dots, the fog of war and the pings. Its picture is the Minimap Texture of the map's Fog Of War Volume, and it covers that volume's box.
- A left click moves the camera there; holding and dragging keeps it moving. A locked camera is unlocked first.
- A right click walks the champion to that point, as a right click on the ground does; holding and dragging repeats the order.
- Alt and a click pings.
- While an ability waits for its target, such as Teleport on Normal Cast, a left click on the map casts it on the nearest unit it may take there.
Pings
Alt and a click on the ground, or on the minimap, pings there. The click gives no order. The server passes the ping to the pinging player's team only. Pinging an enemy hidden in the fog places the ping on the ground; it never reveals the unit. A player may ping 3 times in 5 s (Ping Limit, Ping Window); a ping shows for 4 s (Ping Lifetime).
Chat
Enter opens the chat box; Enter sends, Escape closes. A line goes to the team; a line that starts with /all goes to
everyone. The server checks and passes on every line. The box keeps the last 50 lines.
Scoreboard
Hold Tab: each team on its own banner.
- A row per player: the champion's portrait and name (bots carry a Bot tag), the seconds to the respawn while dead, the two summoner spells, the level, kills, deaths and assists, minion kills, the gold earned and the items, with their tooltips.
- Allies only: the gold earned and the summoner spells' cooldowns, which are sent only to the player's team.
- Each team's header: its kills, the enemy towers it has destroyed, each epic camp it has taken (with the Camp Definition's Icon) and, for your own team, the gold its players have earned.
The server counts the score and stats (UMobaMatchStatsComponent on each player state).
Surrender
From 15:00 of match time, a player starts a vote with F1. While a vote runs, the surrender panel shows it with Surrender and Keep playing buttons, and F1 and F2 vote yes and no. A vote lasts 60 s and passes with 70% of the team's connected players: 4 of 5, or 3 of 4 when one is disconnected. A passed vote ends the match at once with defeat for the voting team. A failed vote blocks the team from a new one for 3 minutes. If the core falls during a vote, the core decides. Vote progress goes only to the voting team.
End screen
When the core falls or a team surrenders, the end screen shows Victory or Defeat, then each player's damage dealt and taken, healing, gold, minion kills and K/D/A. Play again goes back to the main menu and starts Find match; Main menu goes to the menu.
The theme
Every screen, the HUD and the front end alike, draws with the theme named in Project Settings > Pioneer MOBA
Framework > UI > HUD Theme, a UMobaUITheme Data Asset. The framework's own is
/PioneerMOBA/UI/DA_HUDTheme_Hearthwood: dark oak and forged iron, with war-banner pop-ups, a firelit hall behind the
lobby, champion select and loading, and Riftwood carved into a war table behind the main menu. Its painted pieces are
in /PioneerMOBA/UI/Kit.
The theme holds:
- the four text styles (title, heading, body, label);
- the team, accent, positive, pending and muted colors;
- the CommonUI button styles, among them the primary button for Accept, Start, Lock in and Host, and the Play button;
- the brushes of plaques, banners, rows and bars, with the room each keeps around what it holds;
- the HUD's own pieces: the HUD panel behind the command bar and the minimap's frame, the slot well an ability or an item sits in, the portrait frame, the level badge, the gauge around the health and mana bars, and the tooltip's panel;
- the Attack Cursor and the Menu Icon;
- Screen Background (behind the lobby, champion select and loading) and Menu Background (behind the main menu), each a flat color or a picture.
Restyle
- Copy
DA_HUDTheme_Hearthwoodinto your project'sContentfolder. - Change the copy's colors, fonts, button styles and brushes.
- Name the copy in Project Settings > Pioneer MOBA Framework > UI > HUD Theme.
Every screen follows; no widget has to be edited. A new, empty theme starts as a plain dark look. A theme you name there
is cooked into a packaged game, because naming it writes its path into Config/DefaultGame.ini.
A background picture is drawn whole: it fills the screen with its shape kept, centered, and what overflows is cut off, so a 16:9 picture loses about 5% at each side on a 16:10 screen and 12.5% at the top and bottom on a 21:9 one. Set the brush's Image Size to the picture's size, keep what matters inside that safe area, and import the texture as BC7 with no mip maps and texture group UI.
Settings
Project Settings > Pioneer MOBA Framework > Match Flow holds the in-match settings:
| Setting | Default |
|---|---|
| Kill Feed Entry Time, Kill Feed Max Entries | 6 s, 5 |
| Death Recap Window | 10 s |
| Ping Limit, Ping Window, Ping Lifetime | 3, 5 s, 4 s |
| Surrender Start Time, Surrender Vote Time | 15:00, 60 s |
| Surrender Threshold, Surrender Cooldown | 0.7, 3 minutes |
Console commands
Outside Shipping builds:
| Command | What it does |
|---|---|
Moba.Scoreboard [1|0] | Shows or hides the scoreboard without holding Tab |
Moba.EndMatch [Blue|Red] | Ends the match with a winner |
Moba.Say [/all] text | Says a line to the team, or to everyone |
Moba.Surrender [yes|no] | Votes to surrender, which opens a vote, or votes no |