• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Changing HUD stats

Level 1
Joined
Dec 25, 2024
Messages
2
I've seen that one of the Defense of the Ancients maps manages to manipulate the HUD and replace the lumber and upkeep sections with other information.

image_2024-12-27_201209974.png


Now this has me wondering: how can I do something similar? I'm making a scenario myself in the world editor and would love to replace Lumber with something else I'd like to keep track of, such as how many creep camps there currently are on the map. Any ideas on how to achieve such an effect?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Also, if you're on version 1.31+ you have access to custom UI frame logic, but it's only accessible in code form.

Here's an example of both a custom Error message as well as a custom Upkeep frame:
You're likely only interested in the Upkeep frame which I show at the very bottom of the thread.

This design has two perks:
1) It can be updated at runtime with any text you want.
2) It hides the tooltip that appears when you mouse over it. (You could even code your own custom tooltip)

I actually use the Upkeep frame as a clock in a map I used to work on, handling everything on it's own. This freed up Gold and Lumber which allowed us to use them for other game mechanics. But the sky is the limit with these custom frames, you could literally create your own interface from scratch.
 
Last edited:
Top