From ec97bd1ea6c21211385f16c2746080f70dd275dd Mon Sep 17 00:00:00 2001 From: Nordup Date: Wed, 20 Nov 2024 03:22:30 +0400 Subject: [PATCH] sharper icons and text, prompt fixes, project settings changes --- app/assets/fonts/Inter-Bold.otf.import | 2 +- app/assets/fonts/Inter-BoldItalic.otf.import | 2 +- app/assets/fonts/Inter-Italic.otf.import | 2 +- app/assets/fonts/Inter-Regular.otf.import | 2 +- app/assets/fonts/Monospace.ttf.import | 2 +- app/assets/fonts/MonospaceBold.ttf.import | 2 +- app/assets/textures/clock.svg | 30 +++++++++++++++ app/assets/textures/clock.svg.import | 39 ++++++++++++++++++++ app/project.godot | 20 ++++++---- app/scenes/components/prompt.tscn | 13 +++---- app/scenes/components/search.tscn | 1 + 11 files changed, 95 insertions(+), 20 deletions(-) create mode 100644 app/assets/textures/clock.svg create mode 100644 app/assets/textures/clock.svg.import diff --git a/app/assets/fonts/Inter-Bold.otf.import b/app/assets/fonts/Inter-Bold.otf.import index 2acb0dd..09962a3 100644 --- a/app/assets/fonts/Inter-Bold.otf.import +++ b/app/assets/fonts/Inter-Bold.otf.import @@ -16,7 +16,7 @@ Rendering=null antialiasing=1 generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=true +multichannel_signed_distance_field=false msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/Inter-BoldItalic.otf.import b/app/assets/fonts/Inter-BoldItalic.otf.import index d9a4f0e..35f2acc 100644 --- a/app/assets/fonts/Inter-BoldItalic.otf.import +++ b/app/assets/fonts/Inter-BoldItalic.otf.import @@ -16,7 +16,7 @@ Rendering=null antialiasing=1 generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=true +multichannel_signed_distance_field=false msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/Inter-Italic.otf.import b/app/assets/fonts/Inter-Italic.otf.import index d890a52..b53ad19 100644 --- a/app/assets/fonts/Inter-Italic.otf.import +++ b/app/assets/fonts/Inter-Italic.otf.import @@ -16,7 +16,7 @@ Rendering=null antialiasing=1 generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=true +multichannel_signed_distance_field=false msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/Inter-Regular.otf.import b/app/assets/fonts/Inter-Regular.otf.import index 79ca033..8753a0a 100644 --- a/app/assets/fonts/Inter-Regular.otf.import +++ b/app/assets/fonts/Inter-Regular.otf.import @@ -16,7 +16,7 @@ Rendering=null antialiasing=1 generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=true +multichannel_signed_distance_field=false msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/Monospace.ttf.import b/app/assets/fonts/Monospace.ttf.import index 5308139..bbace88 100644 --- a/app/assets/fonts/Monospace.ttf.import +++ b/app/assets/fonts/Monospace.ttf.import @@ -16,7 +16,7 @@ Rendering=null antialiasing=1 generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=true +multichannel_signed_distance_field=false msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/fonts/MonospaceBold.ttf.import b/app/assets/fonts/MonospaceBold.ttf.import index 969b1f0..89cb89f 100644 --- a/app/assets/fonts/MonospaceBold.ttf.import +++ b/app/assets/fonts/MonospaceBold.ttf.import @@ -16,7 +16,7 @@ Rendering=null antialiasing=1 generate_mipmaps=true disable_embedded_bitmaps=true -multichannel_signed_distance_field=true +multichannel_signed_distance_field=false msdf_pixel_range=8 msdf_size=48 allow_system_fallback=true diff --git a/app/assets/textures/clock.svg b/app/assets/textures/clock.svg new file mode 100644 index 0000000..b543187 --- /dev/null +++ b/app/assets/textures/clock.svg @@ -0,0 +1,30 @@ + + + + + + + + + + diff --git a/app/assets/textures/clock.svg.import b/app/assets/textures/clock.svg.import new file mode 100644 index 0000000..c5efcd5 --- /dev/null +++ b/app/assets/textures/clock.svg.import @@ -0,0 +1,39 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://d05w6jtfy01w2" +path.s3tc="res://.godot/imported/clock.svg-f120a2f8f26bcc69c0d6661da365ab74.s3tc.ctex" +path.etc2="res://.godot/imported/clock.svg-f120a2f8f26bcc69c0d6661da365ab74.etc2.ctex" +metadata={ +"imported_formats": ["s3tc_bptc", "etc2_astc"], +"vram_texture": true +} + +[deps] + +source_file="res://assets/textures/clock.svg" +dest_files=["res://.godot/imported/clock.svg-f120a2f8f26bcc69c0d6661da365ab74.s3tc.ctex", "res://.godot/imported/clock.svg-f120a2f8f26bcc69c0d6661da365ab74.etc2.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 +svg/scale=2.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/app/project.godot b/app/project.godot index 2c7dd3c..5cc1459 100644 --- a/app/project.godot +++ b/app/project.godot @@ -14,8 +14,8 @@ config/name="TheGates" config/description="Building new Internet" config/tags=PackedStringArray("thegates") run/main_scene="res://scenes/app.tscn" +run/enable_alt_space_menu=true config/features=PackedStringArray("4.3") -run/max_fps=144 boot_splash/bg_color=Color(0, 0, 0, 0) boot_splash/show_image=false config/icon="res://app_icon/icon.svg" @@ -35,6 +35,7 @@ Backend="*res://scripts/api/backend.gd" [debug] +file_logging/enable_file_logging=true gdscript/warnings/integer_division=0 [display] @@ -45,10 +46,12 @@ window/size/mode=2 window/size/borderless=true window/size/transparent=true window/energy_saving/keep_screen_on=false -window/stretch/mode="canvas_items" window/stretch/aspect="expand" window/per_pixel_transparency/allowed=true -window/vsync/vsync_mode=3 + +[editor] + +naming/script_name_casing=2 [gui] @@ -67,13 +70,16 @@ open_debug={ ] } -[physics] +[input_devices] -2d/physics_engine="GodotPhysics2D" -3d/physics_engine="GodotPhysics3D" +buffering/agile_event_flushing=true + +[network] + +limits/tcp/connect_timeout_seconds=10 [rendering] textures/canvas_textures/default_texture_filter=2 textures/vram_compression/import_etc2_astc=true -textures/default_filters/anisotropic_filtering_level=1 +textures/default_filters/use_nearest_mipmap_filter=true diff --git a/app/scenes/components/prompt.tscn b/app/scenes/components/prompt.tscn index bcca784..36ad275 100644 --- a/app/scenes/components/prompt.tscn +++ b/app/scenes/components/prompt.tscn @@ -3,7 +3,7 @@ [ext_resource type="Script" path="res://scripts/ui/search/prompt.gd" id="1_7xv44"] [ext_resource type="Resource" uid="uid://b1xvdym0qh6td" path="res://resources/gate_events.res" id="2_33m26"] [ext_resource type="LabelSettings" uid="uid://bo2334w4lf3ug" path="res://assets/styles/text.tres" id="3_rbghg"] -[ext_resource type="Texture2D" uid="uid://byrcelmfy6r3l" path="res://assets/textures/search.svg" id="4_5kbr3"] +[ext_resource type="Texture2D" uid="uid://d05w6jtfy01w2" path="res://assets/textures/clock.svg" id="4_lekwb"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_srt8r"] bg_color = Color(0.172549, 0.184314, 0.239216, 1) @@ -15,7 +15,8 @@ corner_radius_bottom_left = 15 [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_l81vq"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_6fg0o"] -content_margin_left = 40.0 +content_margin_left = 32.0 +content_margin_bottom = 2.0 [node name="prompt" type="Button" node_paths=PackedStringArray("prompt_text")] custom_minimum_size = Vector2(0, 32) @@ -23,8 +24,6 @@ anchors_preset = 14 anchor_top = 0.5 anchor_right = 1.0 anchor_bottom = 0.5 -offset_top = -20.0 -offset_bottom = 12.0 grow_horizontal = 2 grow_vertical = 2 theme_override_styles/hover = SubResource("StyleBoxFlat_srt8r") @@ -53,9 +52,9 @@ layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 -offset_left = 12.0 +offset_left = 10.0 offset_top = -8.0 -offset_right = 28.0 +offset_right = 26.0 offset_bottom = 8.0 grow_vertical = 2 mouse_filter = 1 @@ -68,7 +67,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -texture = ExtResource("4_5kbr3") +texture = ExtResource("4_lekwb") expand_mode = 1 [connection signal="pressed" from="." to="." method="_on_button_pressed"] diff --git a/app/scenes/components/search.tscn b/app/scenes/components/search.tscn index 377e51e..d6ed496 100644 --- a/app/scenes/components/search.tscn +++ b/app/scenes/components/search.tscn @@ -339,6 +339,7 @@ search = NodePath("..") prompt_results = NodePath("Panel/VBoxContainer") [node name="Panel" type="Panel" parent="Prompt" node_paths=PackedStringArray("search_le")] +visible = false top_level = true layout_mode = 1 anchors_preset = 5