MainForm: Added "Edit Texture Atlas" Button

This commit is contained in:
MattN-L
2024-04-28 20:20:12 -04:00
parent a3098bb39b
commit b3dcb7160b
2 changed files with 23 additions and 0 deletions

View File

@@ -710,6 +710,26 @@ namespace PckStudio
buttonEdit.Text = "EDIT TILE ANIMATION";
buttonEdit.Visible = true;
}
bool isTerrain = file.Filename == "res/terrain.png";
bool isItems = file.Filename == "res/items.png";
bool isParticles = file.Filename == "res/particles.png";
bool isMoonPhases = file.Filename == "res/terrain/moon_phases.png";
bool isMapIcons = file.Filename == "res/misc/mapicons.png";
bool isAdditionalMapIcons = file.Filename == "res/misc/additionalmapicons.png";
bool isXPOrbs = file.Filename == "res/item/xporb.png";
bool isExplosions = file.Filename == "res/misc/explosion.png";
bool isPaintings = file.Filename == "res/art/kz.png";
bool isBanners = file.Filename == "res/item/banner/Banner_Atlas.png";
if ((
isTerrain || isItems || isParticles || isMoonPhases || isPaintings ||
isMapIcons || isAdditionalMapIcons || isXPOrbs || isExplosions || isBanners
) && file.Type == PckAssetType.TextureFile)
{
buttonEdit.Text = "EDIT TEXTURE ATLAS";
buttonEdit.Visible = true;
}
}
break;

View File

@@ -660,11 +660,14 @@
<None Include="Resources\atlases\paintings.png" />
<Content Include="Resources\atlases\terrain.png" />
<None Include="Resources\external\trello.png" />
<None Include="Resources\icons\file_copy.png" />
<Content Include="Resources\icons\file_delete.png" />
<Content Include="Resources\icons\file_empty.png" />
<None Include="Resources\icons\file_export.png" />
<None Include="Resources\icons\file_import.png" />
<Content Include="Resources\icons\file_new.png" />
<None Include="Resources\icons\file_paste.png" />
<None Include="Resources\icons\file_restore.png" />
<Content Include="Resources\icons\music.png" />
<None Include="Resources\icons\ranch.png" />
<Content Include="Resources\icons\Replace.png" />