farming-simulator/scenes/prologue/act2_install.tscn
Dmitrii Bykov 579df43289
Some checks failed
Godot CI / Import + smoke test (push) Failing after 13s
fix: скролл лицензии, отец лицом к игроку, банка-цилиндр, экран
АКТ 2 СКРОЛЛ:
- Body RichTextLabel: fit_content=true → false, теперь label
  остаётся в фиксированном размере 540×220 и скроллит контент
  внутри. Раньше label расширялся по тексту и обрезался панелью.
- scroll_following=false (не следить за концом).
- mouse_filter=STOP — теперь mouse wheel над label скроллит.
- font_size снижен с дефолта на 11 — больше пунктов помещается
  на экране, читается комфортно.
- Window custom_minimum_size = 580×348 (было 560×320) — больше
  места под лицензию.

ОТЕЦ:
- FatherNPC initial transform теперь rotation_y = +π/2
  (Transform3D(0,0,-1,0,1,0,1,0,0,1.7,0,0)) — лицом к игроку
  на запад. Игрок видит лицо отца, а не профиль.
- В _walk_father_out tween поворачивает rotation_y → -π/2
  (180° поворот через 0/север). Шагает на восток к двери
  с правильно повёрнутым корпусом.

МОНИТОР:
- К Desk/OldPC добавлен child Screen — BoxMesh 0.21×0.15×0.005
  с эмиссивной материалом mat_screen (тёмный с голубым свечением).
- Стоит на передней грани монитора, имитирует тёмный экран
  с легким bluish-glow CRT-вибом.

ADRENALINE BANK → ЦИЛИНДР:
- mesh_can: BoxMesh → CylinderMesh top=bottom=0.03 height=0.13.
  Теперь это реально банка по форме, а не куб.

ТЕКСТУРЫ ПРЕДМЕТОВ (TextureGen новые):
- adrenaline_label: синий с тёмно-синими диагональными штрихами +
  жёлтая молния по центру + тёмные верхняя/нижняя кромки.
- lays_wrapper: жёлтый с красной волнистой лентой посередине
  (синус) + коричневая чипса-клякса внизу + тёмные уголки.
- sock_fabric: тёмно-синий с горизонтальными светлыми полосками
  каждые 6 пикселей + тёмный шов.
- monitor_screen: тёмное стекло с edge-glow + scanlines каждые
  2 строки (CRT-вайб).
- Применены в act1.gd._apply_textures на AdrenalineCan,
  LaysWrapper, Sock1/Sock2.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-24 18:36:19 +03:00

234 lines
6.2 KiB
Text

[gd_scene load_steps=5 format=3]
[ext_resource type="Script" path="res://scripts/prologue/act2_install.gd" id="1_act2"]
[sub_resource type="StyleBoxFlat" id="style_window"]
bg_color = Color(0.13, 0.14, 0.18, 0.97)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.42, 0.44, 0.5, 1)
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_left = 4
corner_radius_bottom_right = 4
content_margin_left = 12.0
content_margin_top = 8.0
content_margin_right = 12.0
content_margin_bottom = 10.0
[sub_resource type="StyleBoxFlat" id="style_titlebar"]
bg_color = Color(0.08, 0.09, 0.13, 1)
border_width_bottom = 1
border_color = Color(0.42, 0.44, 0.5, 1)
corner_radius_top_left = 3
corner_radius_top_right = 3
content_margin_left = 8.0
content_margin_top = 4.0
content_margin_right = 8.0
content_margin_bottom = 4.0
[sub_resource type="StyleBoxFlat" id="style_panel"]
bg_color = Color(0.16, 0.17, 0.22, 1)
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color(0.35, 0.37, 0.43, 1)
corner_radius_top_left = 2
corner_radius_top_right = 2
corner_radius_bottom_left = 2
corner_radius_bottom_right = 2
content_margin_left = 8.0
content_margin_top = 6.0
content_margin_right = 8.0
content_margin_bottom = 6.0
[node name="Act2Install" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource("1_act2")
[node name="Desktop" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0.04, 0.08, 0.18, 1)
[node name="FourSquares" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
[node name="LogoText" type="Label" parent="FourSquares"]
layout_mode = 0
offset_left = 0.0
offset_top = 130.0
offset_right = 640.0
offset_bottom = 160.0
text = "ШИНДОВС 9"
horizontal_alignment = 1
modulate = Color(0.94, 0.94, 0.94, 1)
[node name="SqRed" type="ColorRect" parent="FourSquares"]
offset_left = 290.0
offset_top = 170.0
offset_right = 314.0
offset_bottom = 194.0
color = Color(0.9, 0.2, 0.2, 1)
[node name="SqGreen" type="ColorRect" parent="FourSquares"]
offset_left = 316.0
offset_top = 170.0
offset_right = 340.0
offset_bottom = 194.0
color = Color(0.2, 0.78, 0.3, 1)
[node name="SqBlue" type="ColorRect" parent="FourSquares"]
offset_left = 290.0
offset_top = 196.0
offset_right = 314.0
offset_bottom = 220.0
color = Color(0.2, 0.4, 0.9, 1)
[node name="SqYellow" type="ColorRect" parent="FourSquares"]
offset_left = 316.0
offset_top = 196.0
offset_right = 340.0
offset_bottom = 220.0
color = Color(0.94, 0.71, 0.1, 1)
[node name="BootHint" type="Label" parent="FourSquares"]
offset_left = 0.0
offset_top = 240.0
offset_right = 640.0
offset_bottom = 260.0
text = "Подготовка установки…"
horizontal_alignment = 1
modulate = Color(0.7, 0.7, 0.7, 1)
[node name="Center" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
[node name="Window" type="PanelContainer" parent="Center"]
custom_minimum_size = Vector2(580, 348)
layout_mode = 2
theme_override_styles/panel = SubResource("style_window")
[node name="V" type="VBoxContainer" parent="Center/Window"]
layout_mode = 2
[node name="TitleBar" type="PanelContainer" parent="Center/Window/V"]
layout_mode = 2
theme_override_styles/panel = SubResource("style_titlebar")
[node name="Title" type="Label" parent="Center/Window/V/TitleBar"]
layout_mode = 2
text = "Шиндовс 9 — Установка"
horizontal_alignment = 1
modulate = Color(0.94, 0.71, 0.1, 1)
[node name="Body" type="RichTextLabel" parent="Center/Window/V"]
custom_minimum_size = Vector2(540, 220)
layout_mode = 2
bbcode_enabled = true
fit_content = false
scroll_active = true
scroll_following = false
mouse_filter = 0
text = "Загрузка…"
theme_override_font_sizes/normal_font_size = 11
theme_override_font_sizes/bold_font_size = 11
theme_override_font_sizes/italics_font_size = 11
theme_override_font_sizes/mono_font_size = 11
[node name="Input" type="LineEdit" parent="Center/Window/V"]
layout_mode = 2
placeholder_text = "..."
max_length = 24
[node name="InputHint" type="Label" parent="Center/Window/V"]
layout_mode = 2
text = ""
autowrap_mode = 3
modulate = Color(0.6, 0.6, 0.6, 1)
[node name="CheckBoxNoPwd" type="CheckBox" parent="Center/Window/V"]
layout_mode = 2
text = "Без пароля"
[node name="TimeZone" type="OptionButton" parent="Center/Window/V"]
layout_mode = 2
[node name="ErrorLabel" type="Label" parent="Center/Window/V"]
layout_mode = 2
text = ""
modulate = Color(0.95, 0.3, 0.3, 1)
[node name="Progress" type="ProgressBar" parent="Center/Window/V"]
layout_mode = 2
max_value = 100.0
show_percentage = true
[node name="Buttons" type="HBoxContainer" parent="Center/Window/V"]
layout_mode = 2
alignment = 2
[node name="BtnB" type="Button" parent="Center/Window/V/Buttons"]
layout_mode = 2
custom_minimum_size = Vector2(110, 28)
text = "Читать"
[node name="BtnA" type="Button" parent="Center/Window/V/Buttons"]
layout_mode = 2
custom_minimum_size = Vector2(110, 28)
text = "Принять"
[node name="WelcomeScreen" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
visible = false
[node name="BG" type="ColorRect" parent="WelcomeScreen"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0.04, 0.08, 0.18, 1)
[node name="V" type="VBoxContainer" parent="WelcomeScreen"]
offset_left = 0.0
offset_top = 130.0
offset_right = 640.0
offset_bottom = 240.0
alignment = 1
[node name="WelcomeText" type="Label" parent="WelcomeScreen/V"]
layout_mode = 2
text = "Добро пожаловать."
horizontal_alignment = 1
modulate = Color(0.94, 0.94, 0.94, 1)
[node name="Hint" type="Label" parent="WelcomeScreen/V"]
layout_mode = 2
text = "Шиндовс 9 готов к работе."
horizontal_alignment = 1
modulate = Color(0.7, 0.7, 0.7, 1)
[node name="LaunchSteme" type="Button" parent="WelcomeScreen/V"]
layout_mode = 2
custom_minimum_size = Vector2(160, 32)
size_flags_horizontal = 4
text = "Запустить стеме"
[connection signal="pressed" from="WelcomeScreen/V/LaunchSteme" to="." method="_on_launch_steme"]