mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 20:51:14 +00:00
Rename CanvasItem.update() to queue_redraw()
Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
This commit is contained in:
parent
e60086f98b
commit
e31bb5ffeb
111 changed files with 1354 additions and 1354 deletions
|
|
@ -56,7 +56,7 @@ void ThemeEditorPreview::add_preview_overlay(Control *p_overlay) {
|
|||
void ThemeEditorPreview::_propagate_redraw(Control *p_at) {
|
||||
p_at->notification(NOTIFICATION_THEME_CHANGED);
|
||||
p_at->update_minimum_size();
|
||||
p_at->update();
|
||||
p_at->queue_redraw();
|
||||
for (int i = 0; i < p_at->get_child_count(); i++) {
|
||||
Control *a = Object::cast_to<Control>(p_at->get_child(i));
|
||||
if (a) {
|
||||
|
|
@ -174,7 +174,7 @@ void ThemeEditorPreview::_gui_input_picker_overlay(const Ref<InputEvent> &p_even
|
|||
if (mm.is_valid()) {
|
||||
Vector2 mp = preview_content->get_local_mouse_position();
|
||||
hovered_control = _find_hovered_control(preview_content, mp);
|
||||
picker_overlay->update();
|
||||
picker_overlay->queue_redraw();
|
||||
}
|
||||
|
||||
// Forward input to the scroll container underneath to allow scrolling.
|
||||
|
|
@ -183,7 +183,7 @@ void ThemeEditorPreview::_gui_input_picker_overlay(const Ref<InputEvent> &p_even
|
|||
|
||||
void ThemeEditorPreview::_reset_picker_overlay() {
|
||||
hovered_control = nullptr;
|
||||
picker_overlay->update();
|
||||
picker_overlay->queue_redraw();
|
||||
}
|
||||
|
||||
void ThemeEditorPreview::_notification(int p_what) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue