Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. How to have a dropdown

How to have a dropdown

Scheduled Pinned Locked Moved Solved ScriptAPI
9 Posts 5 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IvanoVladimirs
    wrote on last edited by
    #1

    How do I add a dropdown to my module? example: https://gyazo.com/a0206c52ecd6bebab1d6b02179d5a204

    CzechHekC I ENDER1355E 3 Replies Last reply
    0
    • I IvanoVladimirs

      How do I add a dropdown to my module? example: https://gyazo.com/a0206c52ecd6bebab1d6b02179d5a204

      I Offline
      I Offline
      i forgor
      wrote on last edited by
      #3

      @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
      });
      
      I 1 Reply Last reply
      0
      • I IvanoVladimirs

        How do I add a dropdown to my module? example: https://gyazo.com/a0206c52ecd6bebab1d6b02179d5a204

        CzechHekC Offline
        CzechHekC Offline
        CzechHek
        wrote on last edited by
        #2

        @ivanovladimirs by looking at src of scripts
        by looking at documentation https://liquidbounce.net/docs/ScriptAPI/Global Classes

        1 Reply Last reply
        0
        • I IvanoVladimirs

          How do I add a dropdown to my module? example: https://gyazo.com/a0206c52ecd6bebab1d6b02179d5a204

          I Offline
          I Offline
          i forgor
          wrote on last edited by
          #3

          @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
          });
          
          I 1 Reply Last reply
          0
          • I IvanoVladimirs

            How do I add a dropdown to my module? example: https://gyazo.com/a0206c52ecd6bebab1d6b02179d5a204

            ENDER1355E Offline
            ENDER1355E Offline
            ENDER1355
            wrote on last edited by
            #4

            @ivanovladimirs sup bro, its me ENDER1355 from the discord

            1 Reply Last reply
            0
            • I i forgor

              @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
              });
              
              I Offline
              I Offline
              IvanoVladimirs
              wrote on last edited by
              #5

              @i-forgor
              I have my code

              settings: {
                      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?

              exit scammedE 1 Reply Last reply
              1
              • I IvanoVladimirs

                @i-forgor
                I have my code

                settings: {
                        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?

                exit scammedE Offline
                exit scammedE Offline
                exit scammed
                wrote on last edited by
                #6

                @ivanovladimirs

                settings: {
                        PhaseType: Setting.list({
                			name: "Type",
                			default: "Vertical",
                			values: ["Vertical", "Horizontal"]
                		});
                                  ^ don't use this, use "," instead if you have more settings
                	}
                
                I 2 Replies Last reply
                0
                • exit scammedE exit scammed

                  @ivanovladimirs

                  settings: {
                          PhaseType: Setting.list({
                  			name: "Type",
                  			default: "Vertical",
                  			values: ["Vertical", "Horizontal"]
                  		});
                                    ^ don't use this, use "," instead if you have more settings
                  	}
                  
                  I Offline
                  I Offline
                  IvanoVladimirs
                  wrote on last edited by
                  #7

                  @0x64 yes ik this script that I'm making will only have 1 setting

                  1 Reply Last reply
                  1
                  • exit scammedE exit scammed

                    @ivanovladimirs

                    settings: {
                            PhaseType: Setting.list({
                    			name: "Type",
                    			default: "Vertical",
                    			values: ["Vertical", "Horizontal"]
                    		});
                                      ^ don't use this, use "," instead if you have more settings
                    	}
                    
                    I Offline
                    I Offline
                    IvanoVladimirs
                    wrote on last edited by
                    #8

                    @0x64 actually I removed the ";" and it works now lmao

                    I 1 Reply Last reply
                    1
                    • I IvanoVladimirs

                      @0x64 actually I removed the ";" and it works now lmao

                      I Offline
                      I Offline
                      i forgor
                      wrote on last edited by
                      #9

                      @ivanovladimirs sorry im used to use variables instead of putting them on the list

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      About
                      • Terms of Service
                      • Privacy Policy
                      • Status
                      • Contact Us
                      Downloads
                      • Releases
                      • Source code
                      • License
                      Docs
                      • Tutorials
                      • CustomHUD
                      • AutoSettings
                      • ScriptAPI
                      Community
                      • Forum
                      • Guilded
                      • YouTube
                      • Twitter
                      • D.Tube
                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups