refactor code editor to scene
This commit is contained in:
14
src/SharpIDE.Godot/Features/CodeEditor/CodeEditorPanel.tscn
Normal file
14
src/SharpIDE.Godot/Features/CodeEditor/CodeEditorPanel.tscn
Normal file
@@ -0,0 +1,14 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c5dlwgcx3ubyp"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cinaqbdghcvoi" path="res://Features/CodeEditor/SharpIdeCodeEdit.tscn" id="1_y4okr"]
|
||||
|
||||
[node name="CodeEditorPanel" type="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="SharpIdeCodeEdit" parent="." instance=ExtResource("1_y4okr")]
|
||||
layout_mode = 2
|
||||
delimiter_strings = Array[String](["\" \"", "' '"])
|
||||
48
src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.tscn
Normal file
48
src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit.tscn
Normal file
@@ -0,0 +1,48 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://cinaqbdghcvoi"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://7jc0nj310cu6" path="res://CascadiaCode.ttf" id="1_s7ira"]
|
||||
[ext_resource type="Script" uid="uid://du2lt7r1p1qfy" path="res://Features/CodeEditor/SharpIdeCodeEdit.cs" id="2_kp2fd"]
|
||||
|
||||
[sub_resource type="FontVariation" id="FontVariation_y3aoi"]
|
||||
base_font = ExtResource("1_s7ira")
|
||||
spacing_top = 3
|
||||
spacing_bottom = 2
|
||||
baseline_offset = 0.05
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_v06ln"]
|
||||
content_margin_left = 4.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.117647, 0.117647, 0.117647, 1)
|
||||
border_color = Color(0, 0, 0, 0.6)
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
corner_detail = 5
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7ptyn"]
|
||||
|
||||
[node name="SharpIdeCodeEdit" type="CodeEdit"]
|
||||
theme_override_colors/current_line_color = Color(0.0588235, 0.0588235, 0.0588235, 1)
|
||||
theme_override_fonts/font = SubResource("FontVariation_y3aoi")
|
||||
theme_override_font_sizes/font_size = 18
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_v06ln")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_7ptyn")
|
||||
highlight_current_line = true
|
||||
symbol_lookup_on_click = true
|
||||
symbol_tooltip_on_hover = true
|
||||
gutters_draw_breakpoints_gutter = true
|
||||
gutters_draw_executing_lines = true
|
||||
gutters_draw_line_numbers = true
|
||||
code_completion_enabled = true
|
||||
auto_brace_completion_enabled = true
|
||||
auto_brace_completion_highlight_matching = true
|
||||
script = ExtResource("2_kp2fd")
|
||||
|
||||
[node name="CodeFixesMenu" type="PopupMenu" parent="."]
|
||||
size = Vector2i(217, 100)
|
||||
item_count = 1
|
||||
item_0/text = "Getting Context Actions..."
|
||||
item_0/id = 0
|
||||
@@ -32,7 +32,7 @@ public partial class IdeRoot : Control
|
||||
_buildSlnButton = GetNode<Button>("%BuildSlnButton");
|
||||
_runMenuPopup = GetNode<Popup>("%RunMenuPopup");
|
||||
_runMenuButton = GetNode<Button>("%RunMenuButton");
|
||||
_sharpIdeCodeEdit = GetNode<SharpIdeCodeEdit>("%SharpIdeCodeEdit");
|
||||
_sharpIdeCodeEdit = GetNode<SharpIdeCodeEdit>("%CodeEditorPanel/SharpIdeCodeEdit");
|
||||
_fileDialog = GetNode<FileDialog>("%OpenSolutionDialog");
|
||||
_solutionExplorerPanel = GetNode<SolutionExplorerPanel>("%SolutionExplorerPanel");
|
||||
_runPanel = GetNode<RunPanel>("%RunPanel");
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
[gd_scene load_steps=20 format=3 uid="uid://b2oniigcp5ew5"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://b2oniigcp5ew5"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://38igu11xwba6" path="res://Inter-VariableFont.ttf" id="1_7ptyn"]
|
||||
[ext_resource type="Script" uid="uid://bavypuy7b375x" path="res://IdeRoot.cs" id="1_whawi"]
|
||||
[ext_resource type="Texture2D" uid="uid://bkty6563cthj8" path="res://Features/Run/Resources/Run.svg" id="2_8x8ub"]
|
||||
[ext_resource type="Script" uid="uid://du2lt7r1p1qfy" path="res://SharpIdeCodeEdit.cs" id="2_qjf5e"]
|
||||
[ext_resource type="FontFile" uid="uid://7jc0nj310cu6" path="res://CascadiaCode.ttf" id="2_rk34b"]
|
||||
[ext_resource type="Script" uid="uid://kvnhndc3l6ih" path="res://Features/CustomControls/InvertedVSplitContainer.cs" id="3_0ybuf"]
|
||||
[ext_resource type="PackedScene" uid="uid://biyhfwx36ium8" path="res://Features/LeftSideBar/LeftSideBar.tscn" id="3_f60gr"]
|
||||
[ext_resource type="PackedScene" uid="uid://cy1bb32g7j7dr" path="res://Features/SolutionExplorer/SolutionExplorerPanel.tscn" id="5_s2dv6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bcoytt3bw0gpe" path="res://Features/Run/RunPanel.tscn" id="5_y3aoi"]
|
||||
[ext_resource type="Script" uid="uid://cvvgp42r3nml8" path="res://Features/BottomPanel/BottomPanelManager.cs" id="7_i62lx"]
|
||||
[ext_resource type="PackedScene" uid="uid://c5dlwgcx3ubyp" path="res://Features/CodeEditor/CodeEditorPanel.tscn" id="8_7ptyn"]
|
||||
[ext_resource type="PackedScene" uid="uid://co6dkhdolriej" path="res://Features/Build/BuildPanel.tscn" id="9_rllbf"]
|
||||
[ext_resource type="PackedScene" uid="uid://tqpmww430cor" path="res://Features/Problems/ProblemsPanel.tscn" id="11_b7c1a"]
|
||||
[ext_resource type="PackedScene" uid="uid://dkjips8oudqou" path="res://Features/Debug_/DebugPanel.tscn" id="11_s2dv6"]
|
||||
@@ -23,27 +22,6 @@ size = Vector2(0, 0)
|
||||
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_7ptyn"]
|
||||
size = Vector2(0, 0)
|
||||
|
||||
[sub_resource type="FontVariation" id="FontVariation_y3aoi"]
|
||||
base_font = ExtResource("2_rk34b")
|
||||
spacing_top = 3
|
||||
spacing_bottom = 2
|
||||
baseline_offset = 0.05
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_v06ln"]
|
||||
content_margin_left = 4.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 4.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.117647, 0.117647, 0.117647, 1)
|
||||
border_color = Color(0, 0, 0, 0.6)
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
corner_detail = 5
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7ptyn"]
|
||||
|
||||
[node name="IdeRoot" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -149,30 +127,9 @@ split_offset = 400
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
|
||||
[node name="SharpIdeCodeEdit" type="CodeEdit" parent="VBoxContainer/HBoxContainer/InvertedVSplitContainer/HSplitContainer"]
|
||||
[node name="CodeEditorPanel" parent="VBoxContainer/HBoxContainer/InvertedVSplitContainer/HSplitContainer" instance=ExtResource("8_7ptyn")]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_colors/current_line_color = Color(0.0588235, 0.0588235, 0.0588235, 1)
|
||||
theme_override_fonts/font = SubResource("FontVariation_y3aoi")
|
||||
theme_override_font_sizes/font_size = 18
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_v06ln")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_7ptyn")
|
||||
highlight_current_line = true
|
||||
symbol_lookup_on_click = true
|
||||
symbol_tooltip_on_hover = true
|
||||
gutters_draw_breakpoints_gutter = true
|
||||
gutters_draw_executing_lines = true
|
||||
gutters_draw_line_numbers = true
|
||||
code_completion_enabled = true
|
||||
auto_brace_completion_enabled = true
|
||||
auto_brace_completion_highlight_matching = true
|
||||
script = ExtResource("2_qjf5e")
|
||||
|
||||
[node name="CodeFixesMenu" type="PopupMenu" parent="VBoxContainer/HBoxContainer/InvertedVSplitContainer/HSplitContainer/SharpIdeCodeEdit"]
|
||||
size = Vector2i(217, 100)
|
||||
item_count = 1
|
||||
item_0/text = "Getting Context Actions..."
|
||||
item_0/id = 0
|
||||
|
||||
[node name="BottomPanel" type="Panel" parent="VBoxContainer/HBoxContainer/InvertedVSplitContainer"]
|
||||
unique_name_in_owner = true
|
||||
|
||||
Reference in New Issue
Block a user