Okay, I've battled them for a LONG time now and I finally am throwing in the towel. How the heck does Spring know what buttons to build where? Since every unit can have different commands (on/off, cloak, etc) where/how can proper build menus be made?!
I found the code that sets it... (UnitDefHandler.cpp)
Code: Select all
int num=(menu-2)*6+button+1;
builder->buildOptions[num]=un2;
So, from the first entry of the FARK...
Code: Select all
[MENUENTRY1]
{
UNITMENU=ARMALAB;
MENU=4;
BUTTON=3;
UNITNAME=ARMFARK;
}
This is telling me using that formula that it'll be given position 16...
!?!?!
Please shed some light on this... As well as what is the maximum number of menus a unit can have
