예제 #1
0
	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);
		}
	}
예제 #2
0
	void GUIFloatField::inputConfirmed()
	{
		setText(applyRangeAndStep(mValue));

		onConfirm();
	}
예제 #3
0
	float GUIFloatField::getValue() const
	{
		return applyRangeAndStep(mValue);
	}
예제 #4
0
	INT32 GUIIntField::getValue() const
	{
		return applyRangeAndStep(mValue);
	}