You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
progress_offset now added to reference cross draw function
(cherry picked from commit 8a6c6d5329)
This commit is contained in:
committed by
Rémi Verschelde
parent
35b7e86e6e
commit
d5bd37a1d1
@@ -501,8 +501,8 @@ void TextureProgress::_notification(int p_what) {
|
|||||||
p = progress->get_size();
|
p = progress->get_size();
|
||||||
}
|
}
|
||||||
|
|
||||||
p.x *= get_relative_center().x;
|
p *= get_relative_center();
|
||||||
p.y *= get_relative_center().y;
|
p += progress_offset;
|
||||||
p = p.floor();
|
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(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);
|
draw_line(p - Point2(0, 8), p + Point2(0, 8), Color(0.9, 0.5, 0.5), 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user