| 106 | } |
| 107 | |
| 108 | void GuiTextEditSliderCtrl::setValue() |
| 109 | { |
| 110 | char buf[20]; |
| 111 | // For some reason this sprintf is failing to convert |
| 112 | // a floating point number to anything with %d, so cast it. |
| 113 | if( dStricmp( mFormat, "%d" ) == 0 ) |
| 114 | dSprintf(buf,sizeof(buf),mFormat, (S32)mValue); |
| 115 | else |
| 116 | dSprintf(buf,sizeof(buf),mFormat, mValue); |
| 117 | Parent::setText(buf); |
| 118 | } |
| 119 | |
| 120 | void GuiTextEditSliderCtrl::onMouseDown(const GuiEvent &event) |
| 121 | { |