forked from mirror/openmw-tes3mp
Add control description to tooltip.
This commit is contained in:
parent
f8b43b2a64
commit
da6a742beb
3 changed files with 14 additions and 2 deletions
|
@ -33,7 +33,6 @@ namespace CSVRender
|
||||||
|
|
||||||
if (!hideBasics)
|
if (!hideBasics)
|
||||||
{
|
{
|
||||||
text += "<p>Only one pathgrid may be edited at a time.";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
|
|
|
@ -14,12 +14,23 @@
|
||||||
namespace CSVRender
|
namespace CSVRender
|
||||||
{
|
{
|
||||||
PathgridMode::PathgridMode(WorldspaceWidget* worldspaceWidget, QWidget* parent)
|
PathgridMode::PathgridMode(WorldspaceWidget* worldspaceWidget, QWidget* parent)
|
||||||
: EditMode(worldspaceWidget, QIcon(":placeholder"), Mask_Pathgrid, "Pathgrid editing", parent)
|
: EditMode(worldspaceWidget, QIcon(":placeholder"), Mask_Pathgrid, getTooltip(), parent)
|
||||||
, mDragMode(DragMode_None)
|
, mDragMode(DragMode_None)
|
||||||
, mFromNode(0)
|
, mFromNode(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString PathgridMode::getTooltip()
|
||||||
|
{
|
||||||
|
return QString(
|
||||||
|
"Pathgrid editing"
|
||||||
|
"<ul><li>Primary edit: Add node to scene</li>"
|
||||||
|
"<li>Secondary edit: Connect selected nodes to node</li>"
|
||||||
|
"<li>Primary drag: Move selected nodes</li>"
|
||||||
|
"<li>Secondary drag: Connect one node to another</li>"
|
||||||
|
"<li>Other operations may be done with the context menu</li>"
|
||||||
|
"</ul><p>Note: Only a single cell's pathgrid may be edited at a time");
|
||||||
|
}
|
||||||
void PathgridMode::primaryEditPressed(const WorldspaceHitResult& hit)
|
void PathgridMode::primaryEditPressed(const WorldspaceHitResult& hit)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,8 @@ namespace CSVRender
|
||||||
std::string mLastId;
|
std::string mLastId;
|
||||||
DragMode mDragMode;
|
DragMode mDragMode;
|
||||||
unsigned short mFromNode;
|
unsigned short mFromNode;
|
||||||
|
QString getTooltip();
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue