[gd_scene load_steps=5 format=2] [ext_resource path="res://addons/node25d-cs/main_screen/viewport_25d.gd" type="Script" id=1] [ext_resource path="res://addons/node25d-cs/main_screen/view_mode_button_group.tres" type="ButtonGroup" id=2] [sub_resource type="ViewportTexture" id=1] viewport_path = NodePath("Viewport25D/Viewport2D") [sub_resource type="ViewportTexture" id=2] viewport_path = NodePath("Viewport25D/ViewportOverlay") [node name="MainScreen25D" type="VBoxContainer"] anchor_right = 1.0 anchor_bottom = 1.0 size_flags_horizontal = 3 size_flags_vertical = 3 __meta__ = { "_edit_use_anchors_": false } [node name="TopBar" type="HBoxContainer" parent="."] offset_right = 1600.0 offset_bottom = 32.0 rect_min_size = Vector2(0, 32) size_flags_horizontal = 3 [node name="ViewModeButtons" type="HBoxContainer" parent="TopBar"] offset_right = 798.0 offset_bottom = 32.0 size_flags_horizontal = 3 [node name="45Degree" type="CheckBox" parent="TopBar/ViewModeButtons"] offset_right = 94.0 offset_bottom = 32.0 pressed = true group = ExtResource( 2 ) text = "45 Degree" __meta__ = { "_edit_use_anchors_": false } [node name="Isometric" type="CheckBox" parent="TopBar/ViewModeButtons"] offset_left = 98.0 offset_right = 188.0 offset_bottom = 32.0 group = ExtResource( 2 ) text = "Isometric" __meta__ = { "_edit_use_anchors_": false } [node name="TopDown" type="CheckBox" parent="TopBar/ViewModeButtons"] offset_left = 192.0 offset_right = 283.0 offset_bottom = 32.0 group = ExtResource( 2 ) text = "Top Down" __meta__ = { "_edit_use_anchors_": false } [node name="FrontSide" type="CheckBox" parent="TopBar/ViewModeButtons"] offset_left = 287.0 offset_right = 379.0 offset_bottom = 32.0 group = ExtResource( 2 ) text = "Front Side" __meta__ = { "_edit_use_anchors_": false } [node name="ObliqueY" type="CheckBox" parent="TopBar/ViewModeButtons"] offset_left = 383.0 offset_right = 473.0 offset_bottom = 32.0 group = ExtResource( 2 ) text = "Oblique Y" __meta__ = { "_edit_use_anchors_": false } [node name="ObliqueZ" type="CheckBox" parent="TopBar/ViewModeButtons"] offset_left = 477.0 offset_right = 568.0 offset_bottom = 32.0 group = ExtResource( 2 ) text = "Oblique Z" __meta__ = { "_edit_use_anchors_": false } [node name="Zoom" type="HBoxContainer" parent="TopBar"] offset_left = 802.0 offset_right = 1600.0 offset_bottom = 32.0 size_flags_horizontal = 3 alignment = 2 [node name="ZoomOut" type="Button" parent="TopBar/Zoom"] offset_left = 680.0 offset_right = 710.0 offset_bottom = 32.0 rect_min_size = Vector2(30, 0) text = "-" [node name="ZoomPercent" type="Label" parent="TopBar/Zoom"] offset_left = 714.0 offset_top = 9.0 offset_right = 764.0 offset_bottom = 23.0 rect_min_size = Vector2(50, 0) text = "100%" align = 1 clip_text = true [node name="ZoomReset" type="Button" parent="TopBar/Zoom/ZoomPercent"] modulate = Color(1, 1, 1, 0) anchor_right = 1.0 anchor_bottom = 1.0 __meta__ = { "_edit_use_anchors_": false } [node name="ZoomIn" type="Button" parent="TopBar/Zoom"] offset_left = 768.0 offset_right = 798.0 offset_bottom = 32.0 rect_min_size = Vector2(30, 0) text = "+" [node name="Viewport25D" type="ColorRect" parent="."] offset_top = 36.0 offset_right = 1600.0 offset_bottom = 900.0 rect_clip_content = true size_flags_horizontal = 3 size_flags_vertical = 3 color = Color(0.301961, 0.301961, 0.301961, 1) script = ExtResource( 1 ) [node name="Viewport2D" type="SubViewport" parent="Viewport25D"] size = Vector2(1600, 864) transparent_bg = true disable_3d = true usage = 1 render_target_v_flip = true [node name="ViewportOverlay" type="SubViewport" parent="Viewport25D"] size = Vector2(1600, 864) transparent_bg = true disable_3d = true usage = 1 render_target_v_flip = true [node name="ViewportTexture" type="TextureRect" parent="Viewport25D"] anchor_right = 1.0 anchor_bottom = 1.0 texture = SubResource( 1 ) expand = true __meta__ = { "_edit_use_anchors_": false } [node name="Overlay" type="TextureRect" parent="Viewport25D/ViewportTexture"] anchor_right = 1.0 anchor_bottom = 1.0 texture = SubResource( 2 ) __meta__ = { "_edit_use_anchors_": false } [connection signal="pressed" from="TopBar/Zoom/ZoomOut" to="Viewport25D" method="_on_ZoomOut_pressed"] [connection signal="pressed" from="TopBar/Zoom/ZoomPercent/ZoomReset" to="Viewport25D" method="_on_ZoomReset_pressed"] [connection signal="pressed" from="TopBar/Zoom/ZoomIn" to="Viewport25D" method="_on_ZoomIn_pressed"]