-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1266 from zdman2022/AnimationChain_NewWindow
Animation chain new window
- Loading branch information
Showing
11 changed files
with
214 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
FRBDK/Glue/OfficialPlugins/AnimationChainPlugin/ViewModels/ZoomViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using FlatRedBall.Glue.MVVM; | ||
using OfficialPlugins.Common.ViewModels; | ||
using System.Collections.Generic; | ||
|
||
namespace OfficialPlugins.AnimationChainPlugin.ViewModels | ||
{ | ||
internal class ZoomViewModel : ViewModel, ICameraZoomViewModel | ||
{ | ||
[DependsOn(nameof(CurrentZoomPercent))] | ||
public float CurrentZoomScale => CurrentZoomPercent / 100.0f; | ||
|
||
public float CurrentZoomPercent | ||
{ | ||
get => Get<float>(); | ||
set | ||
{ | ||
Set(value); | ||
} | ||
} | ||
|
||
public float CurrentAnimationZoomPercent | ||
{ | ||
get => Get<float>(); | ||
set | ||
{ | ||
Set(value); | ||
} | ||
} | ||
|
||
public List<int> ZoomPercentages { get; set; } = | ||
new List<int> { 4000, 2000, 1500, 1000, 750, 500, 350, 200, 100, 75, 50, 25, 10, 5 }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.