// 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 }); }
//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 } ); }