[SOLVED] Spinner Increment/Decrement
Posted: Tue Nov 03, 2009 07:18
CEGUI 0.7.1 SVN Branch
Spinner Down Arrow: 31.00 -> 30.99
Spinner Down Arrow: 30.99 -> 30.98
Spinner Down Arrow: 30.98 -> 30.9700000001
Spinner Down Arrow: 30.9700000001 -> 30.9600000001
Spinner Down Arrow: 30.9600000001 -> 30.9500000002
Why?
Code: Select all
mSpinnerUnits = (CEGUI::Spinner *) CEGUI::WindowManager::getSingleton().createWindow( CEGUILOOK"/Spinner", mStr );
mSpinnerUnits->setMinimumValue( 1.0f );
mSpinnerUnits->setStepSize( 0.01f );
mSpinnerUnits->setTextInputMode( CEGUI::Spinner::TextInputMode::FloatingPoint );
mSpinnerUnits->setMaximumValue( 31.0f );
mSpinnerUnits->setCurrentValue( 31.0f );
Spinner Down Arrow: 31.00 -> 30.99
Spinner Down Arrow: 30.99 -> 30.98
Spinner Down Arrow: 30.98 -> 30.9700000001
Spinner Down Arrow: 30.9700000001 -> 30.9600000001
Spinner Down Arrow: 30.9600000001 -> 30.9500000002
Why?