mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Merge pull request #64377 from Mickeon/rename-canvas-redraw
Rename `CanvasItem.update()` to `queue_redraw()`
This commit is contained in:
@@ -92,7 +92,7 @@ String EditorPerformanceProfiler::_create_label(float p_value, Performance::Moni
|
||||
}
|
||||
|
||||
void EditorPerformanceProfiler::_monitor_select() {
|
||||
monitor_draw->update();
|
||||
monitor_draw->queue_redraw();
|
||||
}
|
||||
|
||||
void EditorPerformanceProfiler::_monitor_draw() {
|
||||
@@ -283,12 +283,12 @@ void EditorPerformanceProfiler::_marker_input(const Ref<InputEvent> &p_event) {
|
||||
float spacing = float(point_sep) / float(columns);
|
||||
marker_frame = (rect.size.x - point.x) / spacing;
|
||||
}
|
||||
monitor_draw->update();
|
||||
monitor_draw->queue_redraw();
|
||||
return;
|
||||
}
|
||||
}
|
||||
marker_key = "";
|
||||
monitor_draw->update();
|
||||
monitor_draw->queue_redraw();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ void EditorPerformanceProfiler::reset() {
|
||||
_build_monitor_tree();
|
||||
marker_key = "";
|
||||
marker_frame = 0;
|
||||
monitor_draw->update();
|
||||
monitor_draw->queue_redraw();
|
||||
}
|
||||
|
||||
void EditorPerformanceProfiler::update_monitors(const Vector<StringName> &p_names) {
|
||||
@@ -357,7 +357,7 @@ void EditorPerformanceProfiler::add_profile_frame(const Vector<float> &p_values)
|
||||
E.value.update_value(data);
|
||||
}
|
||||
marker_frame++;
|
||||
monitor_draw->update();
|
||||
monitor_draw->queue_redraw();
|
||||
}
|
||||
|
||||
List<float> *EditorPerformanceProfiler::get_monitor_data(const StringName &p_name) {
|
||||
|
||||
@@ -318,7 +318,7 @@ void EditorProfiler::_update_plot() {
|
||||
graph_texture->update(img);
|
||||
|
||||
graph->set_texture(graph_texture);
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
}
|
||||
|
||||
void EditorProfiler::_update_frame() {
|
||||
@@ -421,7 +421,7 @@ void EditorProfiler::_graph_tex_draw() {
|
||||
|
||||
void EditorProfiler::_graph_tex_mouse_exit() {
|
||||
hover_metric = -1;
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
}
|
||||
|
||||
void EditorProfiler::_cursor_metric_changed(double) {
|
||||
@@ -429,7 +429,7 @@ void EditorProfiler::_cursor_metric_changed(double) {
|
||||
return;
|
||||
}
|
||||
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
_update_frame();
|
||||
}
|
||||
|
||||
@@ -480,13 +480,13 @@ void EditorProfiler::_graph_tex_input(const Ref<InputEvent> &p_ev) {
|
||||
}
|
||||
}
|
||||
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
}
|
||||
}
|
||||
|
||||
void EditorProfiler::disable_seeking() {
|
||||
seeking = false;
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
}
|
||||
|
||||
void EditorProfiler::_combo_changed(int) {
|
||||
|
||||
@@ -312,7 +312,7 @@ void EditorVisualProfiler::_update_plot() {
|
||||
graph_texture->update(img);
|
||||
|
||||
graph->set_texture(graph_texture);
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
}
|
||||
|
||||
void EditorVisualProfiler::_update_frame(bool p_focus_selected) {
|
||||
@@ -489,7 +489,7 @@ void EditorVisualProfiler::_graph_tex_draw() {
|
||||
|
||||
void EditorVisualProfiler::_graph_tex_mouse_exit() {
|
||||
hover_metric = -1;
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
}
|
||||
|
||||
void EditorVisualProfiler::_cursor_metric_changed(double) {
|
||||
@@ -497,7 +497,7 @@ void EditorVisualProfiler::_cursor_metric_changed(double) {
|
||||
return;
|
||||
}
|
||||
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
_update_frame();
|
||||
}
|
||||
|
||||
@@ -613,7 +613,7 @@ void EditorVisualProfiler::_graph_tex_input(const Ref<InputEvent> &p_ev) {
|
||||
}
|
||||
}
|
||||
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -637,7 +637,7 @@ int EditorVisualProfiler::_get_cursor_index() const {
|
||||
|
||||
void EditorVisualProfiler::disable_seeking() {
|
||||
seeking = false;
|
||||
graph->update();
|
||||
graph->queue_redraw();
|
||||
}
|
||||
|
||||
void EditorVisualProfiler::_combo_changed(int) {
|
||||
|
||||
Reference in New Issue
Block a user