mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 10:21:09 +00:00
Hide overlay if off screen.
This commit is contained in:
parent
313aed078e
commit
961867e39f
@ -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…
x
Reference in New Issue
Block a user