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

@@ -37,7 +37,7 @@ void UIButton::onInputEvent(const InputEvent& event)
g_dispatcher.addTask(boost::bind(&Scriptable::callLuaTableField, shared_from_this(), "onClick"));
}
} else if(event.type == EV_MOUSE_MOVE && m_state != ButtonDown) {
if(getRect().contains(event.mousePos) && UIContainer::getRoot()->recursiveGetChildByPos(event.mousePos) == asUIElement())
if(isMouseOver())
m_state = ButtonMouseOver;
else
m_state = ButtonUp;