-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display world screenshot previews and progress #2349
Open
Vankata453
wants to merge
28
commits into
SuperTux:master
Choose a base branch
from
Vankata453:world-previews
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+724
−195
Open
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
19b45a5
Display world screenshot previews and progress
Vankata453 058899e
Move preview functionality to menus and menu items
Vankata453 692d5a0
Merge branch 'master' into world-previews
Vankata453 c38af90
FileSystemMenu now shows previews of images
Vankata453 78094b3
Cast integers to floats when generating preview rect
Vankata453 24dc82f
Cast world entries vector size to int
Vankata453 5cd4f74
Merge remote-tracking branch 'supertux/master' into world-previews
Vankata453 9be8c3d
Don't fade in/out previews when transitions are disabled
Vankata453 bbd65fe
Merge branch 'master' into world-previews
Vankata453 9a9d115
Merge remote-tracking branch 'supertux/master' into world-previews
Vankata453 c0ba8e5
Remove some header includes
Vankata453 3c5ecec
Show progress percentage for worlds
Vankata453 7cdf956
General code improvements
Vankata453 062c452
Get level progress from savefile level tables
Vankata453 827d922
Allow toggling world previews functionality
Vankata453 1149313
Use unsigned integers for storing progress
Vankata453 8a23ab0
Add `<sstream>` include
Vankata453 91ea207
Do not draw menu item previews, if preview overlaps the menu
Vankata453 17e2259
`WorldMapState` now loads/saves state for all sectors
Vankata453 08efd94
Merge branch 'master' into world-previews
Vankata453 3c421d5
Fix macro `;` warning
Vankata453 41bed28
Merge remote-tracking branch 'supertux/master' into world-previews
Vankata453 492395c
Fix issues displaying world previews
Vankata453 78df407
Code fixes [ci skip]
Vankata453 d8a7c73
Align menu help text to screen center
Vankata453 9612857
Menu item image preview size is now relative to screen size
Vankata453 610a448
Calculate world progress percentage using perfect level states
Vankata453 8763b68
Draw white border around previews
Vankata453 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoding the preview size squishes pictures that are too big. Any reason as to why you're doing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the image and the menu could both fit on the screen. Maybe I should check the resolution before determining this though.