mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
added 3D scene tooltips
This commit is contained in:
parent
8b01f1f6fb
commit
63ee37d914
@ -18,6 +18,33 @@ CSVRender::CellArrow *CSVRender::CellArrowTag::getCellArrow() const
|
||||
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()
|
||||
{
|
||||
|
@ -26,6 +26,8 @@ namespace CSVRender
|
||||
CellArrowTag (CellArrow *arrow);
|
||||
|
||||
CellArrow *getCellArrow() const;
|
||||
|
||||
virtual QString getToolTip (bool hideBasics) const;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user