ModalWindow.cs 591 B

1234567891011121314151617181920
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using BansheeEngine;
  4. namespace BansheeEditor
  5. {
  6. public class ModalWindow : ScriptObject
  7. {
  8. protected EditorGUI GUI;
  9. public ModalWindow(int top, int left, int width, int height)
  10. {
  11. Internal_CreateInstance(this, top, left, width, height);
  12. GUI = new EditorGUI(this);
  13. }
  14. [MethodImpl(MethodImplOptions.InternalCall)]
  15. private static extern void Internal_CreateInstance(ModalWindow instance, int top, int left, int width, int height);
  16. }
  17. }