I'm trying to make interactive objects using the screen system and I found the following options to implement this:
- imagebutton with focus_mask and screen size image
Code: Select all
imagebutton: idle 'images/objects/Door.png' hover 'images/objects/Door_Hover.png' focus_mask True action NullAction() - imagebutton with cropped image and specified position
Code: Select all
imagebutton: idle 'images/objects/Door.png' hover 'images/objects/Door_Hover.png' #focus_mask True xpos 500 ypos 600 action NullAction() - same as previous but Null used instead of idle image(background image contains idle image)
Code: Select all
imagebutton: idle Null(width=300, height=600) hover 'images/objects/Door_Hover.png' xpos 500 ypos 600 action NullAction()
Second and third options have better performance but require manual image positioning.
The question is, how slow is the focus_mask with a 1920x1080 image and is it worth optimizing?