mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
Hide overlay if off screen.
This commit is contained in:
parent
313aed078e
commit
961867e39f
2 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,7 @@ TextOverlay::~TextOverlay()
|
|||
|
||||
void TextOverlay::show(bool show)
|
||||
{
|
||||
if(show)
|
||||
if(show && mOnScreen)
|
||||
mContainer->show();
|
||||
else
|
||||
mContainer->hide();
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace CSVRender
|
|||
QRect mPos;
|
||||
|
||||
bool mEnabled;
|
||||
bool mOnScreen; // not used
|
||||
bool mOnScreen;
|
||||
int mInstance;
|
||||
|
||||
Ogre::FontPtr getFont();
|
||||
|
|
Loading…
Reference in a new issue