Center zombie counters and use ASCII HUD separators
This commit is contained in:
@@ -54,12 +54,12 @@ hud_connect()
|
||||
self.tws_hud_round = self hud_text(level.hud_overlay_timer_x,
|
||||
level.hud_overlay_round_y, "left", 1.25, level.hud_c_dim, "--:--");
|
||||
self hud_text(level.hud_overlay_brand_x, level.hud_overlay_brand_y,
|
||||
"center", 1.1, level.hud_c_dim, "TWS ZOMBIES · discord.tws.lol");
|
||||
"center", 1.1, level.hud_c_dim, "TWS ZOMBIES | discord.tws.lol");
|
||||
|
||||
self.tws_hud_count = self hud_text(level.hud_overlay_count_x,
|
||||
level.hud_overlay_count_y, "right", 1.5, level.hud_c_count, "--");
|
||||
self hud_text(level.hud_overlay_count_label_x, level.hud_overlay_count_label_y,
|
||||
"left", 1.05, level.hud_c_dim, "ZOMBIES");
|
||||
// Center the entire readout on the track, regardless of the digit count.
|
||||
count_x = level.hud_overlay_bar_x + level.hud_overlay_bar_width / 2.0;
|
||||
self.tws_hud_count = self hud_text(count_x,
|
||||
level.hud_overlay_count_y, "center", 1.25, level.hud_c_count, "-- ZOMBIES");
|
||||
|
||||
// Independent numeric elements avoid a new config string on every tick.
|
||||
// The readout appears only after a valid damaged-health sample.
|
||||
@@ -239,7 +239,8 @@ hud_zombie_counter()
|
||||
|
||||
if (remaining != last)
|
||||
{
|
||||
count SetValue(remaining);
|
||||
// Plutonium r5334+: reuse text storage as the count changes.
|
||||
count SetTextUnlimited(int(remaining) + " ZOMBIES");
|
||||
last = remaining;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user