From 8a6c6d53298d9e9931651913b39d5db763fb3c35 Mon Sep 17 00:00:00 2001 From: Red Headphone <55500003+RedHeadphone@users.noreply.github.com> Date: Sat, 27 Nov 2021 12:50:39 +0530 Subject: progress_offset now added to reference cross draw function --- scene/gui/texture_progress_bar.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene') diff --git a/scene/gui/texture_progress_bar.cpp b/scene/gui/texture_progress_bar.cpp index facbe06d4d..3c10c6bd66 100644 --- a/scene/gui/texture_progress_bar.cpp +++ b/scene/gui/texture_progress_bar.cpp @@ -501,6 +501,7 @@ void TextureProgressBar::_notification(int p_what) { } 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); -- cgit v1.2.3