PckStudio(ModelEditor) - Fix constant code style

This commit is contained in:
miku-666
2025-11-28 06:33:05 +01:00
parent 9354cbaee5
commit 726ad414d7

View File

@@ -40,7 +40,7 @@ namespace PckStudio.Forms.Editor
modelTreeView.ImageList.Images.AddRange(ApplicationScope.EntityImages);
}
private const int InvalidImageIndex = 127;
private const int INVALID_IMAGE_INDEX = 127;
// TODO: move to json file. -miku
private static Dictionary<string, int> ModelImageIndex = new Dictionary<string, int>()
{
@@ -123,7 +123,7 @@ namespace PckStudio.Forms.Editor
["zombie.villager_v2"] = 102,
};
private static int GetModelImageIndex(string name) => ModelImageIndex.TryGetValue(name, out int index) ? index : InvalidImageIndex;
private static int GetModelImageIndex(string name) => ModelImageIndex.TryGetValue(name, out int index) ? index : INVALID_IMAGE_INDEX;
private class ModelNode : TreeNode
{