Add graphics option to toggle mouse cursor

Adds an option to show or hide the system mouse cursor over the game window.
This commit is contained in:
Allison Fleischer
2020-01-28 23:17:13 -08:00
committed by Ethan Lee
parent 5afba66d2e
commit 03a4c3362a
5 changed files with 47 additions and 2 deletions

View File

@@ -230,6 +230,18 @@ void titlerender(Graphics& dwgfx, mapclass& map, Game& game, entityclass& obj, U
dwgfx.Print( -1, 75, "television set. Do not attempt to", tr, tg, tb, true);
dwgfx.Print( -1, 85, "adjust the picture.", tr, tg, tb, true);
}
else if (game.currentmenuoption == 4)
{
dwgfx.bigprint(-1, 30, "Toggle Mouse Cursor", tr, tg, tb, true);
dwgfx.Print(-1, 65, "Show/hide the system mouse cursor.", tr, tg, tb, true);
if (dwgfx.showmousecursor) {
dwgfx.Print(-1, 85, "Current mode: SHOW", tr, tg, tb, true);
}
else {
dwgfx.Print(-1, 85, "Current mode: HIDE", tr, tg, tb, true);
}
}
}
else if (game.currentmenuname == "credits")
{