IExamine can now limit certain details behind a 'details' range check. (#1039)
* IExamine can now limit certain details behind a 'details' range check. * Comic's Review fixes. - colour -> color. My ancestors are saddened by this. - Can see wire panel opened/closed at any distance again.
This commit is contained in:
@@ -163,7 +163,7 @@ namespace Content.Server.GameObjects.Components.Interactable
|
||||
return ToggleWelderStatus(eventArgs.User);
|
||||
}
|
||||
|
||||
public void Examine(FormattedMessage message)
|
||||
public void Examine(FormattedMessage message, bool inDetailsRange)
|
||||
{
|
||||
if (WelderLit)
|
||||
{
|
||||
@@ -174,8 +174,11 @@ namespace Content.Server.GameObjects.Components.Interactable
|
||||
message.AddText(Loc.GetString("Not lit\n"));
|
||||
}
|
||||
|
||||
message.AddMarkup(Loc.GetString("Fuel: [color={0}]{1}/{2}[/color].",
|
||||
Fuel < FuelCapacity / 4f ? "darkorange" : "orange", Math.Round(Fuel), FuelCapacity));
|
||||
if (inDetailsRange)
|
||||
{
|
||||
message.AddMarkup(Loc.GetString("Fuel: [color={0}]{1}/{2}[/color].",
|
||||
Fuel < FuelCapacity / 4f ? "darkorange" : "orange", Math.Round(Fuel), FuelCapacity));
|
||||
}
|
||||
}
|
||||
|
||||
public void OnUpdate(float frameTime)
|
||||
|
||||
Reference in New Issue
Block a user