AJ Kelly
|
74d7895ccd
|
add ScreenSelectMaster:GetSelectionIndex() Lua binding.
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");
};
|
2010-03-09 03:20:44 -06:00 |
|