mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
display of large help text in visual script
implemented vertical scroller for help text in popup disabled broken positioning code
This commit is contained in:
parent
35596e6b74
commit
5a481bd340
2 changed files with 10 additions and 10 deletions
|
|
@ -1959,15 +1959,6 @@ void VisualScriptEditor::_generic_search(Vector2 pos, bool node_centered) {
|
|||
}
|
||||
|
||||
new_connect_node_select->select_from_visual_script(script, false); // do not reset text
|
||||
|
||||
// Ensure that the dialog fits inside the graph.
|
||||
Size2 bounds = graph->get_global_position() + graph->get_size() - new_connect_node_select->get_size();
|
||||
pos.x = pos.x > bounds.x ? bounds.x : pos.x;
|
||||
pos.y = pos.y > bounds.y ? bounds.y : pos.y;
|
||||
|
||||
if (pos != Vector2()) {
|
||||
new_connect_node_select->set_position(pos);
|
||||
}
|
||||
}
|
||||
|
||||
void VisualScriptEditor::input(const Ref<InputEvent> &p_event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue