FlyUISampleExtension.cs 443 B

123456789101112131415161718
  1. using PixiEditor.Extensions.Sdk;
  2. namespace FlyUISample;
  3. public class FlyUiSampleExtension : PixiEditorExtension
  4. {
  5. public override void OnInitialized()
  6. {
  7. WindowContentElement content = new WindowContentElement();
  8. var popup = Api.WindowProvider.CreatePopupWindow("Sample Window", content);
  9. content.Window = popup;
  10. popup.Width = 800;
  11. popup.Height = 720;
  12. popup.Show();
  13. }
  14. }