Ceres Posted October 31, 2022 Report Share Posted October 31, 2022 (edited) Hello! How can I make these links (see example below) active? When clicking them, they should be opened in the default app of the respective OS. Can a "gamepaths.txt" file that is opened by a function like this ... function init(data) { Engine.GetGUIObjectByName("mainText").caption = Engine.TranslateLines(Engine.ReadFile("gui/common/gamepaths.txt")); } ... have an object with a link like this? <object type="button" style="ModernButtonRed" size="100%-408 100%-52 100%-218 100%-24"> <translatableAttribute id="caption">Modding Guide</translatableAttribute> <action on="Press">Engine.OpenURL("https://trac.wildfiregames.com/wiki/Modding_Guide");</action> </object> Edited October 31, 2022 by Ceres Quote Link to comment Share on other sites More sharing options...
Silier Posted October 31, 2022 Report Share Posted October 31, 2022 I don't think there is engine function supporting clickable text Quote Link to comment Share on other sites More sharing options...
Ceres Posted October 31, 2022 Author Report Share Posted October 31, 2022 Then maybe as buttons to click? This works but might look a bit odd. Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted November 1, 2022 Report Share Posted November 1, 2022 https://trac.wildfiregames.com/ticket/1889 Adding another way to open an external resource is another possible security violation. So it should be considered carefully. Also it requires a not easy modification of the gui engine. 1 Quote Link to comment Share on other sites More sharing options...
Ceres Posted November 1, 2022 Author Report Share Posted November 1, 2022 (edited) I do not see a security issue when offering a clickable link to the local OS, especially not, if the user does not run pyrogenesis as admin/su/root. And the pyrogenesis code has access to the local folders in question anyway. Regarding external links, I agree that there could be a security issue, but on the other hand, the game already provides access (after accepting certain terms and conditions) to mod.io. PS: This is the reason for my question: Edited November 1, 2022 by Ceres Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.