mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-27 15:25:40 +00:00
removed tabs
This commit is contained in:
parent
2a1f81d3aa
commit
304c33e525
1 changed files with 17 additions and 17 deletions
|
|
@ -1252,27 +1252,27 @@ void GuiTextEditCtrl::onLoseFirstResponder()
|
||||||
Parent::onLoseFirstResponder();
|
Parent::onLoseFirstResponder();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiTextEditCtrl::onRender(Point2I offset, const RectI &updateRect)
|
void GuiTextEditCtrl::onRender( Point2I offset, const RectI &updateRect )
|
||||||
{
|
{
|
||||||
RectI ctrlRect( offset, getExtent() );
|
RectI ctrlRect( offset, getExtent() );
|
||||||
|
|
||||||
//if opaque, fill the update rect with the fill color
|
//if opaque, fill the update rect with the fill color
|
||||||
if ( mProfile->mOpaque )
|
if ( mProfile->mOpaque )
|
||||||
{
|
{
|
||||||
if (!mTextValid)
|
if ( !mTextValid )
|
||||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorERR);
|
GFX->getDrawUtil()->drawRectFill( ctrlRect, mProfile->mFillColorERR );
|
||||||
else if (isFirstResponder())
|
else if ( isFirstResponder() )
|
||||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorHL);
|
GFX->getDrawUtil()->drawRectFill( ctrlRect, mProfile->mFillColorHL );
|
||||||
else
|
else
|
||||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColor);
|
GFX->getDrawUtil()->drawRectFill( ctrlRect, mProfile->mFillColor );
|
||||||
}
|
}
|
||||||
|
|
||||||
//if there's a border, draw the border
|
//if there's a border, draw the border
|
||||||
if (mProfile->mBorder)
|
if ( mProfile->mBorder )
|
||||||
{
|
{
|
||||||
renderBorder(ctrlRect, mProfile);
|
renderBorder( ctrlRect, mProfile );
|
||||||
if (!mTextValid)
|
if ( !mTextValid )
|
||||||
GFX->getDrawUtil()->drawRectFill(ctrlRect, mProfile->mFillColorERR);
|
GFX->getDrawUtil()->drawRectFill( ctrlRect, mProfile->mFillColorERR );
|
||||||
}
|
}
|
||||||
|
|
||||||
drawText( ctrlRect, isFirstResponder() );
|
drawText( ctrlRect, isFirstResponder() );
|
||||||
|
|
@ -1496,25 +1496,25 @@ void GuiTextEditCtrl::drawText( const RectI &drawRect, bool isFocused )
|
||||||
|
|
||||||
bool GuiTextEditCtrl::hasText()
|
bool GuiTextEditCtrl::hasText()
|
||||||
{
|
{
|
||||||
return (mTextBuffer.length());
|
return ( mTextBuffer.length() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiTextEditCtrl::invalidText(bool playSound)
|
void GuiTextEditCtrl::invalidText(bool playSound)
|
||||||
{
|
{
|
||||||
mTextValid = false;
|
mTextValid = false;
|
||||||
|
|
||||||
if (playSound)
|
if ( playSound )
|
||||||
playDeniedSound();
|
playDeniedSound();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiTextEditCtrl::validText()
|
void GuiTextEditCtrl::validText()
|
||||||
{
|
{
|
||||||
mTextValid = true;
|
mTextValid = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GuiTextEditCtrl::isValidText()
|
bool GuiTextEditCtrl::isValidText()
|
||||||
{
|
{
|
||||||
return mTextValid;
|
return mTextValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GuiTextEditCtrl::playDeniedSound()
|
void GuiTextEditCtrl::playDeniedSound()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue