diff --git a/features.js b/features.js index 3b816e0..0ca8c8b 100644 --- a/features.js +++ b/features.js @@ -648,15 +648,18 @@ options = [ }, { "name": "Fatal", - "value": "1" + "value": "1", + "warning": "Fatal actions are enabled" }, { "name": "Gory", - "value": "2" + "value": "2", + "warning": "Gory actions are enabled" }, { "name": "Sadistic", - "value": "3" + "value": "3", + "warning": "Brutal actions are enabled" }, ] } @@ -693,6 +696,9 @@ options = [ "name": "Oral Vore", "id": "oralVore", "optional": true, + "buttons": [ + "eat", "chew" + ], "entries": [ { @@ -832,6 +838,7 @@ options = [ "name": "Arousal", "id": "arousalEnabled", "optional": true, + "warning": "Arousal is enabled", "entries": [ { diff --git a/game.js b/game.js index 2ef6d43..6930578 100644 --- a/game.js +++ b/game.js @@ -4272,9 +4272,36 @@ function loadPreset() { loadSettings(presets[select.selectedIndex]); } +function grabFormData(form, warnings, panels, buttons) { + console.log(form); + if (form.hasAttribute("data-warning")) { + warnings.push(form.getAttribute("data-warning")); + } + + if (form.hasAttribute("data-buttons")) { + let text = form.getAttribute("data-buttons"); + + text.split(",").forEach(function(token) { + buttons.push(token); + }) + } + + if (form.hasAttribute("data-panels")) { + let text = form.getAttribute("data-panels"); + + text.split(",").forEach(function(token) { + panels.push(token); + }) + } +} + function generateSettings() { let form = document.forms.namedItem("custom-species-form"); let settings = {}; + let warnings = []; + let panels = []; + let buttons = []; + for (let i=0; i