Screens are nice now

This commit is contained in:
Victor Turgeon
2022-10-12 13:59:09 -04:00
parent f02268b101
commit 47130ef195
10 changed files with 143 additions and 5 deletions

View File

@@ -22,3 +22,9 @@ func set_text_to_screen(new_text):
var number_of_line = text.split('\n',false).size()
$ScreenBackGround.scale = Vector3(string_size.x * pixel_size + offset.x,
string_size.y * pixel_size * number_of_line + offset.y,1);
$Glass.scale = Vector3(string_size.x * pixel_size + offset.x,
string_size.y * pixel_size * number_of_line + offset.y,0.025);
$ScreenContour.scale = Vector3(string_size.x * pixel_size + offset.x + 0.25,
string_size.y * pixel_size * number_of_line + offset.y + 0.25,0.025);