Skip to content

feat: allow custom ping string format#27

Open
JustAlittleWolf wants to merge 6 commits intoTheKodeToad:mainfrom
JustAlittleWolf:feature/ping-format
Open

feat: allow custom ping string format#27
JustAlittleWolf wants to merge 6 commits intoTheKodeToad:mainfrom
JustAlittleWolf:feature/ping-format

Conversation

@JustAlittleWolf
Copy link
Contributor

This allows for custom formats like "%pms" which would be displayed as "10ms" for a ping of 10 milliseconds.

  • added a static Utils.getPingText method to get the ping text of a given latency
  • moved shiftPing from the NumeralConfig to the Utils class
  • added yacl config options for configuring the format of the ping string. The placeholder %p can be used to reference the numeric ping value

As is the custom format would most likely intersect with player names, which looks bad. #25 would fix this issue. This PR is marked as a draft until #25 is merged, as the tablist width logic needs adjusting to match the new ping format of this PR.

JustAlittleWolf and others added 2 commits July 2, 2025 09:43
This allows for custom formats like "%pms" which would be displayed as "10ms" for a ping of 10 milliseconds.
- added a static Utils.getPingText method to get the ping text of a given latency
- moved `shiftPing` from the NumeralConfig to the Utils class
- added yacl config options for configuring the format of the ping string. The placeholder %p can be used to reference the numeric ping value
@JustAlittleWolf JustAlittleWolf marked this pull request as ready for review November 6, 2025 12:46
@JustAlittleWolf JustAlittleWolf marked this pull request as draft November 6, 2025 12:49
@JustAlittleWolf JustAlittleWolf marked this pull request as ready for review January 5, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant