Added custom font

This commit is contained in:
Vico 2026-04-04 09:56:52 +02:00
parent ff1de4ae95
commit 9781ab9717
4 changed files with 44 additions and 2 deletions

BIN
assets/fonts/Orange Kid.otf Normal file

Binary file not shown.

View File

@ -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={}

View File

@ -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??
}
}
}

View File

@ -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