-
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.
hyperfocal: Updated ui.CanvasObject and ui.CanvasAlphaObject
New methods: * `change_icon(img: image)` and `ui.change_icon(img: image, alpha_mask: gray_image)` - used to update the button image, taking into account the new image size * `offset_by_img_size()` - offsets the button's location to the top left by half of it's image size, intended usage is to call it once right after loading an image to center the button ui.py: Updated ui.CanvasObject and ui.CanvasAlphaObject __main__.py: New functionality allowed by the changes in canvas objects
- Loading branch information
1 parent
bcec46b
commit 4e19107
Showing
2 changed files
with
111 additions
and
40 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