summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRed Headphone <55500003+RedHeadphone@users.noreply.github.com>2021-11-27 12:50:39 +0530
committerRedHeadphone <huzaifa.k@somaiya.edu>2021-11-28 17:59:00 +0530
commit8a6c6d53298d9e9931651913b39d5db763fb3c35 (patch)
treebcf46718fac0a1a2395c6b8a64925f745600a001
parente734a7a2d8919bc84ff721f969cb46403d0872d0 (diff)
progress_offset now added to reference cross draw function
-rw-r--r--scene/gui/texture_progress_bar.cpp1
1 files changed, 1 insertions, 0 deletions
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);