animated texture

This commit is contained in:
Eduardo Bart
2011-05-12 20:24:57 -03:00
parent c6753747fb
commit 42eae9afd8
32 changed files with 289 additions and 146 deletions

View File

@@ -213,6 +213,13 @@ void UIContainer::onInputEvent(const InputEvent& event)
}
} else {
shouldFire = true;
if(event.type == EV_MOUSE_MOVE) {
if(child->getRect().contains(event.mousePos) && UIContainer::getRoot()->recursiveGetChildByPos(event.mousePos) == child)
child->setMouseOver(true);
else
child->setMouseOver(false);
}
}
}
}