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