Newer
Older
DungeonShooting / DungeonShooting_Godot / editor / prefabs / CodePanel.tscn
[gd_scene load_steps=5 format=2]

[ext_resource path="res://editor/src/CodeTextEdit.cs" type="Script" id=1]
[ext_resource path="res://editor/ide_cn_font_12.tres" type="DynamicFont" id=2]
[ext_resource path="res://editor/src/CodePanel.cs" type="Script" id=3]
[ext_resource path="res://editor/src/TextEditPainter.cs" type="Script" id=4]

[node name="CodePanel" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )

[node name="ScalePanel" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
rect_scale = Vector2( 0.45, 0.45 )

[node name="TextEdit" type="TextEdit" parent="ScalePanel"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_colors/member_variable_color = Color( 0.862745, 0.862745, 0.862745, 1 )
custom_colors/function_color = Color( 0.862745, 0.862745, 0.666667, 1 )
custom_colors/safe_line_number_color = Color( 1, 0.164706, 0.141176, 1 )
custom_colors/background_color = Color( 0.117647, 0.117647, 0.117647, 1 )
custom_colors/number_color = Color( 0.709804, 0.807843, 0.658824, 1 )
custom_colors/current_line_color = Color( 0.0588235, 0.0588235, 0.0588235, 1 )
custom_constants/line_spacing = 0
custom_fonts/font = ExtResource( 2 )
highlight_current_line = true
syntax_highlighting = true
show_line_numbers = true
draw_tabs = true
bookmark_gutter = true
context_menu_enabled = false
virtual_keyboard_enabled = false
deselect_on_focus_loss_enabled = false
minimap_draw = true
caret_blink = true
script = ExtResource( 1 )

[node name="TextEditPainter" type="Node2D" parent="ScalePanel/TextEdit"]
script = ExtResource( 4 )

[connection signal="resized" from="ScalePanel" to="." method="_on_ScalePanel_resized"]
[connection signal="cursor_changed" from="ScalePanel/TextEdit" to="ScalePanel/TextEdit" method="_on_TextEdit_cursor_changed"]
[connection signal="text_changed" from="ScalePanel/TextEdit" to="ScalePanel/TextEdit" method="_on_TextEdit_text_changed"]