mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 02:53:51 +00:00
added 3D scene tooltips
This commit is contained in:
parent
8b01f1f6fb
commit
63ee37d914
2 changed files with 29 additions and 0 deletions
|
@ -18,6 +18,33 @@ CSVRender::CellArrow *CSVRender::CellArrowTag::getCellArrow() const
|
||||||
return mArrow;
|
return mArrow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString CSVRender::CellArrowTag::getToolTip (bool hideBasics) const
|
||||||
|
{
|
||||||
|
QString text ("Direction: ");
|
||||||
|
|
||||||
|
switch (mArrow->getDirection())
|
||||||
|
{
|
||||||
|
case CellArrow::Direction_North: text += "North"; break;
|
||||||
|
case CellArrow::Direction_West: text += "West"; break;
|
||||||
|
case CellArrow::Direction_South: text += "South"; break;
|
||||||
|
case CellArrow::Direction_East: text += "East"; break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!hideBasics)
|
||||||
|
{
|
||||||
|
text +=
|
||||||
|
"<p>"
|
||||||
|
"Modify which cells are shown"
|
||||||
|
"<ul><li>Primary-Edit: Add cell in given direction</li>"
|
||||||
|
"<li>Secondary-Edit: Add cell and remove old cell</li>"
|
||||||
|
"<li>Shift Primary-Edit: Add cells in given direction</li>"
|
||||||
|
"<li>Shift Secondary-Edit: Add cells and remove old cells</li>"
|
||||||
|
"</ul>";
|
||||||
|
}
|
||||||
|
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void CSVRender::CellArrow::adjustTransform()
|
void CSVRender::CellArrow::adjustTransform()
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,6 +26,8 @@ namespace CSVRender
|
||||||
CellArrowTag (CellArrow *arrow);
|
CellArrowTag (CellArrow *arrow);
|
||||||
|
|
||||||
CellArrow *getCellArrow() const;
|
CellArrow *getCellArrow() const;
|
||||||
|
|
||||||
|
virtual QString getToolTip (bool hideBasics) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue