You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE)
This commit is contained in:
committed by
Gilles Roudiere
parent
92f062696a
commit
05bb8e0c10
@@ -49,7 +49,7 @@ void BackgroundProgress::_add_task(const String &p_task, const String &p_label,
|
||||
Control *ec = memnew(Control);
|
||||
ec->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
ec->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
t.progress->set_area_as_parent_rect();
|
||||
t.progress->set_anchors_and_margins_preset(Control::PRESET_WIDE);
|
||||
ec->add_child(t.progress);
|
||||
ec->set_custom_minimum_size(Size2(80, 5) * EDSCALE);
|
||||
t.hb->add_child(ec);
|
||||
@@ -222,7 +222,7 @@ ProgressDialog::ProgressDialog() {
|
||||
|
||||
main = memnew(VBoxContainer);
|
||||
add_child(main);
|
||||
main->set_area_as_parent_rect();
|
||||
main->set_anchors_and_margins_preset(Control::PRESET_WIDE);
|
||||
set_exclusive(true);
|
||||
last_progress_tick = 0;
|
||||
singleton = this;
|
||||
|
||||
Reference in New Issue
Block a user