mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-25 05:58:35 +01:00
Compare commits
2 commits
a59f1eb8af
...
b30ec9408b
Author | SHA1 | Date | |
---|---|---|---|
b30ec9408b | |||
3fc635fb4d |
2 changed files with 18 additions and 12 deletions
25
CHANGELOG.md
25
CHANGELOG.md
|
@ -1,5 +1,5 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
MLEM tries to adhere to [semantic versioning](https://semver.org/).
|
MLEM tries to adhere to [semantic versioning](https://semver.org/). Breaking changes are written in *italics*.
|
||||||
|
|
||||||
Jump to version:
|
Jump to version:
|
||||||
- [5.2.0 (Unreleased)](#520-unreleased)
|
- [5.2.0 (Unreleased)](#520-unreleased)
|
||||||
|
@ -18,6 +18,7 @@ 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
|
||||||
|
@ -25,9 +26,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
|
||||||
|
@ -40,7 +41,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 (which didn't actually work)
|
- *Removed ScrollBar ScrollerOffset*
|
||||||
|
|
||||||
### MLEM.Data
|
### MLEM.Data
|
||||||
Additions
|
Additions
|
||||||
|
@ -48,7 +49,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
|
||||||
|
@ -57,12 +58,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
|
||||||
|
@ -75,8 +76,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
|
||||||
|
@ -113,13 +114,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
|
||||||
|
|
||||||
|
@ -128,8 +129,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
|
||||||
|
@ -143,8 +144,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
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,11 @@ 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>
|
||||||
|
|
Loading…
Reference in a new issue