How to have a dropdown
Solved
ScriptAPI
-
How do I add a dropdown to my module? example: https://gyazo.com/a0206c52ecd6bebab1d6b02179d5a204
-
@ivanovladimirs
add a setting.list :valueName: Setting.list({ name: "BypassMode", // name of the value (lol) default: "None", // default mode values: ["None", "Old", "New"] // list of possible modes });
-
@ivanovladimirs by looking at src of scripts
by looking at documentation https://liquidbounce.net/docs/ScriptAPI/Global Classes -
@ivanovladimirs
add a setting.list :valueName: Setting.list({ name: "BypassMode", // name of the value (lol) default: "None", // default mode values: ["None", "Old", "New"] // list of possible modes });
-
@ivanovladimirs sup bro, its me ENDER1355 from the discord
-
@i-forgor
I have my codesettings: { PhaseType: Setting.list({ name: "Type", default: "Vertical", values: ["Vertical", "Horizontal"] }); }
But for some reason when I do
module.settings.PhaseType.get()
that doesn't work. How would I fix that?
-
settings: { PhaseType: Setting.list({ name: "Type", default: "Vertical", values: ["Vertical", "Horizontal"] }); ^ don't use this, use "," instead if you have more settings }
-
@0x64 yes ik this script that I'm making will only have 1 setting
-
@0x64 actually I removed the ";" and it works now lmao
-
@ivanovladimirs sorry im used to use variables instead of putting them on the list