Implement weather system and developer console features. Added functionality for setting weather conditions, temperature, and wind speed through a new developer console. Enhanced the vault scene to display current weather, temperature, and wind information, and updated game clock to allow time manipulation. Improved cloud rendering and introduced a new climate management system for seasonal temperature adjustments.

This commit is contained in:
Leonid Pershin
2026-08-11 11:37:56 +03:00
parent a81747781d
commit 3b886ab3ab
14 changed files with 928 additions and 63 deletions
+33 -7
View File
@@ -8,6 +8,7 @@
[ext_resource type="Theme" uid="uid://c6kkopjj3snag" path="res://themes/main_menu.theme.tres" id="4_sch52"]
[ext_resource type="PackedScene" uid="uid://cvx4ot7ugyprk" path="res://scenes/ui/pause_menu.tscn" id="5_lffpp"]
[ext_resource type="Script" uid="uid://7wstqw8ve2he" path="res://scripts/game/game_clock.gd" id="6_mkhle"]
[ext_resource type="Script" uid="uid://dpifh4u0gmgxw" path="res://scripts/ui/weather_icon.gd" id="7_lvdr8"]
[ext_resource type="Script" uid="uid://by1cwvs3fc3pa" path="res://scripts/game/weather_system.gd" id="9_m0p8k"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lvdr8"]
@@ -154,18 +155,43 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_mkhle")
layout_mode = 2
theme_override_constants/separation = 6
[node name="Climate" type="HBoxContainer" parent="Hud/Root/TopRight/Row/ClockBar/Body" unique_id=1529257714]
layout_mode = 2
theme_override_constants/separation = 8
alignment = 2
[node name="Icon" type="Control" parent="Hud/Root/TopRight/Row/ClockBar/Body/Climate" unique_id=788552715]
custom_minimum_size = Vector2(22, 22)
layout_mode = 2
size_flags_vertical = 4
script = ExtResource("7_lvdr8")
[node name="WeatherLabel" type="Label" parent="Hud/Root/TopRight/Row/ClockBar/Body/Climate" unique_id=214206235]
layout_mode = 2
theme_override_colors/font_color = Color(0.7764706, 0.83137256, 0.8784314, 1)
theme_override_font_sizes/font_size = 14
text = "Ясно"
vertical_alignment = 1
[node name="TempLabel" type="Label" parent="Hud/Root/TopRight/Row/ClockBar/Body/Climate" unique_id=663157161]
layout_mode = 2
theme_override_colors/font_color = Color(0.9490196, 0.69411767, 0.20392157, 1)
theme_override_font_sizes/font_size = 14
text = "8°C"
vertical_alignment = 1
[node name="WindLabel" type="Label" parent="Hud/Root/TopRight/Row/ClockBar/Body/Climate" unique_id=298035379]
layout_mode = 2
theme_override_colors/font_color = Color(0.48235294, 0.56078434, 0.6392157, 1)
theme_override_font_sizes/font_size = 14
text = "2 м/с"
vertical_alignment = 1
[node name="Moment" type="HBoxContainer" parent="Hud/Root/TopRight/Row/ClockBar/Body" unique_id=195744038]
layout_mode = 2
theme_override_constants/separation = 10
alignment = 2
[node name="WeatherLabel" type="Label" parent="Hud/Root/TopRight/Row/ClockBar/Body/Moment" unique_id=895640468]
layout_mode = 2
theme_override_colors/font_color = Color(0.48235294, 0.56078434, 0.6392157, 1)
theme_override_font_sizes/font_size = 14
text = "Ясно"
vertical_alignment = 1
[node name="DateLabel" type="Label" parent="Hud/Root/TopRight/Row/ClockBar/Body/Moment" unique_id=1045252723]
layout_mode = 2
theme_override_colors/font_color = Color(0.56078434, 0.64705884, 0.7294118, 1)
+60
View File
@@ -0,0 +1,60 @@
[gd_scene format=3 uid="uid://wddada4uxq4s"]
[ext_resource type="Script" uid="uid://bp5qxf7p5q3ty" path="res://scripts/ui/dev_console.gd" id="1_0be3j"]
[ext_resource type="Theme" uid="uid://c6kkopjj3snag" path="res://themes/main_menu.theme.tres" id="2_4dryq"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fk3y3"]
content_margin_left = 20.0
content_margin_top = 16.0
content_margin_right = 20.0
content_margin_bottom = 16.0
bg_color = Color(0.019607844, 0.039215688, 0.078431375, 0.9490196)
border_width_bottom = 2
border_color = Color(0.18039216, 0.9019608, 0.77254903, 0.6)
[node name="DevConsole" type="CanvasLayer" unique_id=1036744236]
process_mode = 3
layer = 200
script = ExtResource("1_0be3j")
[node name="Root" type="Control" parent="." unique_id=1883814073]
visible = false
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
theme = ExtResource("2_4dryq")
[node name="Panel" type="PanelContainer" parent="Root" unique_id=323575355]
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 0.46
theme_override_styles/panel = SubResource("StyleBoxFlat_fk3y3")
[node name="Body" type="VBoxContainer" parent="Root/Panel" unique_id=1904841198]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Output" type="RichTextLabel" parent="Root/Panel/Body" unique_id=1032431750]
layout_mode = 2
size_flags_vertical = 3
theme_override_font_sizes/normal_font_size = 15
bbcode_enabled = true
scroll_following = true
[node name="InputRow" type="HBoxContainer" parent="Root/Panel/Body" unique_id=1053997656]
layout_mode = 2
theme_override_constants/separation = 8
[node name="Prompt" type="Label" parent="Root/Panel/Body/InputRow" unique_id=1647652394]
layout_mode = 2
theme_override_colors/font_color = Color(0.18039216, 0.9019608, 0.77254903, 1)
theme_override_font_sizes/font_size = 16
text = ">"
[node name="Input" type="LineEdit" parent="Root/Panel/Body/InputRow" unique_id=653784574]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 16
placeholder_text = "команда"