The second button could be moved to a separate line above the save/cancel/launch buttons (described here D1079).
Details
- Reviewers
Grugnas - Commits
- rP20599: Add buttons to visit the website of the selected mod.
Notice that the engine function doesnt execute for play0ad.com.
This might mean that we might consider changing the engine function and
also consider requiring the scheme part of the URL (https://en.wikipedia.org/wiki/URL#Syntax)
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Successful build - Chance fights ever on the side of the prudent.
Updating workspaces... Build (release)... Build (debug)... Running release tests... Running cxxtest tests (308 tests)....................................................................................................................................................................................................................................................................................................................OK! Running debug tests... Running cxxtest tests (308 tests)....................................................................................................................................................................................................................................................................................................................OK! Checking XML files...
binaries/data/mods/mod/gui/modmod/modmod.xml | ||
---|---|---|
105 ↗ | (On Diff #4490) | name="websiteButton" enable="false" var g_Url = ""; list.onSelectionChange = checkModWebsite(this) function checkModWebsite(list) function visitModWebsite() g_Url = "http://" + g_Url; Engine.OpenURL(g_Url); |
binaries/data/mods/mod/gui/modmod/modmod.xml | ||
---|---|---|
105 ↗ | (On Diff #4490) | Engine.GetGUIObjectByName(listName) wrong mean Engine.GetGUIObjectByName("websiteButton") |
binaries/data/mods/mod/gui/modmod/modmod.xml | ||
---|---|---|
105 ↗ | (On Diff #4490) | function visitModWebsite() g_Url = "http://" + g_Url; Engine.OpenURL(g_Url); |
Thanks for the reviews.
binaries/data/mods/mod/gui/modmod/modmod.xml | ||
---|---|---|
105 ↗ | (On Diff #4490) | I agree that the button should be disabled, but it won't work with only a single global. |