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

Fix Loading Texture Path in GUI #5

Closed
ladroid opened this issue Jun 30, 2024 · 0 comments · Fixed by #7
Closed

Fix Loading Texture Path in GUI #5

ladroid opened this issue Jun 30, 2024 · 0 comments · Fixed by #7

Comments

@ladroid
Copy link
Owner

ladroid commented Jun 30, 2024

Description:

The current implementation requires explicitly writing a path for loading textures in the GUI. This should be replaced with a more user-friendly component that allows users to choose a file using a window explorer.

Affected Lines of Code:

File: src/gui/gui.rs
Lines: 213-216
Current Code:

// Example of the current implementation (lines 213-216)

let (_, tileset_width, tileset_height) = load_texture_from_path("your_path_to_tilemap.png")?;
// ... rest of the code

Proposed Solution:

Replace the explicit path string with a file chooser component that opens a window explorer to select the texture file. This will improve the usability of the GUI.

Steps to Reproduce:

  1. Open the application.
  2. Navigate to the texture loading section in the GUI.
  3. Notice the requirement to manually enter the texture path.

Expected Behavior:

The GUI should present a button or similar component that opens a file chooser dialog, allowing the user to select the texture file from the file system.

@ladroid ladroid linked a pull request Jul 11, 2024 that will close this issue
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 a pull request may close this issue.

1 participant