Sync minimap floor data
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bwbofurcvf3yh"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bwbofurcvf3yh"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://cm8j5vcdop5x0" path="res://src/ui/fonts/Mrs-Eaves-OT-Roman_31443.ttf" id="1_tt5q2"]
|
||||
[ext_resource type="Script" uid="uid://cxi8msbee56t2" path="res://src/minimap/Minimap.cs" id="1_yn75n"]
|
||||
[ext_resource type="FontFile" uid="uid://dp1k143v7cppw" path="res://src/ui/fonts/Lust_Sans_Regular.otf" id="2_yn75n"]
|
||||
|
||||
[sub_resource type="Environment" id="Environment_3fkgx"]
|
||||
background_color = Color(1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="Theme" id="Theme_75ec6"]
|
||||
default_font = ExtResource("1_tt5q2")
|
||||
default_font_size = 50
|
||||
|
||||
[sub_resource type="Theme" id="Theme_qgswn"]
|
||||
default_font = ExtResource("1_tt5q2")
|
||||
default_font_size = 50
|
||||
|
||||
[node name="Minimap" type="Control"]
|
||||
process_mode = 3
|
||||
light_mask = 2
|
||||
@@ -15,6 +27,7 @@ anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_yn75n")
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||
layout_mode = 1
|
||||
@@ -25,13 +38,13 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="SubViewportContainer" type="SubViewportContainer" parent="CenterContainer"]
|
||||
custom_minimum_size = Vector2(300, 300)
|
||||
custom_minimum_size = Vector2(350, 300)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="CenterContainer/SubViewportContainer"]
|
||||
transparent_bg = true
|
||||
handle_input_locally = false
|
||||
size = Vector2i(500, 500)
|
||||
size = Vector2i(350, 300)
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="Minimap Camera" type="Camera3D" parent="CenterContainer/SubViewportContainer/SubViewport"]
|
||||
@@ -41,3 +54,53 @@ environment = SubResource("Environment_3fkgx")
|
||||
fov = 45.0
|
||||
size = 100.0
|
||||
near = 0.001
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CenterContainer/SubViewportContainer/SubViewport"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_left = 200
|
||||
theme_override_constants/margin_top = 200
|
||||
|
||||
[node name="Control" type="Control" parent="CenterContainer/SubViewportContainer/SubViewport/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="LayerText" type="Label" parent="CenterContainer/SubViewportContainer/SubViewport/MarginContainer/Control"]
|
||||
custom_minimum_size = Vector2(80, 15)
|
||||
layout_mode = 2
|
||||
offset_left = -10.0
|
||||
offset_top = 29.0
|
||||
offset_right = 140.0
|
||||
offset_bottom = 70.0
|
||||
size_flags_vertical = 6
|
||||
theme = SubResource("Theme_75ec6")
|
||||
theme_override_colors/font_color = Color(0.792157, 0.698039, 0.643137, 1)
|
||||
theme_override_colors/font_shadow_color = Color(0.792157, 0.698039, 0.643137, 0.0392157)
|
||||
theme_override_constants/shadow_offset_x = 1
|
||||
theme_override_constants/shadow_offset_y = -2
|
||||
theme_override_constants/shadow_outline_size = 15
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "Layer"
|
||||
vertical_alignment = 2
|
||||
|
||||
[node name="LayerNumberText" type="Label" parent="CenterContainer/SubViewportContainer/SubViewport/MarginContainer/Control"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(80, 15)
|
||||
layout_mode = 2
|
||||
offset_left = 69.0
|
||||
offset_top = 13.0
|
||||
offset_right = 149.0
|
||||
offset_bottom = 65.0
|
||||
theme = SubResource("Theme_qgswn")
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_shadow_color = Color(1, 1, 1, 0.027451)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/shadow_offset_x = 2
|
||||
theme_override_constants/shadow_offset_y = -2
|
||||
theme_override_constants/outline_size = 2
|
||||
theme_override_fonts/font = ExtResource("2_yn75n")
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "01"
|
||||
horizontal_alignment = 1
|
||||
|
||||
Reference in New Issue
Block a user