|
|
@@ -266,37 +266,41 @@ namespace BansheeEditor
|
|
|
gMainSyncedCA().readSubresource(dbgCursor.getInternalPtr(), 0, cursorPixelData);
|
|
|
gMainSyncedCA().submitToCoreThread(true);
|
|
|
|
|
|
- RENDER_WINDOW_DESC modalWindowDesc;
|
|
|
- modalWindowDesc.width = 200;
|
|
|
- modalWindowDesc.height = 200;
|
|
|
- modalWindowDesc.left = 0;
|
|
|
- modalWindowDesc.top = 0;
|
|
|
- modalWindowDesc.title = "ModalWindow";
|
|
|
- modalWindowDesc.fullscreen = false;
|
|
|
- modalWindowDesc.border = WindowBorder::None;
|
|
|
- modalWindowDesc.toolWindow = true;
|
|
|
- modalWindowDesc.modal = true;
|
|
|
+ /************************************************************************/
|
|
|
+ /* MODAL WINDOW */
|
|
|
+ /************************************************************************/
|
|
|
+
|
|
|
+ //RENDER_WINDOW_DESC modalWindowDesc;
|
|
|
+ //modalWindowDesc.width = 200;
|
|
|
+ //modalWindowDesc.height = 200;
|
|
|
+ //modalWindowDesc.left = 0;
|
|
|
+ //modalWindowDesc.top = 0;
|
|
|
+ //modalWindowDesc.title = "ModalWindow";
|
|
|
+ //modalWindowDesc.fullscreen = false;
|
|
|
+ //modalWindowDesc.border = WindowBorder::None;
|
|
|
+ //modalWindowDesc.toolWindow = true;
|
|
|
+ //modalWindowDesc.modal = true;
|
|
|
|
|
|
- RenderWindowPtr modalWindow = RenderWindow::create(modalWindowDesc, gApplication().getPrimaryWindow());
|
|
|
+ //RenderWindowPtr modalWindow = RenderWindow::create(modalWindowDesc, gApplication().getPrimaryWindow());
|
|
|
|
|
|
- HSceneObject modalSceneObject = SceneObject::create("ModalWindow");
|
|
|
+ //HSceneObject modalSceneObject = SceneObject::create("ModalWindow");
|
|
|
|
|
|
- HCamera modalCamera = modalSceneObject->addComponent<Camera>();
|
|
|
- modalCamera->initialize(modalWindow, 0.0f, 0.0f, 1.0f, 1.0f);
|
|
|
- modalCamera->setNearClipDistance(5);
|
|
|
- modalCamera->setAspectRatio(1.0f);
|
|
|
- modalCamera->setIgnoreSceneRenderables(true);
|
|
|
+ //HCamera modalCamera = modalSceneObject->addComponent<Camera>();
|
|
|
+ //modalCamera->initialize(modalWindow, 0.0f, 0.0f, 1.0f, 1.0f);
|
|
|
+ //modalCamera->setNearClipDistance(5);
|
|
|
+ //modalCamera->setAspectRatio(1.0f);
|
|
|
+ //modalCamera->setIgnoreSceneRenderables(true);
|
|
|
|
|
|
- HGUIWidget modalGUI = modalSceneObject->addComponent<GUIWidget>(modalCamera->getViewport().get());
|
|
|
- modalGUI->setDepth(128);
|
|
|
+ //HGUIWidget modalGUI = modalSceneObject->addComponent<GUIWidget>(modalCamera->getViewport().get());
|
|
|
+ //modalGUI->setDepth(128);
|
|
|
|
|
|
- modalGUI->setSkin(EditorGUI::instance().getSkin());
|
|
|
+ //modalGUI->setSkin(EditorGUI::instance().getSkin());
|
|
|
|
|
|
- GUIArea* modalArea = GUIArea::createStretchedXY(*modalGUI, 0, 0, 0, 0, 500);
|
|
|
- GUIButton* modalButton = GUIButton::create(*modalGUI, HString(L"Close"));
|
|
|
- modalButton->onClick.connect(boost::bind(&EditorApplication::closeModalWindow, modalWindow, modalSceneObject));
|
|
|
+ //GUIArea* modalArea = GUIArea::createStretchedXY(*modalGUI, 0, 0, 0, 0, 500);
|
|
|
+ //GUIButton* modalButton = GUIButton::create(*modalGUI, HString(L"Close"));
|
|
|
+ //modalButton->onClick.connect(boost::bind(&EditorApplication::closeModalWindow, modalWindow, modalSceneObject));
|
|
|
|
|
|
- modalArea->getLayout().addElement(modalButton);
|
|
|
+ //modalArea->getLayout().addElement(modalButton);
|
|
|
|
|
|
|
|
|
/************************************************************************/
|