dran and drop for UIWidget

This commit is contained in:
Eduardo Bart
2012-01-19 23:16:10 -02:00
parent 733039e50e
commit 759b7f43b3
9 changed files with 69 additions and 6 deletions

View File

@@ -50,12 +50,10 @@ end
function UIComboBox:onMouseWheel(mousePos, direction)
if direction == MouseWheelUp and self.m_currentIndex > 1 then
self:setCurrentIndex(self.m_currentIndex - 1)
return true
elseif direction == MouseWheelDown and self.m_currentIndex < #self.m_options then
self:setCurrentIndex(self.m_currentIndex + 1)
return true
end
return false
return true
end
function UIComboBox:onStyleApply(styleName, styleNode)