MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / set_error

Method set_error

editor/gui/code_editor.cpp:1518–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1516}
1517
1518void CodeTextEditor::set_error(const String &p_error) {
1519 error->set_text(p_error);
1520
1521 _update_error_content_height();
1522
1523 if (p_error.is_empty()) {
1524 error->set_default_cursor_shape(CURSOR_ARROW);
1525 } else {
1526 error->set_default_cursor_shape(CURSOR_POINTING_HAND);
1527 }
1528}
1529
1530void CodeTextEditor::_update_error_content_height() {
1531 float margin_height = 0;

Callers 2

_validate_scriptMethod · 0.45
_validate_scriptMethod · 0.45

Calls 3

set_textMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected