progress_offset now added to reference cross draw function

(cherry picked from commit 8a6c6d5329)
This commit is contained in:
Red Headphone 2021-11-27 12:50:39 +05:30 committed by Rémi Verschelde
parent 850ee9d4a2
commit aa95a4a436
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -500,8 +500,8 @@ void TextureProgress::_notification(int p_what) {
p = progress->get_size();
}
p.x *= get_relative_center().x;
p.y *= get_relative_center().y;
p *= get_relative_center();
p += progress_offset;
p = p.floor();
draw_line(p - Point2(8, 0), p + Point2(8, 0), Color(0.9, 0.5, 0.5), 2);
draw_line(p - Point2(0, 8), p + Point2(0, 8), Color(0.9, 0.5, 0.5), 2);