Changed the hud to ignore mouse clicks when not visible.

This commit is contained in:
David G Yu 2013-12-16 12:08:56 -08:00
parent 8990d5712f
commit 35a4d45cf2

View File

@ -126,6 +126,10 @@ Hud::KeyDown(int key)
bool
Hud::MouseClick(int x, int y)
{
if (!IsVisible()) {
return false;
}
for (std::vector<RadioButton>::iterator it = _radioButtons.begin();
it != _radioButtons.end(); ++it) {
if (hitTest(*it, x, y)) {