From eeba208ea96c511e2f6c62784d3d5dc5cdccfd35 Mon Sep 17 00:00:00 2001 From: devfred78 <97401939+devfred78@users.noreply.github.com> Date: Sat, 12 Feb 2022 21:30:38 +0100 Subject: [PATCH] display level of opacity on test 11 --- tests/test11_console_Transparency.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test11_console_Transparency.py b/tests/test11_console_Transparency.py index ee5b755..2e91ec2 100644 --- a/tests/test11_console_Transparency.py +++ b/tests/test11_console_Transparency.py @@ -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)