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);
|
||||
|
@@ -1,15 +1,26 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/InfoScreen.gd" type="Script" id=1]
|
||||
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://Materials/Scanlines.tres" type="Material" id=3]
|
||||
[ext_resource path="res://Materials/Glasse_Mat.tres" type="Material" id=4]
|
||||
|
||||
[sub_resource type="DynamicFont" id=3]
|
||||
size = 100
|
||||
size = 50
|
||||
outline_color = Color( 0, 0, 0, 1 )
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[sub_resource type="QuadMesh" id=2]
|
||||
|
||||
[sub_resource type="CubeMesh" id=5]
|
||||
material = ExtResource( 4 )
|
||||
size = Vector3( 1, 1, 2 )
|
||||
|
||||
[sub_resource type="QuadMesh" id=6]
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=7]
|
||||
albedo_color = Color( 0, 0, 0, 1 )
|
||||
|
||||
[node name="InfoScreen" type="Spatial"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
@@ -22,5 +33,15 @@ text = " "
|
||||
font = SubResource( 3 )
|
||||
|
||||
[node name="ScreenBackGround" type="MeshInstance" parent="."]
|
||||
transform = Transform( 1.3, 0, 0, 0, 1.66, 0, 0, 0, 1, 0, 0, 0 )
|
||||
transform = Transform( 1.15, 0, 0, 0, 1.09, 0, 0, 0, 1, 0, 0, 0 )
|
||||
mesh = SubResource( 2 )
|
||||
material/0 = ExtResource( 3 )
|
||||
|
||||
[node name="Glass" type="MeshInstance" parent="."]
|
||||
transform = Transform( 1.15, 0, 0, 0, 1.09, 0, 0, 0, 0.025, 0, 0, 0.0823192 )
|
||||
mesh = SubResource( 5 )
|
||||
|
||||
[node name="ScreenContour" type="MeshInstance" parent="."]
|
||||
transform = Transform( 1.4, 0, 0, 0, 1.34, 0, 0, 0, 0.025, 0, 0, -0.0241812 )
|
||||
mesh = SubResource( 6 )
|
||||
material/0 = SubResource( 7 )
|
||||
|
Reference in New Issue
Block a user