Added custom font
This commit is contained in:
+2
-2
@@ -12,6 +12,8 @@ public partial class ConsoleUI : CanvasLayer
|
||||
consoleInput = GetNode<LineEdit>("ConsoleInput");
|
||||
|
||||
consoleInput.TextSubmitted += OnTextSubmitted;
|
||||
|
||||
consoleInput.GrabFocus();
|
||||
}
|
||||
|
||||
private void OnTextSubmitted(string submittedText)
|
||||
@@ -29,8 +31,6 @@ public partial class ConsoleUI : CanvasLayer
|
||||
}
|
||||
|
||||
consoleInput.Clear();
|
||||
|
||||
consoleInput.GrabFocus(); // Funktioniert nicht??
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
[gd_scene format=3 uid="uid://bqfwbrtelarht"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://coaje60nccntq" path="res://scenes/ConsoleUI.cs" id="1_gf67r"]
|
||||
[ext_resource type="FontFile" uid="uid://df205wg7tq2a1" path="res://assets/fonts/Orange Kid.otf" id="2_xil4p"]
|
||||
|
||||
[node name="Console" type="CanvasLayer" unique_id=29250469]
|
||||
script = ExtResource("1_gf67r")
|
||||
@@ -15,6 +16,8 @@ offset_left = 18.0
|
||||
offset_top = 14.0
|
||||
offset_right = 857.0
|
||||
offset_bottom = 560.0
|
||||
theme_override_fonts/font = ExtResource("2_xil4p")
|
||||
theme_override_font_sizes/font_size = 35
|
||||
|
||||
[node name="ConsoleInput" type="LineEdit" parent="." unique_id=1233554082]
|
||||
anchors_preset = 12
|
||||
@@ -24,3 +27,6 @@ anchor_bottom = 1.0
|
||||
offset_top = -70.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_fonts/font = ExtResource("2_xil4p")
|
||||
theme_override_font_sizes/font_size = 30
|
||||
keep_editing_on_text_submit = true
|
||||
|
||||
Reference in New Issue
Block a user