Examine prediction (#23565)
* Initial prediction * new group handling * groups for all examines that use multiple rn * compile * why was it doing this?? * handle newlines with sorting properly
This commit is contained in:
@@ -14,8 +14,13 @@ public abstract partial class SharedGunSystem
|
||||
if (!args.IsInDetailsRange || !component.ShowExamineText)
|
||||
return;
|
||||
|
||||
args.PushMarkup(Loc.GetString("gun-selected-mode-examine", ("color", ModeExamineColor), ("mode", GetLocSelector(component.SelectedMode))));
|
||||
args.PushMarkup(Loc.GetString("gun-fire-rate-examine", ("color", FireRateExamineColor), ("fireRate", $"{component.FireRate:0.0}")));
|
||||
using (args.PushGroup(nameof(GunComponent)))
|
||||
{
|
||||
args.PushMarkup(Loc.GetString("gun-selected-mode-examine", ("color", ModeExamineColor),
|
||||
("mode", GetLocSelector(component.SelectedMode))));
|
||||
args.PushMarkup(Loc.GetString("gun-fire-rate-examine", ("color", FireRateExamineColor),
|
||||
("fireRate", $"{component.FireRate:0.0}")));
|
||||
}
|
||||
}
|
||||
|
||||
private string GetLocSelector(SelectiveFire mode)
|
||||
|
||||
Reference in New Issue
Block a user