Esempio n. 1
0
 public void Editor_AddStatsString(string name, lua.LuaFunction func)
 {
     statusStrings.Add(
         new StatusString()
     {
         name = name,
         func = func.Retain(),
     });
 }
Esempio n. 2
0
 public void Editor_AddButton(string name, lua.LuaFunction func, int width = 100)
 {
     buttons.Add(
         new Button()
     {
         name = name,
         func = func.Retain()
     });
 }
Esempio n. 3
0
 public void Editor_AddToolbarButton(string name, lua.LuaFunction func, int width = 100)
 {
     toolbarButtons.Add(
         new Button()
     {
         name  = name,
         func  = func.Retain(),
         width = width,
     });
 }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 public void Editor_SetCmdHandler(string name, lua.LuaFunction func)
 {
     cmdHandlerName = name;
     cmdHandler     = func.Retain();
 }