public void Editor_AddStatsString(string name, lua.LuaFunction func) { statusStrings.Add( new StatusString() { name = name, func = func.Retain(), }); }
public void Editor_AddButton(string name, lua.LuaFunction func, int width = 100) { buttons.Add( new Button() { name = name, func = func.Retain() }); }
public void Editor_AddToolbarButton(string name, lua.LuaFunction func, int width = 100) { toolbarButtons.Add( new Button() { name = name, func = func.Retain(), width = width, }); }
public void Editor_AddGraph( string name, string unitName, lua.LuaFunction func, float time, float duration, float x, float y, float w, float h, Color color) { var g = new Graph() { name = name, unitName = unitName, func = func.Retain(), time = time, sampleStepDuration = duration, rect = new Rect(x, y, w, h), color = color }; g.Initialize(); graphs.Add(g); }
public void Editor_SetCmdHandler(string name, lua.LuaFunction func) { cmdHandlerName = name; cmdHandler = func.Retain(); }