Any programmers around? I don't throughly understand the menu system, but i managed to get my custom menu showing up and an item in the main menu to access it.
miNetplayMessage1 = new MI_Text("Please select the Netplay Mode", 320, 5, 0, 2, 1);
miNetplayMessage2 = new MI_Text("Join: Enter an existing game", 320, 25, 0, 1, 1);
miNetplayMessage3 = new MI_Text("Host: Create a new game", 320, 40, 0, 1, 1);
miNetplayJoin = new MI_Button(&spr_selectfield, 120, 386, "Join", 200, 0);
miNetplayHost = new MI_Button(&spr_selectfield, 310, 386, "Host", 200, 0);
miNetplayCancel = new MI_Button(&spr_selectfield, 220, 416, "Cancel", 200, 0);
mNetMenu.AddControl(miNetplayJoin , miNetplayCancel, miNetplayCancel, miNetplayHost, miNetplayHost);
mNetMenu.AddControl(miNetplayHost , miNetplayCancel, miNetplayCancel, miNetplayJoin, miNetplayJoin);
mNetMenu.AddControl(miNetplayCancel, miNetplayCancel, miNetplayCancel, miNetplayJoin, miNetplayJoin);
When i move around to the neighbors, it crashes. I should give a backtrace, but i'll edit that in.
Current status: Existing netplay code is setup as optional with an option to enable it. Fixed some warnings and possibly bad code in net.cpp for converting values to and from byte arrays. net_close and net_init codes are now uncommented but ifdef'd to only compile with netplay.