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

116 commits

Author SHA1 Message Date
Ell dd9230abf0 defaults for string GetArea methods 2024-04-10 23:52:35 +02:00
Ell fc2d705526 allow GetTokenUnderPos to work with rotation, origin and effects 2024-04-10 23:42:16 +02:00
Ell fdb0571860 xml docs and cleanup 2024-04-10 20:45:16 +02:00
Ell 76eb5d0679 use faster draw methods for formatting codes 2024-04-10 20:33:53 +02:00
Ell 9a03a8c62d Added the ability for formatted (tokenized) strings to be drawn with custom rotation, origin and flipping
Closes #18
2024-04-10 20:27:00 +02:00
Ell 23103613cd Allow formatting codes applied later to override settings of earlier ones 2024-03-17 21:54:06 +01:00
Ell 0c5369e687 Fixed bold and italic formatting code closing tags working on each other 2024-03-17 21:43:53 +01:00
Ell 476e1dd2a6 Improved text formatter tokenization performance 2023-10-14 18:58:32 +02:00
Ell de1fc28376 Color parsing improvements
- Added ColorHelper.TryFromHexString, a non-throwing version of FromHexString
- Stopped the text formatter from throwing if a color can't be parsed
2023-09-30 22:50:18 +02:00
Ell f1740b7b32 Added TextFormatter.StripAllFormatting 2023-05-19 19:30:45 +02:00
Ell a1064984ec Allow specifying start and end indices when drawing a TokenizedString or Paragraph 2023-05-18 21:41:36 +02:00
Ell 3968f7dfae Added a simple outline formatting code 2023-02-23 15:18:07 +01:00
Ell b69a2c4755 Allow changing the default values used by default TextFormatter codes 2023-02-22 18:48:12 +01:00
Ell c4836eedd6 Increased some recursion limits, and added useful Element ToString 2023-02-20 11:01:15 +01:00
Ell eb8a8568e1 Some ui system improvements
- Allow initializing a ui system's text formatter without default codes and macros
- Fixed UiStyle.LinkColor not being applied to the ui system when changed
2023-01-08 11:21:20 +01:00
Ell a249331ce9 Allow initializing text formatters without default codes and macros 2023-01-07 22:32:38 +01:00
Ell 500736e20f Added subscript and superscript formatting codes 2023-01-07 22:02:22 +01:00
Ell 14d0b24aa9 cleaned up preprocessor instructions 2022-12-13 13:11:36 +01:00
Ell 170b397e02 Cleaned up GenericFont and TokenizedString by improving the splitting and truncating algorithms 2022-12-07 13:35:57 +01:00
Ell f0b65daf68 fixed GetSelfWidth receiving the default and custom font inconsistently 2022-12-06 17:49:38 +01:00
Ell 066ed9f8f7 fixed some issues with the new code width system 2022-12-06 17:10:04 +01:00
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 6f05263980 ensure that SimpleEndCode doesn't end formatting codes with shorter names 2022-06-26 17:18:38 +02:00
Ell 6e2c2b3730 Improved the way terminating formatting codes work by introducing SimpleEndCode 2022-06-26 15:08:11 +02:00
Ell 61055148ef some fixes and doc changes to make MLEM.FNA more in line with MLEM 2022-06-24 21:33:24 +02:00
Ell 5d7d238630 added MLEM.FNA 2022-06-24 14:01:26 +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 d5ec0b8001 Allow setting a default color for clickable links in UiStyle 2022-03-07 12:00:33 +01: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 f7cf9460d6 Renamed GenericFont.OneEmSpace to Emsp (and marked OneEmSpace as obsolete) 2022-01-24 11:16:23 +01:00
Ell 29bbd61f8b reformat and cleanup 2021-12-28 14:56:11 +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 c9c9e566b1 Throw an exception when text formatter macros resolve recursively too many times 2021-11-22 17:50:17 +01:00
Ell 11dd939009 Added a multiline editing mode to TextField 2021-10-12 02:16:09 +02:00
Ell fd5b83eaa0 added a strikethrough formatting code 2021-10-10 20:30:40 +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