Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/mod/gui/modmod/modmod.js
Show First 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | function isDependencyMet(dependency) | ||||
let operator = dependency.match(g_RegExpComparisonOperator); | let operator = dependency.match(g_RegExpComparisonOperator); | ||||
let [name, version] = operator ? dependency.split(operator[0]) : [dependency, undefined]; | let [name, version] = operator ? dependency.split(operator[0]) : [dependency, undefined]; | ||||
return g_ModsEnabled.some(folder => | return g_ModsEnabled.some(folder => | ||||
g_Mods[folder].name == name && | g_Mods[folder].name == name && | ||||
(!operator || versionSatisfied(g_Mods[folder].version, operator[0], version))); | (!operator || versionSatisfied(g_Mods[folder].version, operator[0], version))); | ||||
} | } | ||||
function modIo() | |||||
{ | |||||
messageBox(500, 250, | |||||
translate("You are about to connect to the mod.io online service. This provides easy access to community-made mods, but is not under the control of Wildfire Games.\n\nWhile we have taken care to make this secure, we cannot guarantee with absolute certainty that this is not a security risk.\n\nDo you really want to connect?"), | |||||
leper: "the mod.io server" both sounds like that is a single one, and very specific, even if the… | |||||
Done Inline ActionsIs \n W wanted? I liked old security risk sentence. What executable data? leper: Is `\n W` wanted?
I liked old security risk sentence. What executable data? | |||||
Not Done Inline ActionsStill not the old sentence, but meh. leper: Still not the old sentence, but meh. | |||||
translate("Connect to mod.io?"), | |||||
[translate("Cancel"), translateWithContext("mod.io connection message box", "Connect")], | |||||
[ | |||||
null, | |||||
() => { | |||||
Engine.PushGuiPage("page_modio.xml", { | |||||
"callback": "initMods" | |||||
}); | |||||
} | |||||
] | |||||
); | |||||
} | |||||
/** | /** | ||||
* Compares the given versions using the given operator. | * Compares the given versions using the given operator. | ||||
* '-' or '_' is ignored. Only numbers are supported. | * '-' or '_' is ignored. Only numbers are supported. | ||||
* @note "5.3" < "5.3.0" | * @note "5.3" < "5.3.0" | ||||
*/ | */ | ||||
function versionSatisfied(version1, operator, version2) | function versionSatisfied(version1, operator, version2) | ||||
{ | { | ||||
let versionList1 = version1.split(/[-_]/)[0].split(/\./g); | let versionList1 = version1.split(/[-_]/)[0].split(/\./g); | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
"the mod.io server" both sounds like that is a single one, and very specific, even if the ability to configure the endpoint isn't considered. This "improvement" to that message does not seem to resemble one in the least.
This message box isn't meant to evoke a feeling of warmth or "all is well" in the user, it is meant "click yes and deal with the horrible consequences of "we" not having taken proper care.