Exemplo n.º 1
0
        /// <summary>
        /// Create a new LuaTool
        /// </summary>
        /// <param name="parent">The parent Binding</param>
        /// <param name="plugin">The path to the Lua plugin-file</param>
        public LuaTool(Binding parent, string plugin)
        {
            this.parentBinding = parent;
            this.luaFile = MainWindow.getPath() + "Plugins/" + plugin;

            switch (this.parentBinding.BindingType)
            {
                case BindingType.GRAPHICS: bData = MainWindow.GraphData; break;
                case BindingType.PALETTE: bData = MainWindow.PalData; break;
            }
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     this.parentBinding = null;
 }