public override void OnCursorMoved( Vector2 cursorPos )
{
if ( IsCursorOver( this.square, cursorPos, 5 ) )
{
if ( !this.IsCursorOver )
{
this.IsCursorOver = true;
this.square.MaterialName = "SdkTrays/MiniTextBox/Over";
this.square.BorderMaterialName = "SdkTrays/MiniTextBox/Over";
}
}
else
{
if ( this.IsCursorOver )
{
this.IsCursorOver = false;
this.square.MaterialName = "SdkTrays/MiniTextBox";
this.square.BorderMaterialName = "SdkTrays/MiniTextBox";
}
}
base.OnCursorMoved( cursorPos );
}