Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add drag-and-drop support for YTD form #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

geofmigliacci
Copy link

@geofmigliacci geofmigliacci commented Nov 5, 2024

Goal of this PR

Provide a more convenient method for importing multiple textures at once into a YTD file (drag & drop), including validation checks to ensure that texture dimensions (height and width) are powers of 2.

How is this PR achieving the goal

Updates the AddTexture method in YtdForm to validate imported file. Adds a drag-and-drop event that checks each file, showing an error message if the file is not in DDS format, if its width or height is not a power of 2, or if a texture with the same name already exists in the YTD.

@geofmigliacci geofmigliacci changed the title feat(ytdform): add drag-and-drop support for multiple files with uniq… Add drag-and-drop support for YTD form Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant