Problem is Menus are really difficult to understand.
The idea I was going with was to make a Menu class inheriting from GenericMenu then iterating through my list of documents to create a new list item for each one.
Heres where things get confusing.
All the exampels in zdoom.p3k seem to use a MenuItem with a MenuItemBase and they seem to kind of just run themselves off of MENUDEF. So I can't for the life of me figure out how to initialize one manually from the code.
For example I tried making a class called DocumentMenuItem extending MenuItemBase but if i just say do this
Code: Select all
DocumentMenuItem new_item;
new_item.init(stuff...);
This error happens if i call ANY method on the new_item.
Rather than post all of my code, which is mostly copy and pasting what I think is correct, I was hoping to hear some guidence on how to do this properly.