1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-25 05:58:35 +01:00

Compare commits

..

No commits in common. "b30ec9408bb855df9d6750d5f92e2da2149f3e42" and "a59f1eb8af6b1eb7080427bb6226f494306b98cd" have entirely different histories.

2 changed files with 12 additions and 18 deletions

View file

@ -1,5 +1,5 @@
# Changelog # Changelog
MLEM tries to adhere to [semantic versioning](https://semver.org/). Breaking changes are written in *italics*. MLEM tries to adhere to [semantic versioning](https://semver.org/).
Jump to version: Jump to version:
- [5.2.0 (Unreleased)](#520-unreleased) - [5.2.0 (Unreleased)](#520-unreleased)
@ -18,7 +18,6 @@ Improvements
- Cache TokenizedString inner offsets for non-Left text alignments to improve performance - Cache TokenizedString inner offsets for non-Left text alignments to improve performance
- Exposed Camera's RoundPosition - Exposed Camera's RoundPosition
- Exposed the epsilon value used by Camera - Exposed the epsilon value used by Camera
- Added Padding.Empty
### MLEM.Ui ### MLEM.Ui
Additions Additions
@ -26,9 +25,9 @@ Additions
- Added a multiline editing mode to TextField - Added a multiline editing mode to TextField
Improvements Improvements
- *Made Image ScaleToImage take ui scale into account*
- *Added style properties for a lot of hardcoded default element styles*
- Exposed the epsilon value used by Element calculations - Exposed the epsilon value used by Element calculations
- Made Image ScaleToImage take ui scale into account
- Added style properties for a lot of hardcoded default element styles
- Allow style properties to set style values with a higher priority, which allows elements to style their default children - Allow style properties to set style values with a higher priority, which allows elements to style their default children
- Allow changing the entire ui style for a single element - Allow changing the entire ui style for a single element
- Skip unnecessary area updates for elements with dirty parents - Skip unnecessary area updates for elements with dirty parents
@ -41,7 +40,7 @@ Fixes
- Fixed panels that don't auto-hide their scroll bars ignoring their width for child padding - Fixed panels that don't auto-hide their scroll bars ignoring their width for child padding
Removals Removals
- *Removed ScrollBar ScrollerOffset* - Removed ScrollBar ScrollerOffset (which didn't actually work)
### MLEM.Data ### MLEM.Data
Additions Additions
@ -49,7 +48,7 @@ Additions
- Added JsonTypeSafeWrapper and JsonTypeSafeGenericDataHolder - Added JsonTypeSafeWrapper and JsonTypeSafeGenericDataHolder
Improvements Improvements
- *Use TitleContainer for opening streams where possible* - Use TitleContainer for opening streams where possible
- Set GraphicsResource Name when loading assets using RawContentManager - Set GraphicsResource Name when loading assets using RawContentManager
## 5.1.0 ## 5.1.0
@ -58,12 +57,12 @@ Additions
- Added RotateBy to Direction2Helper - Added RotateBy to Direction2Helper
Improvements Improvements
- *Moved ColorHelper.Invert to ColorExtensions.Invert*
- *Allow enumerating SoundEffectInstanceHandler entries*
- Improved NinePatch memory usage - Improved NinePatch memory usage
- Moved sound-related classes into Sound namespace - Moved sound-related classes into Sound namespace
- Added customizable overloads for Keybind, Combination and GenericInput ToString methods - Added customizable overloads for Keybind, Combination and GenericInput ToString methods
- Moved ColorHelper.Invert to ColorExtensions.Invert
- Removed LINQ Any and All usage in various methods to improve memory usage - Removed LINQ Any and All usage in various methods to improve memory usage
- Allow enumerating SoundEffectInstanceHandler entries
- Improved KeysExtensions memory usage - Improved KeysExtensions memory usage
Fixes Fixes
@ -76,8 +75,8 @@ Additions
- Added a masking character to TextField to allow for password-style text fields - Added a masking character to TextField to allow for password-style text fields
Improvements Improvements
- *Explicitly disallow creating Paragraphs without fonts to make starting out with MLEM.Ui less confusing*
- Removed LINQ Any and All usage in various methods to improve memory usage - Removed LINQ Any and All usage in various methods to improve memory usage
- Explicitly disallow creating Paragraphs without fonts to make starting out with MLEM.Ui less confusing
- Allow adding Link children to non-Paragraph elements - Allow adding Link children to non-Paragraph elements
Fixes Fixes
@ -114,13 +113,13 @@ Additions
- Added text alignment options to tokenized strings - Added text alignment options to tokenized strings
Improvements Improvements
- *Replaced TextInputWrapper with a more refined MlemPlatform that includes the ability to open links on various platforms*
- Allow NinePatches to be drawn tiled rather than stretched - Allow NinePatches to be drawn tiled rather than stretched
- Added the ability for Direction2 to be used as flags - Added the ability for Direction2 to be used as flags
- Made Padding and Direction2 DataContracts - Made Padding and Direction2 DataContracts
- Expose the viewport of cameras - Expose the viewport of cameras
- Greatly improved the efficiency of line splitting for GenericFont and TokenizedString - Greatly improved the efficiency of line splitting for GenericFont and TokenizedString
- Improved performance of TextFormatter tokenization - Improved performance of TextFormatter tokenization
- Replaced TextInputWrapper with a more refined MlemPlatform that includes the ability to open links on various platforms
- Allow for underline and shadow formatting codes to be mixed with font changing codes - Allow for underline and shadow formatting codes to be mixed with font changing codes
- Exposed Keybind Combinations - Exposed Keybind Combinations
@ -129,8 +128,8 @@ Fixes
- Fixed UnderlineCode ending in the wrong places because it was marked as a font-changing code - Fixed UnderlineCode ending in the wrong places because it was marked as a font-changing code
Removals Removals
- *Removed the array-based GetRandomEntry method* - Removed the array-based GetRandomEntry method
- *Removed obsolete ColorExtension methods* - Removed obsolete ColorExtension methods
### MLEM.Ui ### MLEM.Ui
Additions Additions
@ -144,8 +143,8 @@ Additions
- Added text alignment options to paragraphs - Added text alignment options to paragraphs
Improvements Improvements
- *Removed unnecessary GraphicsDevice references from UiSystem*
- Stop a panel's scroll bar from being removed from its children list automatically - Stop a panel's scroll bar from being removed from its children list automatically
- Removed unnecessary GraphicsDevice references from UiSystem
- Dispose of panels' render targets to avoid memory leaks - Dispose of panels' render targets to avoid memory leaks
- Allow changing the color that a panel renders its texture with - Allow changing the color that a panel renders its texture with

View file

@ -9,11 +9,6 @@ namespace MLEM.Misc {
[DataContract] [DataContract]
public struct Padding { public struct Padding {
/// <summary>
/// The empty padding, with all borders set to 0
/// </summary>
public static Padding Empty => default;
/// <summary> /// <summary>
/// The amount of padding on the left side /// The amount of padding on the left side
/// </summary> /// </summary>