mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-24 13:38:34 +01:00
Compare commits
3 commits
a140e85300
...
516676e044
Author | SHA1 | Date | |
---|---|---|---|
516676e044 | |||
443bb4d6c3 | |||
41b924ef34 |
3 changed files with 12 additions and 5 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -1,11 +1,14 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
MLEM uses [semantic versioning](https://semver.org/).
|
MLEM tries to adhere to [semantic versioning](https://semver.org/).
|
||||||
|
|
||||||
Jump to version:
|
Jump to version:
|
||||||
- [5.1.0 (Unreleased)](#510-unreleased)
|
- [5.2.0 (Unreleased)](#520-unreleased)
|
||||||
|
- [5.1.0](#510)
|
||||||
- [5.0.0](#500)
|
- [5.0.0](#500)
|
||||||
|
|
||||||
## 5.1.0 (Unreleased)
|
## 5.2.0 (Unreleased)
|
||||||
|
|
||||||
|
## 5.1.0
|
||||||
### MLEM
|
### MLEM
|
||||||
Additions
|
Additions
|
||||||
- Added RotateBy to Direction2Helper
|
- Added RotateBy to Direction2Helper
|
||||||
|
@ -37,6 +40,7 @@ Fixes
|
||||||
- Fixed a crash if a paragraph has a link formatting code, but no font
|
- Fixed a crash if a paragraph has a link formatting code, but no font
|
||||||
- Fixed tooltips with custom text scale not snapping to the mouse correctly in their first displayed frame
|
- Fixed tooltips with custom text scale not snapping to the mouse correctly in their first displayed frame
|
||||||
- Fixed tooltips not displaying correctly with auto-hiding paragraphs
|
- Fixed tooltips not displaying correctly with auto-hiding paragraphs
|
||||||
|
- Fixed rounding errors causing AutoInline elements to be pushed into the next line with some ui scales
|
||||||
|
|
||||||
### MLEM.Extended
|
### MLEM.Extended
|
||||||
Improvements
|
Improvements
|
||||||
|
|
|
@ -607,7 +607,9 @@ namespace MLEM.Ui.Elements {
|
||||||
break;
|
break;
|
||||||
case Anchor.AutoInline:
|
case Anchor.AutoInline:
|
||||||
var newX = prevArea.Right + this.ScaledOffset.X;
|
var newX = prevArea.Right + this.ScaledOffset.X;
|
||||||
if (newX + newSize.X <= parentArea.Right) {
|
// with awkward ui scale values, floating point rounding can cause an element that would usually be
|
||||||
|
// positioned correctly to be pushed into the next line due to a very small deviation, so we add 0.01 here
|
||||||
|
if (newX + newSize.X <= parentArea.Right + 0.01F) {
|
||||||
pos.X = newX;
|
pos.X = newX;
|
||||||
pos.Y = prevArea.Y + this.ScaledOffset.Y;
|
pos.Y = prevArea.Y + this.ScaledOffset.Y;
|
||||||
} else {
|
} else {
|
||||||
|
@ -673,6 +675,7 @@ namespace MLEM.Ui.Elements {
|
||||||
autoSize = Vector2.Min(autoSize, actualSize);
|
autoSize = Vector2.Min(autoSize, actualSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we want to leave some leeway to prevent float rounding causing an infinite loop
|
||||||
if (!autoSize.Equals(this.UnscrolledArea.Size, 0.01F)) {
|
if (!autoSize.Equals(this.UnscrolledArea.Size, 0.01F)) {
|
||||||
recursion++;
|
recursion++;
|
||||||
if (recursion >= 16) {
|
if (recursion >= 16) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#tool docfx.console&version=2.51.0
|
#tool docfx.console&version=2.51.0
|
||||||
|
|
||||||
// this is the upcoming version, for prereleases
|
// this is the upcoming version, for prereleases
|
||||||
var version = Argument("version", "5.1.0");
|
var version = Argument("version", "5.2.0");
|
||||||
var target = Argument("target", "Default");
|
var target = Argument("target", "Default");
|
||||||
var branch = Argument("branch", "main");
|
var branch = Argument("branch", "main");
|
||||||
var config = Argument("configuration", "Release");
|
var config = Argument("configuration", "Release");
|
||||||
|
|
Loading…
Reference in a new issue