Newer
Older
DungeonShooting / DungeonShooting_Godot / editor / prefabs / CodePanel.tscn
  1. [gd_scene load_steps=5 format=2]
  2.  
  3. [ext_resource path="res://editor/src/CodeTextEdit.cs" type="Script" id=1]
  4. [ext_resource path="res://editor/ide_cn_font_12.tres" type="DynamicFont" id=2]
  5. [ext_resource path="res://editor/src/CodePanel.cs" type="Script" id=3]
  6. [ext_resource path="res://editor/src/TextEditPainter.cs" type="Script" id=4]
  7.  
  8. [node name="CodePanel" type="Control"]
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. script = ExtResource( 3 )
  12.  
  13. [node name="ScalePanel" type="Control" parent="."]
  14. anchor_right = 1.0
  15. anchor_bottom = 1.0
  16. rect_scale = Vector2( 0.45, 0.45 )
  17.  
  18. [node name="TextEdit" type="TextEdit" parent="ScalePanel"]
  19. anchor_right = 1.0
  20. anchor_bottom = 1.0
  21. custom_colors/member_variable_color = Color( 0.862745, 0.862745, 0.862745, 1 )
  22. custom_colors/function_color = Color( 0.862745, 0.862745, 0.666667, 1 )
  23. custom_colors/safe_line_number_color = Color( 1, 0.164706, 0.141176, 1 )
  24. custom_colors/background_color = Color( 0.117647, 0.117647, 0.117647, 1 )
  25. custom_colors/number_color = Color( 0.709804, 0.807843, 0.658824, 1 )
  26. custom_colors/current_line_color = Color( 0.0588235, 0.0588235, 0.0588235, 1 )
  27. custom_constants/line_spacing = 0
  28. custom_fonts/font = ExtResource( 2 )
  29. highlight_current_line = true
  30. syntax_highlighting = true
  31. show_line_numbers = true
  32. draw_tabs = true
  33. bookmark_gutter = true
  34. context_menu_enabled = false
  35. virtual_keyboard_enabled = false
  36. deselect_on_focus_loss_enabled = false
  37. minimap_draw = true
  38. caret_blink = true
  39. script = ExtResource( 1 )
  40.  
  41. [node name="TextEditPainter" type="Node2D" parent="ScalePanel/TextEdit"]
  42. script = ExtResource( 4 )
  43.  
  44. [connection signal="resized" from="ScalePanel" to="." method="_on_ScalePanel_resized"]
  45. [connection signal="cursor_changed" from="ScalePanel/TextEdit" to="ScalePanel/TextEdit" method="_on_TextEdit_cursor_changed"]
  46. [connection signal="text_changed" from="ScalePanel/TextEdit" to="ScalePanel/TextEdit" method="_on_TextEdit_text_changed"]