void configureSliderVisualsSlider(entity me, float sz, float theAlign, float theTextSpace, string gfx) { configureLabelLabel(me, NULL, sz, theAlign); me.textSpace = theTextSpace; me.keepspaceLeft = if(theTextSpace == 0) 0 else 1 - theTextSpace; me.src = gfx; }
void configureButtonButton(entity me, string txt, float sz, string gfx) { configureLabelLabel(me, txt, sz, me.srcMulti ? 0.5 : 0); me.src = gfx; }
void configureInputBoxInputBox(entity me, string theText, float theCursorPos, float theFontSize, string gfx) { configureLabelLabel(me, theText, theFontSize, 0.0); me.src = gfx; me.cursorPos = theCursorPos; }