3968f7dfae
Added a simple outline formatting code
2023-02-23 15:18:07 +01:00
b69a2c4755
Allow changing the default values used by default TextFormatter codes
2023-02-22 18:48:12 +01:00
c4836eedd6
Increased some recursion limits, and added useful Element ToString
2023-02-20 11:01:15 +01:00
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
a249331ce9
Allow initializing text formatters without default codes and macros
2023-01-07 22:32:38 +01:00
500736e20f
Added subscript and superscript formatting codes
2023-01-07 22:02:22 +01:00
14d0b24aa9
cleaned up preprocessor instructions
2022-12-13 13:11:36 +01:00
170b397e02
Cleaned up GenericFont and TokenizedString by improving the splitting and truncating algorithms
2022-12-07 13:35:57 +01:00
f0b65daf68
fixed GetSelfWidth receiving the default and custom font inconsistently
2022-12-06 17:49:38 +01:00
066ed9f8f7
fixed some issues with the new code width system
2022-12-06 17:10:04 +01:00
b374d50815
Allow formatting codes to have an arbitrary custom width
2022-12-06 16:49:19 +01:00
d5e5d1d536
moved the new ConvertCachedUtf32 to CodePointSource
2022-10-23 21:23:16 +02:00
be7676d37e
fixed unnecessary memory allocations since 8d689952cc
2022-10-22 11:46:11 +02:00
8d689952cc
Made GenericFont and TokenizedString support UTF-32 characters like emoji
2022-10-15 13:48:45 +02:00
023233a062
Fixed some TokenizedString tokens starting with a line break not being split correctly
2022-09-02 14:07:23 +02:00
0fe4c940d7
Fixed TokenizedString handling trailing spaces incorrectly in the last line of non-left aligned text
2022-09-02 13:58:12 +02:00
32dad847a0
adAdded TokenizedString.Realign
2022-09-02 13:42:21 +02:00
6f05263980
ensure that SimpleEndCode doesn't end formatting codes with shorter names
2022-06-26 17:18:38 +02:00
6e2c2b3730
Improved the way terminating formatting codes work by introducing SimpleEndCode
2022-06-26 15:08:11 +02:00
61055148ef
some fixes and doc changes to make MLEM.FNA more in line with MLEM
2022-06-24 21:33:24 +02:00
5d7d238630
added MLEM.FNA
2022-06-24 14:01:26 +02:00
aabb1ed5df
added .editorconfig
2022-06-17 18:23:47 +02:00
59af00c89a
Code cleanup, and marked AStar.InfiniteCost as obsolete
2022-06-15 11:38:11 +02:00
d5ec0b8001
Allow setting a default color for clickable links in UiStyle
2022-03-07 12:00:33 +01:00
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
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
f7cf9460d6
Renamed GenericFont.OneEmSpace to Emsp (and marked OneEmSpace as obsolete)
2022-01-24 11:16:23 +01:00
29bbd61f8b
reformat and cleanup
2021-12-28 14:56:11 +01:00
f5adf50823
Added StringBuilder overloads to GenericFont
2021-12-22 13:00:41 +01:00
252d06888f
consistently use the default font's line height
2021-11-28 11:30:57 +01:00
a11a63c067
some GenericFont code style improvements
2021-11-28 00:28:17 +01:00
f445aba45c
improved Token memory allocations
2021-11-27 23:35:37 +01:00
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
84a6e5a29a
Fixed some end-of-line inconsistencies when using the Right text alignment
2021-11-22 18:52:52 +01:00
c9c9e566b1
Throw an exception when text formatter macros resolve recursively too many times
2021-11-22 17:50:17 +01:00
11dd939009
Added a multiline editing mode to TextField
2021-10-12 02:16:09 +02:00
fd5b83eaa0
added a strikethrough formatting code
2021-10-10 20:30:40 +02:00
9743c05e1a
Cache TokenizedString inner offsets for non-Left text alignments
2021-10-04 23:57:58 +02:00
abac738123
Removed LINQ Any and All usage in various methods to improve memory usage
2021-07-18 22:18:46 +02:00
705758090b
fixed image tokens drawing themselves too many times for split strings
2021-06-25 16:40:09 +02:00
14940d39c5
added text alignment options to tokenized strings and paragraphs
2021-06-25 15:23:30 +02:00
d146e80cf6
updated some outdated dependencies
2021-05-29 18:06:20 +02:00
3da97fcc83
fixed UnderlineCode being a font code, making it end in the wrong places
2021-05-24 17:12:02 +02:00
ef45c324f9
fixed a crash with truncated string tokenization
2021-05-20 19:59:37 +02:00
d385581c25
added formatted string truncation to tokenized strings and ui paragraphs
2021-05-18 16:47:38 +02:00
e916ddb7a8
allow for underline and shadow codes to be mixed with font codes
2021-05-18 16:19:40 +02:00
f3b3feec9b
updated non-netstandard projects to net5.0
2021-04-22 02:21:36 +02:00
1759f0ef5b
improve performance of TextFormatter tokenization
2021-04-22 01:21:44 +02:00
455ab59f09
improved performance of TokenizedString splitting massively
2021-04-22 01:14:48 +02:00
e7ab8fefe8
improved performance of SplitString and re-added Zwsp compatibility
2021-04-14 23:13:19 +02:00