MenuModel Class

ensureChild
function ensureChild(node, name)

getChild
function getChild(node, name)

getNode
function getNode(fullName)

init
function init

regActionButton
function regActionButton(fullName, icon, tooltip, priority, actionClass, ...)

regBuilding
function regBuilding(building, fullName, icon, tooltip, priority)

regButton
function regButton(fullName, icon, tooltip, priority, onClick, isSelectedFunc, customUpdateFunc)

regGroup
function regGroup(fullName, icon, tooltip, priority)

regLuaWindow
function regLuaWindow(windowClass, fullName, icon, tooltip, priority)

regNode
function regNode(fullName, data)

regWindow
function regWindow(windowName, fullName, icon, tooltip, priority)