option menu: draw non-active section header slightly transparent
This commit is contained in:
parent
1a9e6ab0da
commit
4bf820268e
|
@ -401,9 +401,14 @@ public class OptionsOverlay extends OverlayOpsuState {
|
|||
}
|
||||
int lineStartY = (int) (y + Fonts.LARGE.getLineHeight() * 0.6f);
|
||||
if (section.options == null) {
|
||||
float previousAlpha = COL_CYAN.a;
|
||||
if (section != activeSection) {
|
||||
COL_CYAN.a *= 0.2f;
|
||||
}
|
||||
FontUtil.drawRightAligned(Fonts.XLARGE, width, -paddingRight,
|
||||
(int) (y + Fonts.XLARGE.getLineHeight() * 0.3f), section.name.toUpperCase(),
|
||||
COL_CYAN);
|
||||
COL_CYAN.a = previousAlpha;
|
||||
} else {
|
||||
Fonts.MEDIUMBOLD.drawString(paddingTextLeft, lineStartY, section.name, COL_WHITE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user