MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setValue

Method setValue

Engine/source/gui/controls/guiTextEditSliderCtrl.cpp:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void 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
120void GuiTextEditSliderCtrl::onMouseDown(const GuiEvent &event)
121{

Callers

nothing calls this directly

Calls 3

dStricmpFunction · 0.85
dSprintfFunction · 0.85
setTextFunction · 0.70

Tested by

no test coverage detected