move style icon into Lua

This commit is contained in:
Glenn Maynard
2006-11-22 01:58:11 +00:00
parent 81c407bc08
commit 29dd2b0473
5 changed files with 21 additions and 22 deletions
@@ -0,0 +1,11 @@
local style = GAMESTATE:GetCurrentStyle();
if not style then return Def.Actor {}; end
local s = style:GetName();
local Reverse = PlayerNumber:Reverse();
local t = LoadActor("_icon " .. s)() .. {
InitCommand = cmd(pause;setstate,Reverse[GAMESTATE:GetMasterPlayerNumber()]);
};
return t;