Jump to content
Default Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Default Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Sign in to follow this  
edu

Trying to use the api to create a menu items

Recommended Posts

I was trying to use the api to create a menu item but i cant.

And i cant find the information about the visualcomponent items.

image.png

Share this post


Link to post
Share on other sites

The only available options for the MENU in the SDK are:

 

public MenuBool(string internalName, string displayName, bool enabled = true)
public MenuColor(string internalName, string displayName, Color defaultColor, bool defaultHasCheckBoxValue)
public MenuKeyBind(
            string              internalName,
            string              displayName,
            VirtualKeyCode key,
            KeybindType         keybindType,
            bool                active = false,
            bool                shared = false)
public MenuList(
            string              internalName,
            string              displayName,
            IEnumerable<string> items,
            int                 selectedValue = 0,
            bool                shared        = false)
public MenuSeperator(string internalName, string text = "")
public MenuSlider(
            string internalName,
            string displayName,
            int    value,
            int    minValue = 0,
            int    maxValue = 100,
            bool   shared   = false)
public MenuSliderBool(
            string internalName,
            string displayName,
            bool   enabled,
            int    value,
            int    minValue = 0,
            int    maxValue = 100)

 

Using IMGUI Buttons is another topic.

  • Thanks 1

giphy.gif

Gaben strategies too OP.

Share this post


Link to post
Share on other sites
13 minutes ago, Feretorix said:

The only available options for the MENU in the SDK are:

 


public MenuBool(string internalName, string displayName, bool enabled = true)
public MenuColor(string internalName, string displayName, Color defaultColor, bool defaultHasCheckBoxValue)
public MenuKeyBind(
            string              internalName,
            string              displayName,
            VirtualKeyCode key,
            KeybindType         keybindType,
            bool                active = false,
            bool                shared = false)
public MenuList(
            string              internalName,
            string              displayName,
            IEnumerable<string> items,
            int                 selectedValue = 0,
            bool                shared        = false)
public MenuSeperator(string internalName, string text = "")
public MenuSlider(
            string internalName,
            string displayName,
            int    value,
            int    minValue = 0,
            int    maxValue = 100,
            bool   shared   = false)
public MenuSliderBool(
            string internalName,
            string displayName,
            bool   enabled,
            int    value,
            int    minValue = 0,
            int    maxValue = 100)

 

Okay, so in that case, can you considder adding buttons, labels and textbox? Thanks

Share this post


Link to post
Share on other sites

I will consider adding "buttons" and "textbox", you can use MenuSeparator right now as "label".

Let me know if you need more features.


giphy.gif

Gaben strategies too OP.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...