Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions addons/block_code/ui/script_window/script_window.gd
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ func _apply_editor_syntax_highlighter():
break


## Undoes the effect of the CodeEdit being read-only
func _remove_font_color_alpha_clamp():
var font_readonly_color = script_label.get_theme_color("font_readonly_color")
font_readonly_color.a = 1
script_label.add_theme_color_override("font_readonly_color", font_readonly_color)
Comment on lines +24 to +25
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good finding, I didn't know the read-only was doing that. Thanks for digging the sourcecode.



func _ready():
_apply_editor_syntax_highlighter()
_remove_font_color_alpha_clamp()
script_label.text = script_content.replace("\t", " ")


Expand Down