From 937f79b6bce4e3905dcc7374e94981eec4466ed8 Mon Sep 17 00:00:00 2001 From: sasha80 Date: Mon, 23 Jan 2023 15:29:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0.=20=D0=93=D0=BB=D0=BE=D0=B1=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D1=8B=D0=B9=20=D1=88=D1=80=D0=B8=D1=84=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Control.tscn | 21 +++++++++------------ data/main-font.tres | 11 +++++++++++ project.godot | 1 + 3 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 data/main-font.tres diff --git a/Control.tscn b/Control.tscn index 5894df76..2f007987 100644 --- a/Control.tscn +++ b/Control.tscn @@ -1,16 +1,7 @@ -[gd_scene load_steps=6 format=2] +[gd_scene load_steps=4 format=2] -[ext_resource path="res://data/DejaVuSansCondensed.ttf" type="DynamicFontData" id=1] [ext_resource path="res://data/мп550-работа-эскиз.png" type="Texture" id=2] -[sub_resource type="DynamicFont" id=1] -size = 20 -outline_size = 1 -outline_color = Color( 0, 0, 0, 1 ) -use_mipmaps = true -use_filter = true -font_data = ExtResource( 1 ) - [sub_resource type="DynamicFont" id=2] [sub_resource type="Theme" id=3] @@ -21,13 +12,13 @@ default_font = SubResource( 2 ) anchor_right = 1.0 anchor_bottom = 1.0 rect_pivot_offset = Vector2( 800, 600 ) -custom_fonts/font = SubResource( 1 ) tab_align = 0 __meta__ = { "_edit_use_anchors_": true } [node name="Работа" type="Panel" parent="."] +visible = false anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 4.0 @@ -42,10 +33,16 @@ scale = Vector2( 1.00375, 0.973333 ) texture = ExtResource( 2 ) [node name="Контроль" type="Panel" parent="."] -visible = false anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 4.0 margin_top = 42.0 margin_right = -4.0 margin_bottom = -4.0 + +[node name="Button" type="Button" parent="Контроль"] +margin_left = 480.0 +margin_top = 440.0 +margin_right = 975.0 +margin_bottom = 620.0 +text = "ЖЫШЦЙБЮ" diff --git a/data/main-font.tres b/data/main-font.tres new file mode 100644 index 00000000..b68e8df9 --- /dev/null +++ b/data/main-font.tres @@ -0,0 +1,11 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://data/DejaVuSansCondensed.ttf" type="DynamicFontData" id=1] + +[resource] +size = 20 +outline_size = 1 +outline_color = Color( 0, 0, 0, 1 ) +use_mipmaps = true +use_filter = true +font_data = ExtResource( 1 ) diff --git a/project.godot b/project.godot index bd5b0892..3b58133b 100644 --- a/project.godot +++ b/project.godot @@ -28,6 +28,7 @@ window/stretch/aspect="keep" [gui] common/drop_mouse_on_gui_input_disabled=true +theme/custom_font="res://data/main-font.tres" [physics]