(C#) MenuAPI - MAPI v2.0.0


#1

MenuAPI (MAPI)

Hey there, it’s another resource thingy I made. This time a (for now only) C# Menu API.
Checkout the basics about it below, or visit the docs for more info.

This menu API was specifically designed to fit vMenu’s needs. However, I’ve tried to make it as open and configurable as possible. vMenu will use this API, starting from vMenu v2.1.0 and up.

:warning: important note!

I will not help you creating menus with this API. This is not some easy copy/paste lua thingy that you can just edit and it’ll work. You actually need to understand more than just some basics about programming.
Because this is a slightly advanced API/resource, I will only be providing support to people who really know what they’re doing, and to people who report bugs using a proper bug report template.

Docs

Here you can find all info about the API. Docs are a WIP so don’t expect too much to be on there atm.
MenuAPI Documentation

Download / Source

Here

Most noticeable features

  • Left & Right aligned menus are supported, and can be changed at any time during runtime. They’ll both scale with the safezone size automatically.
  • If the screen resolution is too small, the menu will automatically display fewer items at a time to make sure it never goes off-screen. (note, very long item descriptions can still cause part of the menu to go off screen in rare cases)
  • Almost all menu items support left and right badges/icons.
  • Menu items can have left and right text.
  • Menu items can be disabled if you don’t want users to interact with them.
  • The menu API handles all controls for you, you can choose your own menu toggle button if you prefer that. However, the controller keybind can not be changed and will always be set to back/select (default Interaction Menu toggle, hold it for 400ms to toggle the menu).
  • Multiple checkbox designs supported.
  • You can prevent users from exiting the menu using the normal ESC/backspace/cancel controls. (only do this for important menus where you need progress saved or something like that, and always have a button to exit the menu! Be nice to your users!)

Some examples

Here are some examples of what you can expect to be able to achieve with this API (if you put some time into it). Most of these screenshots are taken from vMenu after it was converted to this MenuAPI. Some are taken from the example menu provided with MenuAPI.

Makeup & Hair color panels, and also opacity panels.

They actually are just list items but you can toggle these panels to appear below the description box if you want them enabled

List items

Slider items

You can have your own custom colors. Both background and foreground bar colors are fully customizable.

Optionally you can also choose from 29 different sprites to appear on either side of the slider.

Checkbox items

Menus without banners

You can create a menu without a banner if you prefer that.

Customizable instructional buttons (per menu)

Each menu can have it’s own set of instructional buttons. By default every menu has one setup for ‘select’ and ‘cancel/back’. But you can remove those if you don’t need them.

You can also disable the instructional buttons all together if you want to handle that yourself.

Instructional buttons instantly update if the user switches between keyboard/mouse and controller.

Did somebody say icons?

We’ve got plenty of those! (They don’t even fit on one page, seriously there are 29 icons to choose from.)

You can also use icons even when you have text on the right side of an item, the text will move over for your icon automatically.


vMenu v3.0.1 - A server-sided menu including (almost) full permissions support
[Release] [Updated 2/19/19] Object Spawner v3
#2

a resource by vespura without a v prefixed :o :stuck_out_tongue: great work as always


#3

Nice release, looking forward to being able to use this in lua down the line :wink:


#4

vMAPI? :thinking: Great Release btw


#5

-v :wink:
just MAPI


#6

Doesnt seem like a Vespura resource without a V lmao


#7

ok


#8

ok, no lua for you then.


#9

Pretty nice looking forward to converting some things over from LUA


#10

no need to, @Vespura said he will do it, and it’s just a matter of adding some exports iirc :stuck_out_tongue:


#11

Can’t wait for this to be made for Lua, nice job as usual.


#12

Ahh, i was saying my personal made menus for my servers are in Frazzles LUA.


#13

If it was that easy then you could’ve done it yourself. Clearly it takes more time than “just adding exports”. Creating a proper wrapper takes time. And I don’t have such time atm. So I won’t be doing it soon. But it will come at some point.


#14

mAkE wErK wItH vRp aNd eSx!?

Summary

I like this. This gud resource.


#15

https://docs.vespura.com/mapi/faq/#q-does-this-work-with-this-small-enter-name-here-small-rp-framework Specifically for you :fire:


#16

I already got this added into my project and it works great. Awesome release.


#17

Got this implemented into my C# framework and works like a charm.

Great work!


#18

would be nice if it could be an indipendent script with exports to add/remove submenus, so you always have one main menu made with such API and then each script just adds/manages the own submenu


#19

Beautiful <3


#20

Could you also add something equivalent to UIMenuDynamicListItem used in NativeUI ?