deliter 203 Posted November 4, 2015 Report Share Posted November 4, 2015 Hey Ive just made my first plugin,I dont know practically any C#,just pasting bits I need together,have a beginner level understanding of javascript Is their any code example of making a dropdown selection please? this is from the Ubot site,which doesn't mean much to me,thanks for any help public UBotType Type { get; private set; }/// <summary>/// This can be used to define a list of values that the user can select from with a dropbox./// </summary> Quote Link to post Share on other sites
Solution nichewebstrategies 12 Posted November 5, 2015 Solution Report Share Posted November 5, 2015 It's pretty simple to do. In the constructor of your plugin where you are defining your parameters, you will set the options of your dropdown like so: _parameters.Add(new UBotParameterDefinition("My Awesome Parameter", UBotType.String)); _parameters[0].Options = new List<string> { "option 1", "option 2", "option 3" };Hope this helps. 1 Quote Link to post Share on other sites
deliter 203 Posted November 5, 2015 Author Report Share Posted November 5, 2015 Awesome, Very nice of you thanks. Was not getting anywhere with it Quote Link to post Share on other sites
nichewebstrategies 12 Posted November 5, 2015 Report Share Posted November 5, 2015 No worries, glad to help. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.