diff options
Diffstat (limited to 'src/SMAPI.Web/wwwroot/Content/js')
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/js/log-parser.js | 11 | ||||
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/js/mods.js | 7 |
2 files changed, 16 insertions, 2 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/js/log-parser.js b/src/SMAPI.Web/wwwroot/Content/js/log-parser.js index 0c654205..e87a1a5c 100644 --- a/src/SMAPI.Web/wwwroot/Content/js/log-parser.js +++ b/src/SMAPI.Web/wwwroot/Content/js/log-parser.js @@ -69,6 +69,13 @@ smapi.logParser = function (data, sectionUrl) { updateModFilters(); }, + toggleSection: function (name) { + if (!data.enableFilters) + return; + + this.showSections[name] = !this.showSections[name]; + }, + showAllMods: function () { if (!data.enableFilters) return; @@ -95,6 +102,10 @@ smapi.logParser = function (data, sectionUrl) { filtersAllow: function(modId, level) { return this.showMods[modId] !== false && this.showLevels[level] !== false; + }, + + sectionsAllow: function (section) { + return this.showSections[section] !== false; } } }); diff --git a/src/SMAPI.Web/wwwroot/Content/js/mods.js b/src/SMAPI.Web/wwwroot/Content/js/mods.js index 05114b00..874fbf25 100644 --- a/src/SMAPI.Web/wwwroot/Content/js/mods.js +++ b/src/SMAPI.Web/wwwroot/Content/js/mods.js @@ -102,15 +102,18 @@ smapi.modList = function (mods, enableBeta) { // set SMAPI 3.0 display text switch (mod.Smapi3Status) { case "ok": - mod.Smapi3DisplayText = "✓"; + mod.Smapi3DisplayText = "✓ yes"; + mod.Smapi3Tooltip = "The latest version of this mod is compatible with SMAPI 3.0."; break; case "broken": - mod.Smapi3DisplayText = "✖"; + mod.Smapi3DisplayText = "✖ no"; + mod.Smapi3Tooltip = "This mod will break in SMAPI 3.0; consider notifying the author."; break; default: mod.Smapi3DisplayText = "↻ " + mod.Smapi3Status; + mod.Smapi3Tooltip = "This mod has a pending update for SMAPI 3.0 which hasn't been released yet."; break; } |