void ControlSlider::sliderBegan(Vec2 location) { this->setSelected(true); _thumbSprite->setVisible(false); _selectedThumbSprite->setVisible(true); setValue(valueForLocation(location)); }
void CCControlSlider::sliderEnded(CCPoint location) { if (m_thumbItem->isSelected()) { m_thumbItem->unselected(); setValue(valueForLocation(m_thumbItem->getPosition())); } }
void CCControlSlider::sliderEnded(CCPoint location) { if (this->isSelected()) { setValue(valueForLocation(m_thumbSprite->getPosition())); } this->getThumbSprite()->setColor(ccWHITE); this->setSelected(false); }
void ControlSlider::sliderEnded(Vec2 location) { if (this->isSelected()) { setValue(valueForLocation(_thumbSprite->getPosition())); } _thumbSprite->setVisible(true); _selectedThumbSprite->setVisible(false); this->setSelected(false); }
void CCControlSlider::sliderMoved(CCPoint location) { setValue(valueForLocation(location)); }
void CCControlSlider::sliderBegan(CCPoint location) { this->setSelected(true); this->getThumbSprite()->setColor(ccGRAY); setValue(valueForLocation(location)); }
void CCControlSlider::sliderBegan(CCPoint location) { m_thumbItem->selected(); setValue(valueForLocation(location)); }
void ControlSlider::sliderMoved(Vec2 location) { setValue(valueForLocation(location)); }