From dc921ff4a843a6f7dc40ccf8099252f25114a3bb Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 17 Jun 2023 15:33:08 -0400 Subject: [PATCH] Quieter build sound / Display player name on hovered unit --- core/src/mindustry/entities/comp/BuilderComp.java | 2 +- core/src/mindustry/type/UnitType.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/entities/comp/BuilderComp.java b/core/src/mindustry/entities/comp/BuilderComp.java index b380e82af8..5b7ea1678a 100644 --- a/core/src/mindustry/entities/comp/BuilderComp.java +++ b/core/src/mindustry/entities/comp/BuilderComp.java @@ -130,7 +130,7 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{ if(!within(tile, finalPlaceDst)) continue; if(!headless){ - Vars.control.sound.loop(Sounds.build, tile, 0.51f); + Vars.control.sound.loop(Sounds.build, tile, 0.15f); } if(!(tile.build instanceof ConstructBuild cb)){ diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index 88ba318881..9c13066887 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -504,7 +504,7 @@ public class UnitType extends UnlockableContent{ table.table(t -> { t.left(); t.add(new Image(uiIcon)).size(iconMed).scaling(Scaling.fit); - t.labelWrap(localizedName).left().width(190f).padLeft(5); + t.labelWrap(unit.isPlayer() ? unit.getPlayer().coloredName() + "\n[lightgray]" + localizedName : localizedName).left().width(190f).padLeft(5); }).growX().left(); table.row();