|
|
@ -99,6 +99,7 @@ namespace NLGUI
|
|
|
|
_TextSelection= false;
|
|
|
|
_TextSelection= false;
|
|
|
|
_TextSelectionStart= 0;
|
|
|
|
_TextSelectionStart= 0;
|
|
|
|
_TextSelectionEnd= std::numeric_limits<uint>::max();
|
|
|
|
_TextSelectionEnd= std::numeric_limits<uint>::max();
|
|
|
|
|
|
|
|
m_DisableShadowInSelection = true;
|
|
|
|
|
|
|
|
|
|
|
|
_InvalidTextContext= true;
|
|
|
|
_InvalidTextContext= true;
|
|
|
|
_FirstLineX = 0;
|
|
|
|
_FirstLineX = 0;
|
|
|
@ -1188,9 +1189,10 @@ namespace NLGUI
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_Lines.empty()) return;
|
|
|
|
if (_Lines.empty()) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool drawShadow = !(_TextSelection && m_DisableShadowInSelection);
|
|
|
|
TextContext->setHotSpot (UTextContext::BottomLeft);
|
|
|
|
TextContext->setHotSpot (UTextContext::BottomLeft);
|
|
|
|
TextContext->setShaded (_Shadow);
|
|
|
|
TextContext->setShaded (_Shadow && drawShadow);
|
|
|
|
TextContext->setShadeOutline (_ShadowOutline);
|
|
|
|
TextContext->setShadeOutline (_ShadowOutline && drawShadow);
|
|
|
|
TextContext->setShadeColor (shcol);
|
|
|
|
TextContext->setShadeColor (shcol);
|
|
|
|
TextContext->setShadeExtent (_ShadowX*oow, _ShadowY*ooh);
|
|
|
|
TextContext->setShadeExtent (_ShadowX*oow, _ShadowY*ooh);
|
|
|
|
TextContext->setFontSize (_FontSize*_Scale);
|
|
|
|
TextContext->setFontSize (_FontSize*_Scale);
|
|
|
@ -1320,9 +1322,10 @@ namespace NLGUI
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nlassert(_Index != 0xFFFFFFFF);
|
|
|
|
nlassert(_Index != 0xFFFFFFFF);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool drawShadow = !(_TextSelection && m_DisableShadowInSelection);
|
|
|
|
TextContext->setHotSpot (UTextContext::BottomLeft);
|
|
|
|
TextContext->setHotSpot (UTextContext::BottomLeft);
|
|
|
|
TextContext->setShaded (_Shadow);
|
|
|
|
TextContext->setShaded (_Shadow && drawShadow);
|
|
|
|
TextContext->setShadeOutline (_ShadowOutline);
|
|
|
|
TextContext->setShadeOutline (_ShadowOutline && drawShadow);
|
|
|
|
TextContext->setShadeColor (shcol);
|
|
|
|
TextContext->setShadeColor (shcol);
|
|
|
|
TextContext->setShadeExtent (_ShadowX*oow, _ShadowY*ooh);
|
|
|
|
TextContext->setShadeExtent (_ShadowX*oow, _ShadowY*ooh);
|
|
|
|
TextContext->setFontSize (_FontSize*_Scale);
|
|
|
|
TextContext->setFontSize (_FontSize*_Scale);
|
|
|
|