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 an Open asset directory button #130

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Conversation

JamesTKhan
Copy link
Owner

Adds a button to open/view the directory the asset file is in. Tested on Windows, not able to test on linux at this time.

openDirectoryAsset.addListener(object : ClickListener() {
override fun clicked(event: InputEvent, x: Float, y: Float) {
currentSelection?.asset?.let {
Desktop.getDesktop().open(it.file.file().parentFile)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner Author

@JamesTKhan JamesTKhan Dec 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not for choosing a file, it is for opening the assets directory on your operating system.

@JamesTKhan JamesTKhan merged commit dba9be3 into master Jan 3, 2023
@JamesTKhan JamesTKhan deleted the open-asset-directory branch January 3, 2023 14:26
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.

2 participants