--======================>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> function Menu.MenuAdd(nAFMenuID, sAFMenuText, nAFIconID, bAFIsEnabled, bAFIsChecked, nAFMainMenuItem) --[[>> << >> << >> <<<<<<<<<<<<<<<<<<<<<================================================================================================--]] Menu.Test(); if nAFMainMenuItem == 0 or nAFMainMenuItem > Table.Count(tAFMenu) then Application.ExitScript(); end if tAFMenu[nAFMainMenuItem].SubMenu then nAFCurrentMenuItem = (Table.Count(tAFMenu[nAFMainMenuItem].SubMenu) + 1); else tAFMenu[nAFMainMenuItem].SubMenu = {}; nAFCurrentMenuItem = 1; end tAFMenu[nAFMainMenuItem].SubMenu[nAFCurrentMenuItem] = {}; tAFMenu[nAFMainMenuItem].SubMenu[nAFCurrentMenuItem].ID = nAFMenuID; tAFMenu[nAFMainMenuItem].SubMenu[nAFCurrentMenuItem].Text = sAFMenuText; tAFMenu[nAFMainMenuItem].SubMenu[nAFCurrentMenuItem].IconID = nAFIconID; tAFMenu[nAFMainMenuItem].SubMenu[nAFCurrentMenuItem].Enabled = bAFIsEnabled; tAFMenu[nAFMainMenuItem].SubMenu[nAFCurrentMenuItem].Checked = bAFIsChecked; Application.SetMenu(tAFMenu); -->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> end--|||||||||||||END FUNCTION||||||||||||||||| -->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>