Beispiel #1
0
        private void saveWorkflowConfigurationViewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ParametersTab parametersTab = new ParametersTab(_nwfContext, "Parameters");

            WebBrowser browser = parametersTab.Browser;

            _common.SaveHtmlToFile(browser, "Parameters");
        }
Beispiel #2
0
        protected override void Load()
        {
            _fieldTexture = Resources.LoadAssetAtPath <Texture>(Consts.FIELD_TEXTURE_PATH);
            var types = Enum.GetValues(typeof(BlockType)).Cast <BlockType>();

            _blockTextures = types.ToDictionary(
                type => type,
                type => (Texture)AssetDatabase.LoadAssetAtPath(Consts.BLOCKS_TEXTURES_PATH + type + ".png", typeof(Texture))
                );

            _taskTab  = new TaskTab();
            _blockTab = new BlockTab(_blockTextures);
            _parmsTab = new ParametersTab();

            _tabs = new Tabs.Tabs(_parmsTab, _blockTab, _taskTab);

            _field = new FieldPanel(Consts.FIELD_WIDTH, Consts.FIELD_HEIGHT, new Vector2(Consts.BLOCK_WIDTH, Consts.BLOCK_HEIGHT), _blockTextures);

            Level = new LevelInfo();
        }