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

Issue with workshop links in plugin descriptions #63

Open
emmawilby opened this issue May 17, 2024 · 2 comments
Open

Issue with workshop links in plugin descriptions #63

emmawilby opened this issue May 17, 2024 · 2 comments

Comments

@emmawilby
Copy link

Thanks for working on this! I've played this game for years but didn't realize how many great plugins there were.

I noticed an issue when clicking on the workshop link included in the description for the Blueprint API plugin: it opens the workshop page in the steam overlay correctly but when the overlay is closed with shift tab or escape it immediately re-opens. It's possible to back out by mashing the escape key to go back to the plugin list so not a critical issue.

I'm running on linux (Gnome/Wayland on Debian stable / a non-flatpak steam installation), with the latest proton GE if it's relevant. This issue occurred before I had enabled any plugins.

@austinvaness
Copy link
Member

I'm not sure how to fix this, I am literally just calling keen's code:

public override void Show()
{
    MyGuiSandbox.OpenUrl("https://steamcommunity.com/workshop/filedetails/?id=" + Id, UrlOpenMode.SteamOrExternalWithConfirm);
}

I guess I would have to find the issue in the base game and patch it

@emmawilby
Copy link
Author

Just took another look, it seems like the code above works without issue (when you click the more details button on a mod). I'm talking about when there's a text link in the description of a plugin (like with the Blueprints API), which seems to be this line of code:

descriptionText.OnLinkClicked += (x, url) => MyGuiSandbox.OpenUrl(url, UrlOpenMode.SteamOrExternalWithConfirm);

I'm not particularly familiar with C# or space engineers apis at all, but I wonder if descriptionText has a default onlinkedclicked that's causing something to double-fire. Anyway, it probably won't affect too many people if it's not an easy fix, just wanted to make sure you were aware.

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

No branches or pull requests

2 participants