forked from teamnwah/openmw-tes3coop
added edit modes for exteriors
This commit is contained in:
parent
2acf446f18
commit
b7f8f848a8
2 changed files with 24 additions and 0 deletions
|
@ -21,7 +21,9 @@
|
||||||
#include "../../model/world/idtable.hpp"
|
#include "../../model/world/idtable.hpp"
|
||||||
|
|
||||||
#include "../widget/scenetooltoggle.hpp"
|
#include "../widget/scenetooltoggle.hpp"
|
||||||
|
#include "../widget/scenetoolmode.hpp"
|
||||||
|
|
||||||
|
#include "editmode.hpp"
|
||||||
#include "elements.hpp"
|
#include "elements.hpp"
|
||||||
|
|
||||||
bool CSVRender::PagedWorldspaceWidget::adjustCells()
|
bool CSVRender::PagedWorldspaceWidget::adjustCells()
|
||||||
|
@ -194,6 +196,26 @@ void CSVRender::PagedWorldspaceWidget::mouseDoubleClickEvent (QMouseEvent *event
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSVRender::PagedWorldspaceWidget::addEditModeSelectorButtons (
|
||||||
|
CSVWidget::SceneToolMode *tool)
|
||||||
|
{
|
||||||
|
WorldspaceWidget::addEditModeSelectorButtons (tool);
|
||||||
|
|
||||||
|
/// \todo replace EditMode with suitable subclasses
|
||||||
|
tool->addButton (
|
||||||
|
new EditMode (this, QIcon (":armor.png"), Element_Reference, "Terrain shape editing"),
|
||||||
|
"terrain-shape");
|
||||||
|
tool->addButton (
|
||||||
|
new EditMode (this, QIcon (":armor.png"), Element_Reference, "Terrain texture editing"),
|
||||||
|
"terrain-texture");
|
||||||
|
tool->addButton (
|
||||||
|
new EditMode (this, QIcon (":armor.png"), Element_Reference, "Terrain vertex paint editing"),
|
||||||
|
"terrain-vertex");
|
||||||
|
tool->addButton (
|
||||||
|
new EditMode (this, QIcon (":armor.png"), Element_Reference, "Terrain movement"),
|
||||||
|
"terrain-move");
|
||||||
|
}
|
||||||
|
|
||||||
void CSVRender::PagedWorldspaceWidget::updateOverlay()
|
void CSVRender::PagedWorldspaceWidget::updateOverlay()
|
||||||
{
|
{
|
||||||
if(getCamera()->getViewport())
|
if(getCamera()->getViewport())
|
||||||
|
|
|
@ -79,6 +79,8 @@ namespace CSVRender
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
virtual void addEditModeSelectorButtons (CSVWidget::SceneToolMode *tool);
|
||||||
|
|
||||||
virtual void updateOverlay();
|
virtual void updateOverlay();
|
||||||
|
|
||||||
virtual void mouseReleaseEvent (QMouseEvent *event);
|
virtual void mouseReleaseEvent (QMouseEvent *event);
|
||||||
|
|
Loading…
Reference in a new issue