Quieter build sound / Display player name on hovered unit
This commit is contained in:
@@ -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)){
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user