Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - 2MuchToo

Pages: 1
1
Developers' Area / Newbie here, stuck on tutorial
« on: March 09, 2020, 12:38:49 AM »
Hi!  Thanks to Steven and this community for the great player app.

I am interested in making a plugin.  I'm a total C# newb and it's a few years since I did coding at all. So I've been following the tutorial, but got stuck.  I believe the issue is where methods belong in the code, specifically createMenuItem() and MenuClicked, and/or the call to mbApiInterface.createmenuitem()






If I have the createmenuitem call in the Initialize method as per the instructions (highlighted), then
If createMenuItem() and MenuClicked are outside the Initialize code block, I get “Unreachable code detected”.  Everything still runs but there's no menu created.

If the 2 methods are inside the Initialize code block I get “The modifier private is not valid for this item.” Again it doesn't crash but no menu.

If I put mbApiInterface.createmenuitem() outside of Initialize method, I get “The name mbApiInterface.createmenuitem() does not exist in the current context.

I imagine this is a very simple error related to the flow of the code, but I am stumped. If someone could point me right it would be much appreciated!

Thanks!

Pages: 1