Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resize action buttons dynamically on the main display
This adds the necessary bells and whistles to resize the GUI1 buttons used in the main game display. It is rather painful as it involves re-setting most of the attributes that affect the size. These changes also adds two new draw-methods to the display class and gets rid of the default parameters. This is to avoid warnings from clang since the draw() method comes from a superclass to display now. The GUI1 button's set_image has been updated to treat the image path in the same way as it is treated in the constructor. This should not be a problem since the method is not called from anywhere but the display class, and that call is added in this commit.
- Loading branch information
Showing
4 changed files
with
19 additions
and
4 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
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