X Tutup
Skip to content

Commit fc004f8

Browse files
committed
change text box
1 parent 32bd19a commit fc004f8

File tree

3 files changed

+18
-32
lines changed

3 files changed

+18
-32
lines changed

Core/HUD.tscn

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ __meta__ = {
3131
[node name="ChildContainer" type="Node" parent="."]
3232

3333
[node name="LevelSelectButton" type="Button" parent="."]
34-
margin_left = 886.0
35-
margin_top = 555.0
36-
margin_right = 1005.0
37-
margin_bottom = 589.0
34+
margin_left = 893.5
35+
margin_top = 559.0
36+
margin_right = 1012.5
37+
margin_bottom = 593.0
3838
mouse_default_cursor_shape = 2
3939
custom_fonts/font = ExtResource( 3 )
4040
text = "Level Select"

Modules/Choice.tscn

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
[gd_scene load_steps=6 format=2]
1+
[gd_scene load_steps=4 format=2]
22

33
[ext_resource path="res://Modules/Choice.gd" type="Script" id=1]
4-
[ext_resource path="res://assets/noto-sans/NotoSans-Regular.ttf" type="DynamicFontData" id=2]
4+
[ext_resource path="res://assets/UI interfaces/text box.png" type="Texture" id=2]
55
[ext_resource path="res://Resources/font.tres" type="DynamicFont" id=3]
66

7-
[sub_resource type="StyleBoxFlat" id=1]
8-
content_margin_left = 20.0
9-
content_margin_right = 20.0
10-
content_margin_top = 20.0
11-
content_margin_bottom = 20.0
12-
bg_color = Color( 0.133333, 0.12549, 0.12549, 1 )
13-
14-
[sub_resource type="DynamicFont" id=2]
15-
size = 20
16-
font_data = ExtResource( 2 )
17-
187
[node name="Choice" type="Node2D"]
198
script = ExtResource( 1 )
209

@@ -25,19 +14,10 @@ __meta__ = {
2514
"_edit_use_anchors_": false
2615
}
2716

28-
[node name="LabelBG" type="Label" parent="BaseMessage"]
29-
margin_left = 159.0
30-
margin_top = 390.0
31-
margin_right = 890.0
32-
margin_bottom = 545.0
33-
custom_styles/normal = SubResource( 1 )
34-
custom_fonts/font = SubResource( 2 )
35-
custom_colors/font_color = Color( 1, 1, 1, 1 )
36-
autowrap = true
37-
clip_text = true
38-
__meta__ = {
39-
"_edit_use_anchors_": false
40-
}
17+
[node name="text box" type="Sprite" parent="BaseMessage"]
18+
position = Vector2( 524.788, 462.714 )
19+
scale = Vector2( 4.05804, 4.05804 )
20+
texture = ExtResource( 2 )
4121

4222
[node name="Label0" type="Label" parent="BaseMessage"]
4323
margin_left = 178.5

Modules/Messages/SimpleMessage.tscn

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
[gd_scene load_steps=5 format=2]
1+
[gd_scene load_steps=6 format=2]
22

33
[ext_resource path="res://Modules/Messages/SimpleMessage.gd" type="Script" id=1]
44
[ext_resource path="res://assets/noto-sans/NotoSans-Regular.ttf" type="DynamicFontData" id=2]
5+
[ext_resource path="res://assets/UI interfaces/text box.png" type="Texture" id=3]
56

67
[sub_resource type="StyleBoxFlat" id=1]
78
content_margin_left = 20.0
89
content_margin_right = 20.0
910
content_margin_top = 20.0
1011
content_margin_bottom = 20.0
11-
bg_color = Color( 0.133333, 0.12549, 0.12549, 1 )
12+
bg_color = Color( 0.133333, 0.12549, 0.12549, 0 )
1213

1314
[sub_resource type="DynamicFont" id=2]
1415
size = 20
@@ -25,6 +26,11 @@ __meta__ = {
2526
"_edit_use_anchors_": false
2627
}
2728

29+
[node name="text box" type="Sprite" parent="BaseMessage"]
30+
position = Vector2( 524.788, 462.714 )
31+
scale = Vector2( 4.05804, 4.05804 )
32+
texture = ExtResource( 3 )
33+
2834
[node name="Label" type="Label" parent="BaseMessage"]
2935
margin_left = 159.0
3036
margin_top = 390.0

0 commit comments

Comments
 (0)
X Tutup