Skip to content

Commit

Permalink
Fix missing RaisePropertyChanged events (#1904)
Browse files Browse the repository at this point in the history
Fixes #1901
  • Loading branch information
BinaryConstruct authored Jul 3, 2024
1 parent 530ef4f commit 9601f22
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions src/TEdit.Terraria/World.Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.ComponentModel;
using System.Linq;
using System.Windows.Input;
using System.Xml.Linq;
using TEdit.Common.Reactive;
using TEdit.Common.Reactive.Command;
using TEdit.Configuration;
Expand Down Expand Up @@ -737,17 +738,31 @@ public bool DownedFlyingDutchman
public int TreeTop1
{
get => TreeTopVariations[0];
set => TreeTopVariations[0] = (int)value;
set
{
TreeTopVariations[0] = (int)value;
this.RaisePropertyChanged();
}
}
public int TreeTop2
{
get => TreeTopVariations[1];
set => TreeTopVariations[1] = (int)value;
set
{
TreeTopVariations[1] = (int)value;
this.RaisePropertyChanged();
}
}
public int TreeTop3
{
get => TreeTopVariations[2];
set => TreeTopVariations[2] = (int)value;
set
{

TreeTopVariations[2] = value;
this.RaisePropertyChanged();

}
}
public int TreeTop4
{
Expand All @@ -763,11 +778,13 @@ public int TreeTop4
[Reactive] public byte BgJungle { get; set; }
[Reactive] public byte BgCorruption { get; set; }
[Reactive] public byte BgTree { get; set; }

public byte Bg8
{
get => BgTree;
set => BgTree = value;
}

[Reactive] public byte BgTree2 { get; set; }
[Reactive] public byte BgTree3 { get; set; }
[Reactive] public byte BgTree4 { get; set; }
Expand All @@ -783,6 +800,7 @@ public int TilesHigh
set
{
_tilesHigh = value;
this.RaiseAndSetIfChanged(ref _tilesHigh, value);
UpdateMaxLayerLevels();
}
}
Expand Down

0 comments on commit 9601f22

Please sign in to comment.