diff options
author | Hop311 <Hop3114@gmail.com> | 2024-04-24 21:26:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 21:26:49 +0200 |
commit | d351700ded728a2bb52995579d8cbba43cc247c8 (patch) | |
tree | e0ec540f15f1a543121cf2f3ea4f0d46cd2c8f6a /game/src/Game/GameSession/MapView.tscn | |
parent | 7a1167259bc2a33aab8e91c6108d9054c77408bc (diff) | |
parent | 0fb9d5c8fb4771ef8001efdd8de1dc2dab4bb5dc (diff) |
Merge pull request #222 from OpenVicProject/province-namesrivers
Add province names and improve zooming
Diffstat (limited to 'game/src/Game/GameSession/MapView.tscn')
-rw-r--r-- | game/src/Game/GameSession/MapView.tscn | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/game/src/Game/GameSession/MapView.tscn b/game/src/Game/GameSession/MapView.tscn index bf22ef8..dff02a6 100644 --- a/game/src/Game/GameSession/MapView.tscn +++ b/game/src/Game/GameSession/MapView.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=7 format=3 uid="uid://dkehmdnuxih2r"] +[gd_scene load_steps=8 format=3 uid="uid://dkehmdnuxih2r"] [ext_resource type="Script" path="res://src/Game/GameSession/MapView.gd" id="1_exccw"] [ext_resource type="Shader" path="res://src/Game/GameSession/TerrainMap.gdshader" id="1_upocn"] +[ext_resource type="Script" path="res://src/Game/GameSession/MapText.gd" id="2_13bgq"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_tayeg"] render_priority = 0 @@ -23,17 +24,22 @@ albedo_color = Color(0, 0, 0, 1) material = SubResource("StandardMaterial3D_irk50") size = Vector2(6, 2) -[node name="MapView" type="Node3D" node_paths=PackedStringArray("_camera", "_map_mesh_instance", "_map_background_instance")] +[node name="MapView" type="Node3D" node_paths=PackedStringArray("_camera", "_map_mesh_instance", "_map_background_instance", "_map_text")] editor_description = "SS-73" script = ExtResource("1_exccw") _camera = NodePath("MapCamera") _map_mesh_instance = NodePath("MapMeshInstance") _map_background_instance = NodePath("MapBackgroundInstance") +_map_text = NodePath("MapText") [node name="MapCamera" type="Camera3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0.25, 1.5, -2.75) near = 0.01 +[node name="MapText" type="Node3D" parent="." node_paths=PackedStringArray("_map_view")] +script = ExtResource("2_13bgq") +_map_view = NodePath("..") + [node name="MapMeshInstance" type="MeshInstance3D" parent="."] editor_description = "FS-343" transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0) @@ -43,3 +49,5 @@ mesh = SubResource("MapMesh_3gtsd") [node name="MapBackgroundInstance" type="MeshInstance3D" parent="."] transform = Transform3D(10, 0, 0, 0, 10, 0, 0, 0, 10, 0, -1, 0) mesh = SubResource("PlaneMesh_fnhgl") + +[connection signal="detailed_view_changed" from="." to="MapText" method="set_visible"] |