diff --git a/assets/fonts/Orange Kid.otf b/assets/fonts/Orange Kid.otf new file mode 100644 index 0000000..dddb357 Binary files /dev/null and b/assets/fonts/Orange Kid.otf differ diff --git a/assets/fonts/Orange Kid.otf.import b/assets/fonts/Orange Kid.otf.import new file mode 100644 index 0000000..8a1244c --- /dev/null +++ b/assets/fonts/Orange Kid.otf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://df205wg7tq2a1" +path="res://.godot/imported/Orange Kid.otf-db18024fbc58d08f57ece3697b788ecc.fontdata" + +[deps] + +source_file="res://assets/fonts/Orange Kid.otf" +dest_files=["res://.godot/imported/Orange Kid.otf-db18024fbc58d08f57ece3697b788ecc.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +modulate_color_glyphs=false +hinting=1 +subpixel_positioning=4 +keep_rounding_remainders=true +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/scenes/ConsoleUI.cs b/scenes/ConsoleUI.cs index 7f0c210..3dd1af4 100644 --- a/scenes/ConsoleUI.cs +++ b/scenes/ConsoleUI.cs @@ -12,6 +12,8 @@ public partial class ConsoleUI : CanvasLayer consoleInput = GetNode("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?? } } } \ No newline at end of file diff --git a/scenes/console.tscn b/scenes/console.tscn index 6006c08..c6f0889 100644 --- a/scenes/console.tscn +++ b/scenes/console.tscn @@ -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