1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-14 05:08:45 +02:00
Commit graph

41 commits

Author SHA1 Message Date
Ell b374d50815 Allow formatting codes to have an arbitrary custom width 2022-12-06 16:49:19 +01:00
Ell d5e5d1d536 moved the new ConvertCachedUtf32 to CodePointSource 2022-10-23 21:23:16 +02:00
Ell be7676d37e fixed unnecessary memory allocations since 8d689952cc 2022-10-22 11:46:11 +02:00
Ell 8d689952cc Made GenericFont and TokenizedString support UTF-32 characters like emoji 2022-10-15 13:48:45 +02:00
Ell 023233a062 Fixed some TokenizedString tokens starting with a line break not being split correctly 2022-09-02 14:07:23 +02:00
Ell 0fe4c940d7 Fixed TokenizedString handling trailing spaces incorrectly in the last line of non-left aligned text 2022-09-02 13:58:12 +02:00
Ell 32dad847a0 adAdded TokenizedString.Realign 2022-09-02 13:42:21 +02:00
Ell aabb1ed5df added .editorconfig 2022-06-17 18:23:47 +02:00
Ell 59af00c89a Code cleanup, and marked AStar.InfiniteCost as obsolete 2022-06-15 11:38:11 +02:00
Ell c360c90f28 Fixed Code.Draw receiving the index in the current line rather than the current token
Closes #3
2022-02-14 00:24:31 +01:00
Ell 856d69b7db Fixed a formatting Code only knowing about the last Token that it is applied in
Closes #3
2022-02-13 22:43:51 +01:00
Ell f5adf50823 Added StringBuilder overloads to GenericFont 2021-12-22 13:00:41 +01:00
Ell 252d06888f consistently use the default font's line height 2021-11-28 11:30:57 +01:00
Ell a11a63c067 some GenericFont code style improvements 2021-11-28 00:28:17 +01:00
Ell f445aba45c improved Token memory allocations 2021-11-27 23:35:37 +01:00
Ell 53b93a34f8 Made TextFormatter string size based on the currently active font and added a formatting code to allow for inline font changes 2021-11-27 22:45:37 +01:00
Ell 84a6e5a29a Fixed some end-of-line inconsistencies when using the Right text alignment 2021-11-22 18:52:52 +01:00
Ell 11dd939009 Added a multiline editing mode to TextField 2021-10-12 02:16:09 +02:00
Ell 9743c05e1a Cache TokenizedString inner offsets for non-Left text alignments 2021-10-04 23:57:58 +02:00
Ell abac738123 Removed LINQ Any and All usage in various methods to improve memory usage 2021-07-18 22:18:46 +02:00
Ell 705758090b fixed image tokens drawing themselves too many times for split strings 2021-06-25 16:40:09 +02:00
Ell 14940d39c5 added text alignment options to tokenized strings and paragraphs 2021-06-25 15:23:30 +02:00
Ell d146e80cf6 updated some outdated dependencies 2021-05-29 18:06:20 +02:00
Ell ef45c324f9 fixed a crash with truncated string tokenization 2021-05-20 19:59:37 +02:00
Ell d385581c25 added formatted string truncation to tokenized strings and ui paragraphs 2021-05-18 16:47:38 +02:00
Ell f3b3feec9b updated non-netstandard projects to net5.0 2021-04-22 02:21:36 +02:00
Ell 455ab59f09 improved performance of TokenizedString splitting massively 2021-04-22 01:14:48 +02:00
Ell e7ab8fefe8 improved performance of SplitString and re-added Zwsp compatibility 2021-04-14 23:13:19 +02:00
Ell 538fd08d8a improved TokenizedString splitting efficiency 2021-04-14 02:47:41 +02:00
Ellpeck d891e19d2a reduce string allocations when rendering text 2020-06-21 23:23:52 +02:00
Ellpeck 64b9246aa5 clean up GenericFont changes 2020-06-20 12:12:34 +02:00
Ellpeck 73f2e1c565 use measurechar where applicable 2020-06-20 01:20:39 +02:00
Ellpeck deec553b22 code cleanup 2020-06-18 17:24:35 +02:00
Ellpeck e9cc9b7d99 document raw content and text formatting 2020-05-21 12:53:42 +02:00
Ellpeck 2461b78f1b made multi-line links be highlighted together 2020-05-19 21:52:29 +02:00
Ellpeck 037ed43410 streamline ui text formatting and paragraph links 2020-05-17 00:10:29 +02:00
Ellpeck 7f0a8289e3 added link formatting codes! 2020-05-15 22:15:24 +02:00
Ellpeck fcd898e16b finished the new formatting, finally! 2020-05-15 19:55:59 +02:00
Ellpeck 011f9dd4f1 added old formatting codes to the new system 2020-05-15 14:22:33 +02:00
Ellpeck d28239291c fixed line splitting with the new formatting 2020-05-15 13:16:03 +02:00
Ellpeck 8398499edd new text formatting, part 1 2020-05-15 00:34:04 +02:00