The original attempt was not working for doxygen purposes.
Example usage: LoadFont("Common normal")..{ InitCommand=cmd(xy,SCREEN_RIGHT-32,SCREEN_BOTTOM-32;shadowlength,0;horizalign,right); OnCommand=cmd(playcommand,"Set"); SetCommand=function(self) local selIdx = SCREENMAN:GetTopScreen():GetSelectionIndex(GAMESTATE:GetMasterPlayerNumber()); self:settext(selIdx); end; MenuSelectionChangedMessageCommand=cmd(playcommand,"Set"); };