Moved Animation.cs to 'Internal' folder and changed namespace

This commit is contained in:
miku-666
2023-08-02 13:29:08 +02:00
parent dbdb43e32e
commit 896e2f6671
5 changed files with 9 additions and 9 deletions

View File

@@ -12,10 +12,10 @@ namespace PckStudio.Forms.Additional_Popups.Animation
internal partial class ChangeTile : MetroForm
{
string selectedTile = "";
Editor.Animation.AnimationCategory category = Editor.Animation.AnimationCategory.Blocks;
Internal.Animation.AnimationCategory category = Internal.Animation.AnimationCategory.Blocks;
public string SelectedTile => selectedTile;
public Editor.Animation.AnimationCategory Category => category;
public Internal.Animation.AnimationCategory Category => category;
List<TreeNode> treeViewBlockCache = new List<TreeNode>();
List<TreeNode> treeViewItemCache = new List<TreeNode>();
@@ -43,8 +43,8 @@ namespace PckStudio.Forms.Additional_Popups.Animation
selectedTile = tileData;
Debug.WriteLine(selectedTile);
category = e.Node.TreeView == treeViewItems
? Editor.Animation.AnimationCategory.Items
: Editor.Animation.AnimationCategory.Blocks;
? Internal.Animation.AnimationCategory.Items
: Internal.Animation.AnimationCategory.Blocks;
}
}

View File

@@ -16,6 +16,7 @@ using PckStudio.Forms.Utilities;
using PckStudio.Extensions;
using PckStudio.Properties;
using System.Diagnostics;
using PckStudio.Internal;
namespace PckStudio.Forms.Editor
{

View File

@@ -24,6 +24,7 @@ using System.Drawing.Drawing2D;
using System.Runtime.CompilerServices;
using PckStudio.Extensions;
using PckStudio.Internal;
namespace PckStudio.Forms.Editor
{

View File

@@ -21,11 +21,9 @@ using System.Drawing;
using PckStudio.Extensions;
using System.Text;
// TODO: change namespace
namespace PckStudio.Forms.Editor
namespace PckStudio.Internal
{
sealed class Animation
internal sealed class Animation
{
public const int MinimumFrameTime = 1;

View File

@@ -299,7 +299,7 @@
<Compile Include="Forms\Additional-Popups\MultiTextPrompt.Designer.cs">
<DependentUpon>MultiTextPrompt.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Editor\Animation.cs" />
<Compile Include="Internal\Animation.cs" />
<Compile Include="Forms\Editor\AnimationPictureBox.cs">
<SubType>Component</SubType>
</Compile>