@@ -546,7 +546,7 @@ public override void Draw(float transitionAlpha, float backgroundTransitionAlpha
546
546
{
547
547
base . Draw ( transitionAlpha , backgroundTransitionAlpha ) ;
548
548
RefreshItemsRectangle ( ) ;
549
- DrawItemBackgrounds ( backgroundTransitionAlpha ) ;
549
+ DrawItemBackgrounds ( transitionAlpha , backgroundTransitionAlpha ) ;
550
550
DrawItems ( transitionAlpha ) ;
551
551
DrawItemTexts ( transitionAlpha ) ;
552
552
//DebugDraw();
@@ -700,7 +700,7 @@ private void DebugDraw()
700
700
}
701
701
}
702
702
703
- private void DrawItemBackgrounds ( float transitionAlpha )
703
+ private void DrawItemBackgrounds ( float transitionAlpha , float backgroundTransitionAlpha )
704
704
{
705
705
var normalTexture = m_styleDef . ItemTexture . Normal ;
706
706
var highlightTexture = m_styleDef . ItemTexture . Highlight ;
@@ -729,8 +729,10 @@ private void DrawItemBackgrounds(float transitionAlpha)
729
729
texture : highlight ? highlightTexture : normalTexture ,
730
730
normalizedCoord : drawPositionTopLeft ,
731
731
normalizedSize : ItemSize ,
732
- color : ApplyColorMaskModifiers ( ColorMask , enabled , transitionAlpha * blinkingTransparency ) ,
732
+ color : ApplyColorMaskModifiers ( ColorMask , enabled , backgroundTransitionAlpha * blinkingTransparency ) ,
733
733
drawAlign : MyGuiDrawAlignEnum . HORISONTAL_LEFT_AND_VERTICAL_TOP ) ;
734
+ if ( highlight && backgroundTransitionAlpha < 0.2 )
735
+ MyGuiManager . DrawBorders ( drawPositionTopLeft , ItemSize , ApplyColorMaskModifiers ( MyGuiConstants . THEMED_GUI_LINE_COLOR . ToVector4 ( ) , Enabled , transitionAlpha ) , 1 ) ;
734
736
++ idx ;
735
737
}
736
738
}
0 commit comments