Commit Graph

75 Commits

Author SHA1 Message Date
Infi 140343e654 - Use tokinzer for URL parsing
- Regex based split for letter selector
2024-05-21 06:36:57 +02:00
Infi 47a4c5ab8d Use tokenizer for emote parsing :HideThePain: 2024-05-20 20:14:41 +02:00
Infi 51db04a5f5 - Prevent null string from being parsed
- cursor pos adjustment through preview
2024-05-19 16:33:53 +02:00
Infi 23122e924b Better input preview handling 2024-05-19 01:51:36 +02:00
Dean Sheather 0004bcb561 fix: avoid loading failed parse messages again 2024-05-14 11:23:04 +10:00
Infi 041b0f27d4 Replace all PushTextWrapPos with using version 2024-05-14 01:13:28 +02:00
Infi 0de883ec39 Display emote name if loading failed 2024-05-14 00:44:06 +02:00
Infi 26e993be67 Temp fix for FPS drops with too many messages rendered
- Also replaces TextWrap with an ImRaii using version
2024-05-13 15:24:51 +02:00
Dean Sheather b6ae08d91d chore: move message processing to thread again 2024-05-12 07:22:40 +10:00
Infi 662e65d881 More emote improvements 2024-05-11 07:43:05 +02:00
Infi b7286b8010 Implement emotes part 2 2024-05-09 19:09:36 +02:00
Infi 4210d634ab BTTV emote support part 1 & keep Input focus option 2024-05-08 00:04:07 +02:00
Infi 8709c35ff1 Switch to .net method for endian swap 2024-05-03 19:37:39 +02:00
Dean Sheather fdae6b1cd2 fix: add Races, Clans and Companion Actions to auto-translate
The Race, Tribe and BuddyAction sheets were skipped as the default
behavior was to include rows from `0..^0` if no range was specified in
the Completion sheet. That range would usually include everything, but
since the ranges were iterated over as integers there is no "last" index
so `^0` equals zero.

Also preloads the AutoTranslate cache on plugin load in a new thread to
avoid a hitch when sending the first message. This behavior is disabled
in DEBUG builds to make profiling easier.
2024-04-29 18:55:24 +10:00
Infi 3d28162641 Use ImRaii in ImGuiUtil 2024-04-23 08:17:11 +02:00
Infi 8ab450aa3e Scale icons with font size 2024-04-22 16:44:48 +02:00
Infi 9bdfa58deb Implement some todos from #27 2024-04-21 23:16:49 +02:00
Dean Sheather bb6c6b0034 feat: replace LiteDB with Sqlite
- Replace LiteDB database engine with Sqlite
  Note: old databases will not be deleted
- Message duplication detection improvements
- Tolerate parse errors in release builds, log them
2024-04-20 21:18:51 +10:00
Infi 2d69af3f5c fix formatting 2024-04-18 22:07:16 +02:00
Harold Iedema e0793a51da Add option to limit the amount of shown log lines 2024-04-18 19:31:27 +02:00
Dean Sheather 715fb7aa5b feat: add database details section to settings
Shows path to database (click to copy), database size, database log
size, message count.

Also adds a Ctrl+Shift button to wipe the database permanently. This is
performed by clearing the Messages collection and then rebuilding the
database, which brings it down to around 48KB on my machine (even with
many messages).
2024-04-11 21:13:04 +10:00
Infi 9f771c37e3 Implement #10 with fixed payload byte[] 2024-04-10 23:57:44 +02:00
Infi 948383b0c5 Remove this. everywhere, add small note to override style 2024-04-10 17:45:25 +02:00
Infi cc014519d4 Merge pull request #2
feat: clickable URLs in chat log
2024-04-09 16:02:34 +02:00
Infi 5da271e0c2 - Fully support role colors and icons
- Fix #5
- Add SeString debugger window
2024-04-09 15:58:53 +02:00
Dean Sheather 4701bb3f6d feat: clickable URLs in chat log
Adds a parsing step when constructing `Message` objects that scans the
message content for anything that looks URL-like, and inserts new
`TextChunk`s into the message content with a URIPayload set.

Hovering over a URL shows an on-hover effect. Clicking a URL opens it in
the default browser. Right clicking shows the hostname, with an option
to open and an option to copy the URL to the clipboard.
2024-04-09 15:40:27 +10:00
Infi d9114aeb0e Add user configurable tooltip offset 2024-04-07 19:01:41 +02:00
Infi 40fd726519 Add adventurer plate context option 2024-04-06 03:01:32 +02:00
Infi 5ceb327f3a Fix out of bounds 2024-04-04 23:43:37 +02:00
Infi c9c4efe99f Add support for simpletweaks Random Chat Color 2024-04-04 21:51:47 +02:00
Anna c9cd28589b refactor: update for api 9 2023-10-03 02:59:51 -04:00
Anna 2da0f98786 fix: work around party icons 2023-05-25 13:49:58 -04:00
Anna 0e3adfcbfa fix: keep old detection methods for history 2023-02-27 20:31:04 -05:00
Anna 9a42b1b9da fix: make pf links work 2023-02-27 20:23:15 -05:00
Anna 565e5ecd08 feat: add utility to go from VK to ImGui 2022-07-13 15:46:47 -04:00
Anna 1ffc42b7d2 refactor: use popcnt 2022-06-03 20:12:09 -04:00
Anna a5f93fd194 fix: increase termination efficiency 2022-06-03 19:58:52 -04:00
Anna 9068199236 fix: only scroll when using arrow keys 2022-05-31 23:55:02 -04:00
Anna 8993da08e2 feat: improve autotranslate performance 2022-05-30 14:40:58 -04:00
Anna 212835c33a feat: add option to sort auto translate list 2022-05-30 00:52:44 -04:00
Anna 70cecf4a6d feat: add basic autotranslate support 2022-05-30 00:42:23 -04:00
Anna de0309e428 fix: allow popups with popped-out tabs 2022-05-13 10:56:36 -04:00
Anna 458f4a673c feat: add multi-client mode 2022-02-16 15:38:55 -05:00
Anna 259000d92a fix: handle more weird wrapping stuff 2022-02-16 15:15:41 -05:00
Anna 824c953102 fix: handle newlines and close-to-edge wrapping better 2022-02-16 13:28:13 -05:00
Anna 071ad3099e style: rename variable 2022-02-15 18:36:57 -05:00
Anna 1c1fd5d6d5 feat: add jank hover highlight for links 2022-02-15 18:36:30 -05:00
Anna a0525562ff chore: remove boms 2022-02-15 13:02:46 -05:00
Anna 9b7b84a58d feat: add chat database 2022-02-15 12:58:55 -05:00
Anna 43a539a465 feat: turn settings tabs into a sidebar 2022-02-08 19:26:11 -05:00