mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 09:44:02 +00:00
hide the cursor layer when taking screenshot
This commit is contained in:
parent
fc76b2de12
commit
76b391e1fc
2 changed files with 6 additions and 7 deletions
|
@ -3432,12 +3432,13 @@ void DSQ::onMouseInput()
|
||||||
}
|
}
|
||||||
|
|
||||||
//prepare for screenshot or unprepare
|
//prepare for screenshot or unprepare
|
||||||
void DSQ::prepScreen(bool t)
|
void DSQ::prepScreen(bool screenshot)
|
||||||
{
|
{
|
||||||
if (t)
|
getRenderObjectLayer(LR_CURSOR)->visible = !screenshot;
|
||||||
{
|
|
||||||
cursor->offset = Vector(2000, 0);
|
|
||||||
|
|
||||||
|
// TODO: disable minimap layer too (needs MiniMapRender.cpp LR_MINIMAP visibility hack to be removed first)
|
||||||
|
if (screenshot)
|
||||||
|
{
|
||||||
if (game->miniMapRender)
|
if (game->miniMapRender)
|
||||||
game->miniMapRender->offset = Vector(2000,0);
|
game->miniMapRender->offset = Vector(2000,0);
|
||||||
if (fpsText)
|
if (fpsText)
|
||||||
|
@ -3445,8 +3446,6 @@ void DSQ::prepScreen(bool t)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
cursor->offset = Vector(0,0);
|
|
||||||
if (game->miniMapRender)
|
if (game->miniMapRender)
|
||||||
game->miniMapRender->offset = Vector(0,0);
|
game->miniMapRender->offset = Vector(0,0);
|
||||||
if (fpsText)
|
if (fpsText)
|
||||||
|
|
|
@ -315,7 +315,7 @@ enum Layers
|
||||||
LR_OVERLAY ,
|
LR_OVERLAY ,
|
||||||
LR_FILEMENU ,
|
LR_FILEMENU ,
|
||||||
LR_CONFIRM ,
|
LR_CONFIRM ,
|
||||||
LR_CURSOR ,
|
LR_CURSOR , /* hidden for screenshot */
|
||||||
LR_SUBTITLES ,
|
LR_SUBTITLES ,
|
||||||
LR_PROGRESS ,
|
LR_PROGRESS ,
|
||||||
LR_DEBUG_TEXT ,
|
LR_DEBUG_TEXT ,
|
||||||
|
|
Loading…
Reference in a new issue