FlyUISampleExtension.cs 406 B

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