mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
progress_offset now added to reference cross draw function
This commit is contained in:
committed by
RedHeadphone
parent
e734a7a2d8
commit
8a6c6d5329
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user