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

104 commits

Author SHA1 Message Date
Ell 7bf418f8b2 Allow NumberExtensions.GetPoints to include bottom and right coordinates 2024-04-13 21:12:49 +02:00
Ell 62ef75441a Added ToHexStringRgba and ToHexStringRgb to ColorExtensions
Closes #19
2024-03-15 20:04:57 +01: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 7e64b8a990 Added GetRandomEntry and GetRandomWeightedEntry to SingleRandom 2023-08-07 19:00:34 +02:00
Ell 50da081be9 Added WithRenderTargets, a multi-target version of WithRenderTarget 2023-07-11 12:11:12 +02:00
Ell e09484cbe7 Fixed GetRandomWeightedEntry distribution not being equal for equal weights 2023-04-26 21:49:43 +02:00
Ell 2e8a8244a3 Added RandomExtensions.NextSingle with minimum and maximum values 2023-01-07 20:01:22 +01:00
Ell 14d0b24aa9 cleaned up preprocessor instructions 2022-12-13 13:11:36 +01:00
Ell d5e5d1d536 moved the new ConvertCachedUtf32 to CodePointSource 2022-10-23 21:23:16 +02:00
Ell 8d689952cc Made GenericFont and TokenizedString support UTF-32 characters like emoji 2022-10-15 13:48:45 +02:00
Ell 02cf01fcb7 added Append and Prepend to the net452 version for better code compatibility 2022-09-15 17:51:46 +02:00
Ell 48735c3d36 Multi-target net452, making MLEM compatible with MonoGame for consoles 2022-09-14 21:17:43 +02:00
Ell 0a696941dc cleaned up code 2022-08-20 11:39:28 +02:00
Ell 48dfa8f1ee Allow RandomExtensions to operate on any ICollection 2022-07-19 15:20:19 +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 af7c341d83 Added float version of GetRandomWeightedEntry 2022-02-23 14:35:35 +01:00
Ell 29bbd61f8b reformat and cleanup 2021-12-28 14:56:11 +01:00
Ell 5d9cccc9fd Added ColorExtensions.Multiply 2021-12-22 14:24:37 +01:00
Ell 103d7c7503 Added a SquishingGroup element to MLEM.Ui 2021-12-11 17:26:55 +01:00
Ell 18517c75bd removed unnecessary Math.Abs from Color.Invert 2021-12-11 01:02:20 +01:00
Ell f34d4e3b68 return added items for all methods that use StaticSpriteBatch 2021-12-03 19:57:26 +01:00
Ell 376a068864 Moved AutoTiling to Graphics namespace and removed deprecated Misc versions of SoundEffectInfo and SoundEffectInstanceHandler 2021-11-29 21:24:08 +01:00
Ell 444b5c6afb copy base documentation for a lot of docfx unresolvable sources 2021-11-22 19:25:18 +01:00
Ell 5c8ef3d254 Added RotationVector extension methods for Matrix and Quaternion 2021-11-22 14:48:38 +01:00
Ell 758281c845 sloppy rename 2021-10-17 23:21:11 +02:00
Ell d89d8571c7 added StaticSpriteBatch 2021-10-17 23:20:05 +02:00
Ell 1067055bb5 code cleanup 2021-07-19 23:49:16 +02:00
Ell 374d936be2 specify the MLEM version that Invert will be moved 2021-07-13 22:35:48 +02:00
Ell a52b46dce9 Added ColorExtensions.Invert and made ColorHelper.Invert obsolete 2021-07-13 22:34:32 +02:00
Ell d1fbcb9559 added a sprite batch extension to generate a gradient 2021-06-03 21:33:09 +02:00
Ell e24c871ecd added SoundExtensions 2021-03-17 22:47:23 +01:00
Ell e0263dc943 Removed obsolete ColorExtensions methods 2021-03-13 16:25:08 +01:00
Ell 053aaaf17c removed the array-based GetRandomEntry method as it made lists have to be typecast 2021-03-04 22:53:39 +01:00
Ell 1c8b738555 added some collection extensions, namely Combinations 2021-03-04 22:52:28 +01:00
Ell a75d04cffc added a utility method for getting the points contained in a rectangle 2021-02-04 12:24:23 +01:00
Ell 3cd8c54e5c only store texture data if it changed 2021-01-20 05:22:30 +01:00
Ell 106102adf6 clean up unused using statements 2020-12-14 21:51:27 +01:00
Ell bb596c91ff cleaned up color extensions and move some methods to colorhelper instead 2020-11-04 23:44:41 +01:00
Ell cdc08c5cf2 improved NumberExtensions penetration method 2020-10-12 21:08:15 +02:00
Ell 58eae7d240 added an extension method for rectangle penetration 2020-10-05 23:23:30 +02:00
Ellpeck 52443bfa68 added some more utility functions for directions and vectors 2020-08-10 02:16:35 +02:00
Ellpeck fe67b70332 (finally) added some tests 2020-07-31 17:14:25 +02:00
Ellpeck 433299ed10 Rename vector floor extensions to FloorCopy since MonoGame added their own Floors 2020-07-27 00:24:49 +02:00
Ellpeck ec370479ef some matrix-related number extensions 2020-07-19 23:12:12 +02:00
Ellpeck 98937ee83f added a method for generating square and circle textures 2020-07-12 19:41:25 +02:00
Ellpeck 096131ce15 Drop SoundEffectInstance (mis)usage in favor of new SoundEffectInfo 2020-06-22 13:59:33 +02:00
Ellpeck d891e19d2a reduce string allocations when rendering text 2020-06-21 23:23:52 +02:00
Ellpeck deec553b22 code cleanup 2020-06-18 17:24:35 +02:00