protected override void OnInitUI() { buttonBakeIntoMesh = ProcedureForm.CreateButton(Translate("Bake into Mesh")); buttonBakeIntoMesh.Click += ButtonBakeIntoMesh_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonBakeIntoMesh }); }
/////////////////////////////////////////////// protected override void OnInit() { buttonRender = ProcedureForm.CreateButton(EditorLocalization.Translate("General", "Render")); buttonRender.Click += ButtonCalculate_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonRender }); }
// protected override void OnInitUI() { buttonClick = ProcedureForm.CreateButton("Click"); buttonClick.Click += ButtonClick_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonClick }); }
// protected override void OnInit() { buttonUpdate = ProcedureForm.CreateButton(EditorLocalization.Translate("General", "Update")); buttonUpdate.Click += ButtonUpdate_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonUpdate }); }
protected override void OnInit() { buttonReimport = ProcedureForm.CreateButton(Translate("Re-import")); buttonReimport.Click += ButtonReimport_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonReimport }); }
// protected override void OnInit() { { var textInfo = ProcedureForm.CreateText("Easy HDR file import"); // Specify web of file path to a file." ); textInfo.Bold = true; ProcedureForm.AddRow(new ProcedureUI.Control[] { textInfo }); } { var textInfo = ProcedureForm.CreateText("Specify web or file path to a file, click Import."); ProcedureForm.AddRow(new ProcedureUI.Control[] { textInfo }); } editLink = ProcedureForm.CreateEdit("https://hdrihaven.com/files/hdris/qwantani_1k.hdr"); //editLink.TextChanged ProcedureForm.AddRow(new ProcedureUI.Control[] { editLink }); buttonImport = ProcedureForm.CreateButton(EditorLocalization.Translate("General", "Import")); buttonImport.Click += ButtonImport_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonImport }); { var textInfo = ProcedureForm.CreateText("Huge set of 100% Free HDRIs, for Everyone"); // Specify web of file path to a file." ); textInfo.Bold = true; ProcedureForm.AddRow(new ProcedureUI.Control[] { textInfo }); } buttonHDRIHaven = ProcedureForm.CreateButton(EditorLocalization.Translate("General", "Go to HDRI Haven"), ProcedureUI.Button.SizeEnum.Long); buttonHDRIHaven.Click += ButtonHDRIHaven_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonHDRIHaven }); }
private void OnAddClick(object sender, EventArgs e) { Procedure obj = new Procedure(); if (ProcedureForm.ShowForm(obj)) { this.LoadListData(obj); } }
//string workareaModeNameRestore = ""; //DocumentWindowWithViewport.WorkareaModeClass workareaModeRestore; // protected override void OnInit() { buttonBuild = ProcedureForm.CreateButton("Build"); buttonBuild.Click += ButtonBuild_Click; buttonTest = ProcedureForm.CreateButton("Test"); buttonTest.Click += ButtonTest_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonBuild, buttonTest }); }
// protected override void OnInit() { buttonUpdate = ProcedureForm.CreateButton(EditorLocalization.Translate("Terrain", "Update")); buttonUpdate.Click += ButtonUpdate_Click; buttonResizeMasks = ProcedureForm.CreateButton(EditorLocalization.Translate("Terrain", "Resize Masks")); buttonResizeMasks.Click += ButtonResizeMasks_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonUpdate, buttonResizeMasks }); }
// protected override void OnInit() { buttonUpload = ProcedureForm.CreateButton(EditorLocalization.Translate("General", "Upload")); buttonUpload.Click += ButtonUpload_Click; buttonUploadAndPublish = ProcedureForm.CreateButton(EditorLocalization.Translate("General", "Upload and Publish"), ProcedureUI.Button.SizeEnum.Long); buttonUploadAndPublish.Click += ButtonUploadAndPublish_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonUpload, buttonUploadAndPublish }); }
protected override void OnInitUI() { buttonUpdate = ProcedureForm.CreateButton(Translate("Update")); buttonUpdate.Click += ButtonUpdate_Click; buttonInfo = ProcedureForm.CreateButton(Translate("Info")); buttonInfo.Click += ButtonInfo_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonUpdate, buttonInfo }); }
// protected override void OnInit() { buttonStart = ProcedureForm.CreateButton(EditorLocalization.Translate("General", "Start")); buttonStart.Click += ButtonStart_Click; buttonStop = ProcedureForm.CreateButton(EditorLocalization.Translate("General", "Stop")); buttonStop.Click += ButtonStop_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonStart, buttonStop }); }
protected override void OnInitUI() { buttonPlay = ProcedureForm.CreateButton(Translate("Play")); buttonPlay.Click += ButtonPlay_Click; buttonStop = ProcedureForm.CreateButton(Translate("Stop")); buttonStop.Click += ButtonStop_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonPlay, buttonStop }); }
private void OnOpenClick(object sender, EventArgs e) { Procedure obj = this.GetSelected(); if (obj != null) { obj.RefershData(); } if (ProcedureForm.ShowForm(obj)) { this.LoadListData(obj); } }
//ProcedureUI.Button buttonHDRIHaven; // protected override void OnInit() { //bool easyImport = false; //var sky = GetFirstObject<Component_Skybox>(); //if( sky != null ) //{ // var scene = sky.FindParent<Component_Scene>(); // if( scene != null ) // easyImport = true; //} //if( easyImport ) { { var textInfo = ProcedureForm.CreateText("Easy HDR file import"); // Specify web of file path to a file." ); importText1 = textInfo; textInfo.Bold = true; ProcedureForm.AddRow(new ProcedureUI.Control[] { textInfo }); } { var textInfo = ProcedureForm.CreateText("Specify web or file path to a file, click Import."); importText2 = textInfo; ProcedureForm.AddRow(new ProcedureUI.Control[] { textInfo }); } editLink = ProcedureForm.CreateEdit("https://hdrihaven.com/files/hdris/qwantani_4k.hdr"); //editLink.TextChanged ProcedureForm.AddRow(new ProcedureUI.Control[] { editLink }); buttonImport = ProcedureForm.CreateButton(EditorLocalization.Translate("General", "Import")); buttonImport.Click += ButtonImport_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonImport }); } //{ // var textInfo = ProcedureForm.CreateText( "Huge set of 100% Free HDRIs, for Everyone" );// Specify web of file path to a file." ); // textInfo.Bold = true; // ProcedureForm.AddRow( new ProcedureUI.Control[] { textInfo } ); //} //buttonHDRIHaven = ProcedureForm.CreateButton( EditorLocalization.Translate( "General", "Go to HDRI Haven" ), ProcedureUI.Button.SizeEnum.Long ); //buttonHDRIHaven.Click += ButtonHDRIHaven_Click; //ProcedureForm.AddRow( new ProcedureUI.Control[] { buttonHDRIHaven } ); }
protected override void OnInitUI() { buttonClearAll = ProcedureForm.CreateButton(Translate("Clear"), ProcedureUI.Button.SizeEnum.Long); buttonClearAll.Click += ButtonClearAll_Click; buttonClearItems = ProcedureForm.CreateButton(Translate("Clear Objects"), ProcedureUI.Button.SizeEnum.Long); buttonClearItems.Click += ButtonClearObjects_Click; buttonUpdateAlignment = ProcedureForm.CreateButton(Translate("Update Alignment"), ProcedureUI.Button.SizeEnum.Long); buttonUpdateAlignment.Click += ButtonUpdateAlignment_Click; buttonStatistics = ProcedureForm.CreateButton(Translate("Statistics"), ProcedureUI.Button.SizeEnum.Long); buttonStatistics.Click += ButtonStatistics_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonClearAll, buttonClearItems }); ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonUpdateAlignment, buttonStatistics }); }
protected override void OnInitUI() { buttonClearItems = ProcedureForm.CreateButton(Translate("Clear Objects"), ProcedureUI.Button.SizeEnum.Long); buttonClearItems.Click += ButtonClearObjects_Click; buttonUpdateAlignment = ProcedureForm.CreateButton(Translate("Update Alignment"), ProcedureUI.Button.SizeEnum.Long); buttonUpdateAlignment.Click += ButtonUpdateAlignment_Click; buttonUpdateVariations = ProcedureForm.CreateButton(Translate("Update Variations"), ProcedureUI.Button.SizeEnum.Long); buttonUpdateVariations.Click += ButtonUpdateVariations_Click; buttonRandomizeGroups = ProcedureForm.CreateButton(Translate("Random Groups"), ProcedureUI.Button.SizeEnum.Long); buttonRandomizeGroups.Click += ButtonRandomizeGroups_Click; buttonResetColors = ProcedureForm.CreateButton(Translate("Reset Colors"), ProcedureUI.Button.SizeEnum.Long); buttonResetColors.Click += ButtonResetColors_Click; ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonClearItems, buttonUpdateAlignment }); ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonUpdateVariations, buttonRandomizeGroups }); ProcedureForm.AddRow(new ProcedureUI.Control[] { buttonResetColors }); }