Skip to content

Commit

Permalink
add vehicle animation headers to the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
LeftofZen committed Sep 30, 2024
1 parent 87927a9 commit 39113a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gui/ViewModels/DatTypes/DatObjectEditorViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public void LoadObject()
CompatibleCargoCategories2 = new(veh.CompatibleCargoCategories[1]),
CargoTypeSpriteOffsets = new(veh.CargoTypeSpriteOffsets.Select(x => new CargoTypeSpriteOffset(x.Key, x.Value)).ToList()),
Animation = new(veh.Animation),
AnimationHeaders = new(veh.AnimationHeaders),
var_113 = veh.var_113,
DesignedYear = veh.Designed,
ObsoleteYear = veh.Obsolete,
Expand Down
1 change: 1 addition & 0 deletions Gui/ViewModels/DatTypes/VehicleViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class VehicleViewModel : ReactiveObject, IObjectViewModel
[Reactive, Category("Sprites"), Editable(false)] public BindingList<BodySprite> BodySprites { get; set; }
[Reactive, Category("Sprites"), Editable(false)] public BindingList<BogieSprite> BogieSprites { get; set; }
[Reactive, Category("Sprites"), Editable(false)] public BindingList<SimpleAnimation> Animation { get; set; }
[Reactive, Category("Sprites")] public BindingList<S5Header> AnimationHeaders { get; set; }
[Reactive, Category("Cargo")] public BindingList<uint8_t> MaxCargo { get; set; }
[Reactive, Category("Cargo")] public BindingList<CargoCategory> CompatibleCargoCategories1 { get; set; }
[Reactive, Category("Cargo")] public BindingList<CargoCategory> CompatibleCargoCategories2 { get; set; }
Expand Down

0 comments on commit 39113a3

Please sign in to comment.