UI improvements for holopads (#34055)

* Initial commit

* Minor update
This commit is contained in:
chromiumboy
2024-12-28 17:33:15 -06:00
committed by GitHub
parent 01980cb0bf
commit 6c465153ab
7 changed files with 57 additions and 17 deletions

View File

@@ -36,4 +36,21 @@ public abstract class SharedTelephoneSystem : EntitySystem
return callerId;
}
public string GetFormattedDeviceIdForEntity(string? deviceName, Color fontColor, string fontType = "Default", int fontSize = 12)
{
if (deviceName == null)
{
return Loc.GetString("chat-telephone-unknown-device",
("color", fontColor),
("fontType", fontType),
("fontSize", fontSize));
}
return Loc.GetString("chat-telephone-device-id",
("deviceName", deviceName),
("color", fontColor),
("fontType", fontType),
("fontSize", fontSize));
}
}