void GUIFloatField::focusChanged(bool focus) { if (focus) { UndoRedo::instance().pushGroup("InputBox"); mHasInputFocus = true; onFocusChanged(true); } else { UndoRedo::instance().popGroup("InputBox"); setText(applyRangeAndStep(mValue)); mHasInputFocus = false; onFocusChanged(false); } }
void GUIFloatField::inputConfirmed() { setText(applyRangeAndStep(mValue)); onConfirm(); }
float GUIFloatField::getValue() const { return applyRangeAndStep(mValue); }
INT32 GUIIntField::getValue() const { return applyRangeAndStep(mValue); }