display level of opacity on test 11

This commit is contained in:
devfred78
2022-02-12 21:30:38 +01:00
parent 7626a79023
commit eeba208ea9

View File

@@ -133,6 +133,10 @@ def main():
text_surface = font.render(text_line,True,FONT_COLOUR)
screen_surface.blit(text_surface,text_line_coordinates)
text_line_coordinates = text_line_coordinates._replace(y=text_line_coordinates.y+line_space)
# Additional line: level of opacity
text_line = f"Level of opacity (0-255): {console.background_transparency}"
text_surface = font.render(text_line,True,FONT_COLOUR)
screen_surface.blit(text_surface,text_line_coordinates)
# Console display
screen_surface.blit(console.surface,CONSOLE_COORDINATES)