Newer
Older
DungeonShooting / DungeonShooting_Godot / editor / prefabs / CodePanel.tscn
@小李xl 小李xl on 22 Sep 2022 1 KB 报错行显示
[gd_scene load_steps=5 format=2]

[ext_resource path="res://editor/src/CodeTextEditor.cs" type="Script" id=1]
[ext_resource path="res://editor/ide_cn_font_6.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
margin_right = 720.0
margin_bottom = 405.0
rect_scale = Vector2( 0.4, 0.4 )

[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
fold_gutter = true
context_menu_enabled = false
minimap_draw = true
caret_blink = true
caret_blink_speed = 0.4
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="text_changed" from="ScalePanel/TextEdit" to="ScalePanel/TextEdit" method="_on_TextEdit_text_changed"]