Skip to content

Commit

Permalink
add display for RandomOffsetRange
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Mar 7, 2024
1 parent c23dd2b commit 0efb3ac
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions OngekiFumenEditor/Base/OngekiObjects/Bullet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public BulletPallete ReferenceBulletPallete
NotifyOfPropertyChange(() => TargetValue);
NotifyOfPropertyChange(() => ShooterValue);
NotifyOfPropertyChange(() => SizeValue);
}
NotifyOfPropertyChange(() => RandomOffsetRange);
}
}

private void ReferenceBulletPallete_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
Expand All @@ -42,7 +43,8 @@ private void ReferenceBulletPallete_PropertyChanged(object sender, System.Compon
case nameof(BulletPallete.ShooterValue):
case nameof(BulletPallete.SizeValue):
case nameof(BulletPallete.Speed):
NotifyOfPropertyChange(e.PropertyName);
case nameof(BulletPallete.RandomOffsetRange):
NotifyOfPropertyChange(e.PropertyName);
break;
}
}
Expand Down Expand Up @@ -74,7 +76,11 @@ public BulletDamageType BulletDamageTypeValue
[ObjectPropertyBrowserShow]
public float Speed => ReferenceBulletPallete?.Speed ?? default;

[ObjectPropertyBrowserAlias("BPL." + nameof(StrID))]
[ObjectPropertyBrowserAlias("BPL." + nameof(RandomOffsetRange))]
[ObjectPropertyBrowserShow]
public float RandomOffsetRange => ReferenceBulletPallete?.RandomOffsetRange ?? default;

[ObjectPropertyBrowserAlias("BPL." + nameof(StrID))]
[ObjectPropertyBrowserShow]
public string StrID => ReferenceBulletPallete?.StrID ?? string.Empty;

Expand Down

0 comments on commit 0efb3ac

Please sign in to comment.