-
Notifications
You must be signed in to change notification settings - Fork 19
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
Changed Textures to be assigned by waypoint texture ID #319
Changed Textures to be assigned by waypoint texture ID #319
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall your PRs seem to be improving the last couple weeks. Though this one should have been 2 PRs. One of those PRs, reading the texture path from the waypoint data, only needed some very minor changes. The other one, needs some more design work and user workflow consideration before merging.
…arching for existing files. Addressed code review
FileHandler.gd
Outdated
dir.list_dir_end() | ||
return current_relative_path | ||
file_name = dir.get_next() | ||
return "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return null from this function when a file is not found instead of an empty string.
FileHandler.gd
Outdated
# These are all supported file types in Godot that are not supported | ||
# by other marker programs. "jpg", "jpeg", "bmp", "tga" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this comment explaining what formats godot supports.
FileHandler.gd
Outdated
|
||
static func find_file_duplicate(directory_path: String, target_name: String, target_content: PoolByteArray, relative_path: String): | ||
var dir = Directory.new() | ||
if dir.open(directory_path) == OK: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline, switch this logic so you can unindent the code below.
Also move textures into the user data directory and assign new ID. XML converter will handle only saving the images that are used by the icons and trails so single deletion is not necessary at this time.