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]