Пример #1
0
 protected override void Load()
 {
     Title     = "InterfaceEdit";
     TestApi   = new TestingApi(this);
     guiHelper = new ImGuiHelper(this, DpiScale);
     FileDialog.RegisterParent(this);
     RenderContext.PushViewport(0, 0, Width, Height);
     new MaterialMap();
     Fonts = new FontManager();
     LibreLancer.Shaders.AllShaders.Compile();
     Keyboard.KeyDown += args =>
     {
         if (playing && args.Key == Keys.F1)
         {
             _playContext.Event("Pause");
         }
     };
     CommandBuffer = new CommandBuffer();
 }