| 523 | } |
| 524 | |
| 525 | void ScriptTextEditor::_inline_object_draw(const Dictionary &p_info, const Rect2 &p_rect) { |
| 526 | if (_is_valid_color_info(p_info)) { |
| 527 | Rect2 col_rect = p_rect.grow(-4); |
| 528 | if (color_alpha_texture.is_null()) { |
| 529 | color_alpha_texture = inline_color_picker->get_theme_icon("sample_bg", "ColorPicker"); |
| 530 | } |
| 531 | code_editor->get_text_editor()->draw_texture_rect(color_alpha_texture, col_rect, false); |
| 532 | code_editor->get_text_editor()->draw_rect(col_rect, Color(p_info["color"])); |
| 533 | code_editor->get_text_editor()->draw_rect(col_rect, Color(1, 1, 1), false, 1); |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | void ScriptTextEditor::_inline_object_handle_click(const Dictionary &p_info, const Rect2 &p_rect) { |
| 538 | if (_is_valid_color_info(p_info)) { |
nothing calls this directly
no test coverage detected