Example #1
0
void ControlSlider::sliderBegan(Vec2 location)
{
    this->setSelected(true);
    _thumbSprite->setVisible(false);
    _selectedThumbSprite->setVisible(true);
    setValue(valueForLocation(location));
}
Example #2
0
void CCControlSlider::sliderEnded(CCPoint location)
{
    if (m_thumbItem->isSelected())
    {
        m_thumbItem->unselected();
        setValue(valueForLocation(m_thumbItem->getPosition()));
    }
}
Example #3
0
void CCControlSlider::sliderEnded(CCPoint location)
{
    if (this->isSelected())
    {
        setValue(valueForLocation(m_thumbSprite->getPosition()));
    }
    this->getThumbSprite()->setColor(ccWHITE);
    this->setSelected(false);
}
Example #4
0
void ControlSlider::sliderEnded(Vec2 location)
{
    if (this->isSelected())
    {
        setValue(valueForLocation(_thumbSprite->getPosition()));
    }
    _thumbSprite->setVisible(true);
    _selectedThumbSprite->setVisible(false);
    this->setSelected(false);
}
Example #5
0
void CCControlSlider::sliderMoved(CCPoint location)
{
    setValue(valueForLocation(location));
}
Example #6
0
void CCControlSlider::sliderBegan(CCPoint location)
{
    this->setSelected(true);
    this->getThumbSprite()->setColor(ccGRAY);
    setValue(valueForLocation(location));
}
Example #7
0
void CCControlSlider::sliderBegan(CCPoint location)
{
    m_thumbItem->selected();
    setValue(valueForLocation(location));
}
Example #8
0
void ControlSlider::sliderMoved(Vec2 location)
{
    setValue(valueForLocation(location));
}