Skip to content

Commit 65abd8d

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 220b7fb + 2cf0dcf commit 65abd8d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ Fixes
5252
- Fixed images displaying the initial texture when the texture callback starts returning null
5353
- Fixed UiStyle copy constructor not copying all style properties
5454

55+
Removals
56+
- Marked RootElement.OnAddedToUi as obsolete in favor of UiSystem.OnRootAdded
57+
5558
### MLEM.Data
5659
Improvements
5760
- **Use a binary tree algorithm for RuntimeTexturePacker to vastly increase packing speed**

MLEM.Ui/UiSystem.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ public bool CanBeActive {
530530
/// <summary>
531531
/// Event that is invoked when this <see cref="RootElement"/> gets added to a <see cref="UiSystem"/> in <see cref="UiSystem.Add"/>
532532
/// </summary>
533+
[Obsolete("This event is only invoked once, after internal RootElement construction, and has very little practical use. Use UiSystem.OnRootAdded instead.")]
533534
public event Action<UiSystem> OnAddedToUi;
534535
/// <summary>
535536
/// Event that is invoked when this <see cref="RootElement"/> gets removed from a <see cref="UiSystem"/> in <see cref="UiSystem.Remove"/>

0 commit comments

Comments
 (0)