Eymistaken's HUD 1.2.5-1
Curse Maven Snippet
What's new
This update gives a pressed key's label a color of its own, separate from the color that fills the key, makes Save Config in the HUD Editor confirm that it saved, and fixes a round of problems found while auditing the mod, several of which could lose settings.
Full documentation for everything below: https://eymistaken.github.io/Eymistaken-s-HUD-Website/
Choose the color of a pressed key's label
A key's label had a color for when the key is at rest, but none for when it is pressed. The designer's PRESSED color looked like that setting, yet it painted the key itself: the press fill, the glow and the ring. There was no way to choose what the letter looks like while the key is held.
Keys now have three colors. TEXT is the label at rest, PRESSED TEXT is the label while the key is held, and ACCENT is the old PRESSED color under a name that says what it does. All three can be set in the designer's inspector for a single key; a key with no color of its own follows the module. On the settings screen, the Keystrokes page's STYLE tab adds Auto Pressed Text and Pressed Text Color, and Pressed Color is now Accent Color.
Auto Pressed Text is on by default and keeps the look you have today: on designs whose fill covers the key, the label turns dark or light so it stays readable against the fill, and on designs that leave the key empty, it takes the accent color. Setting Pressed Text Color turns Auto off, and a pressed text color set on a single key in the designer applies to that key either way. Picking a design from the gallery turns Auto back on and clears the pressed text colors of single keys, because each design's palette was drawn to be read that way.
Existing configs load with Auto on and look the same as before. The new colors are carried in share codes, undone by Ctrl+Z in the designer like any other change, and cleared by Reset Layout. A keystrokes code made with this version still imports into older versions, without its pressed text color.
Save Config confirms the save
Save Config in the HUD Editor's menu gave no sign that anything had happened, so it was easy to click it again and again and end up with a list of identical configs. The row now reads Saved! for a moment and the bottom of the menu names the preset it created. Clicks are ignored until the confirmation has passed, so one press makes one config. If the save fails, the menu says so instead.
Fixes
Changes made from the title screen were lost on joining a server that has its own server config, because that server's saved layout loaded over them. They now carry over and are saved to that server, and the server's previous config is kept in Configs as a preset named Backup, followed by the date, the time and the server.
The Keystrokes Designer saved only when it was closed normally, so being disconnected or kicked while it was open threw away everything done in it. It now saves however it closes. CANCEL on the settings screen could also undo work done in the designer or the HUD Editor when either had been opened from there; it now undoes only what was changed on the settings screen itself.
A config file that could not be read was replaced with defaults and overwritten without a trace. It is now kept beside the new one as simplecps.json.unreadable- followed by the date, so the settings in it can still be recovered by hand.
Pure white could not be chosen as a single key's color. It was read as "follow the module", so the inspector went on showing GLOBAL; it can now be chosen like any other color. Reset All left the keystrokes without their default squish animation.
With Sweep or Cascade added to Baseline, a pressed key's label disappeared into the fill. On Frame and Segment with no fill, a pressed label turned black or white over an empty key; it now takes the accent color.
Keys could stay lit after Alt+Tab when they were released while the game was in the background. Held keys are now checked against the game's own key state every tick, and all of them are released when the window loses focus. Timeline drew a key released while the HUD was hidden with F1 as one long bar, because presses were recorded only while the HUD was drawn; they are now recorded every tick.
The HUD Editor opened empty while the HUD was hidden with F1, since the game skips drawing the HUD entirely while it is hidden. The editor now shows the HUD while it is open and hides it again when it closes.
On CPS, FPS, Ping and Reach, the background was drawn 2 pixels up and to the left of the box the HUD Editor shows and places. It now fills that box exactly, which moves these modules 2 pixels right and down when their background is on.
Reach printed its distance with a decimal comma on systems set to some languages, such as Turkish or German. It now always reads 2.85 blocks.
A third-party module that threw an error while running, or a plugin built against classes this version no longer has, crashed the game. The failing module is now set aside, the error is written to the log once, and the rest of the HUD keeps working.
The Keystrokes Designer ran at well under half the HUD Editor's frame rate, felt most while dragging a selection box. The checkerboard behind its canvas was drawn as some 1,500 separate squares every frame and is now drawn in a single pass.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include



