Screens are nice now
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user