forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak
TextureProgressBar
NOTIFICATION_DRAW
to support 9-patch str…
…etch in radial modes 1) Code is splitted into 3 sections: - draw `under` texture; - draw `progress` texture + draw radial modes reference cross; - draw `over` texture. Each draw texture section handles nine-patch stretching. Except for the progress texture in radial modes, which does not support nine-patch stretching. 2) The reference cross position now is not misaligned to real center position (`floor()` call removed). 3) The reference cross drawing code is additionally surrounded by `TOOLS_ENABLED` check.
- Loading branch information
Showing
2 changed files
with
35 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters