1
0
mirror of synced 2024-11-28 01:20:51 +01:00
ImHex/plugins
paxcut 54f5bd1d80
feat: Added underwaved text functions (#1889)
### Problem description
Currently when errors are found the entire line where the error occurred
is highlighted and one has to look at the error message in order to find
where the error is located on the line. With this PR the line will no
longer be highlighted and the location of the error will be marked with
an red waved line under the error location. Hovering over the text where
the error occurred produces an error overlay so if several errors occur
on the same line they can all be seen separately.

### Implementation description
The definition of error marker was switched to include column and size
as well as line and message like before.
This change required changing the way view pattern editor draws the
error markers because the errors themselves don't have size information.
Also, a new errorHoverBoxes type was defined to help in the detection of
the floating error messages when error is hovered.

Note that the underwave code depends on having a monospaced. If font is
not monospaced the underwaved text can be short/long or displaced.


### Screenshots

![image](https://github.com/user-attachments/assets/f0b08e10-612c-404a-8863-d4f00054d198)


![image](https://github.com/user-attachments/assets/911fcacb-2a1e-431f-bbc8-8e05bcd61341)
2024-09-15 15:19:04 +02:00
..
builtin feat: Added underwaved text functions (#1889) 2024-09-15 15:19:04 +02:00
decompress impr: Add streaming decompression to zstd_decompress (#1898) 2024-09-15 15:16:57 +02:00
diffing lang: Update Chinese (Simplified) translations (#1894) 2024-09-15 15:17:25 +02:00
disassembler fix: Task names not displaying correctly anymore 2024-07-27 14:09:52 +02:00
fonts fix: Crash on exit when using custom font from file (#1815) 2024-07-15 22:22:02 +02:00
hashes fix: Segfault when hashing regions spanning multiple MiBs (#1804) 2024-07-21 20:35:38 +02:00
script_loader lang: Update Chinese (Simplified) translations (#1894) 2024-09-15 15:17:25 +02:00
ui lang: Update Chinese (Simplified) translations (#1894) 2024-09-15 15:17:25 +02:00
visualizers lang: Update Chinese (Simplified) translations (#1894) 2024-09-15 15:17:25 +02:00
windows lang: Update Chinese (Simplified) translations (#1894) 2024-09-15 15:17:25 +02:00
yara_rules fix: Task names not displaying correctly anymore 2024-07-27 14:09:52 +02:00