-
Notifications
You must be signed in to change notification settings - Fork 21
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
Visual upgrade + code changes #56
Conversation
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.
Why would you need an image of a black/white square png image. Just use a color rect, if you need the spacing, just use containers (margin) for that.
Also, please capitalize the first character in a sentence and words on buttons (example, "spielen" instead of "Spielen") |
Windows error: Why is game_id a path? "res://games/flappybird" |
Also Using a static video instead of animations in Godot is also a problem, on larger monitors and not that easy to edit. Another thing to note is, that not every game has a high score, so it should not be displayed in the game info. |
0 shouldn't be the default for score in end_game. There should be the option for games without scores. (null as default) |
Windows error: |
The black square imange is used in Settings/Boot Splash, which has to be an image. |
Not a fan of the cryptic translation codes. T_PAUSED, T_RESUME, T_RESTART, T_BACK_TO_MENU would be a better fit. PS: here is a PR for this b7g#1 |
Yes translation codes should always contain the whole english text, then you know when you have to update all the other langauge variations |
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.
Just looked over the code and noticed some problems
game/app/scenes/game_card.gd
Outdated
return _last_played | ||
|
||
|
||
func _format_playtime(playtime) -> Dictionary: |
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.
I don't like how inaccurate this is
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.
I think it is an improvement
Before
- it was always displayed in seconds
- it had 3 decimal places
The target audience of this application are not measurement engineers right?
extends Node | ||
|
||
|
||
func get_current_player() -> String: |
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.
Why move that here, if it still has no functionality?
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.
a. why should the GameManager handle the players, even if it is not really functional yet?
b. de-clutters the GameManager
Thanks for the lots of comments and info, I appreciate it. I will respond to the comments first and then resolve the issues. |
I think you meant it the other way around in your example? |
shouldn't be, you are right |
a. correct |
I agree |
Will be changed |
I agree on this, but had problems with the sizing in the past.
|
I'm pretty sure there is an option to set a custom boot splash screen instead of just an image. If that is not the case just make the image a 1x1 transparent image and make the background black ( this would also only appear very shortly before a splash screen scene is loaded ).
And you can't create a rectangle in a shader ? |
Yeah sorry my bad. The other way around is obviously correct. |
Ideally yes. However this would require another manual entry in the game CFGs. That's why hiding the highscore for all games until a non null highscore is returned by end_game, is also a good option. |
A 1x1 transparent image works fine for the boot splash and it can be used for the blur shader too.
Maybe, I'm not a shader guy. |
There is not. Will change to pixel.
I just did it like in the example project provided by Godot. |
next level visual - Translation keycodes changed
I did it without the image file. Turns out all you have to do is change the TextureRect to a ColorRect. The color of the rect doesn't matter since its overwritten anyway by the shader. The PR: b7g#3 |
When you need to highlight something in the description, it just means you haven’t done your job properly and are bringing it together with highlights in the description on the cost of the user. |
The Description isn't to bandaid over flaws of the game, I agree. If someone uses it like that you should tell them to stop and fix the game. |
Fixed some problems with the themes
Added themes to counteract to many theme overrides
Please note that I swapped out the images in the description to reflect the latest changes. |
Bug: Reproduce:
ERROR menu.gd:144 Invalid operands 'Nil' and 'Nil' in operator '>'. Could be the same bug @RedstoneMedia stated before.
|
should be finally fixed :') |
I made the formatting of the playtime more precise.
maybe that's precise enough for your liking? |
I finished the scene tree refactor of this. |
Sounds better. Could we maybe show even more precise times on hover? x days y hours z minutes |
You mean how it looks now right ? You don't want to change the look back to before my (and b7g's) improvements. Shouldn't you be able to just apply the theme (instead of changing it) ? A button is going to stay a button, how would a scene tree refactor, change this ? |
I improved the scene tree structure and removed unnecessary nodes. |
It’s common for playtime to be displayed in hours, not minutes or days |
Okay ? That's a bit suspicious. Edit: From what I can see, only the top bar looks really off right now. That could be handled with overrides (Or a new custom theme just for the menu bar)
Also theme overrides are not the devil (If its only used once or twice) Anyways, your current branch has some obvious issues (I know WIP and stuff but still):
|
@RedstoneMedia What is suspicious about that? Most of the visuals were in the theme overwrites before. And I know overwrites aren't inherently bad. But I found at least a handful of them in V/HBoxContainers where they make limited sense. And I removed many of those Containers. |
* menu scene tree refactor game page * menu scene tree refactor about page * menu scene tree refactor settings page * fix scroll to bug report * Fixing stuff the merge broke * Fix title font and added margin container to main_theme.tres * fix about page crashing on reload * game_card scene tree refactor * game_card_add_yours scene tree refactor * fix assert fail * fix themes and theme overwrites * fix merge * rename About.gd to about.gd * fix about page empty bottom part * Fixed most colors/margins * fix visuals * Disable bbcode for no reason * fix theme even more * Fixed more margins/color issues * add much needed about.gd docu & make it respond to line spacing * fix visuals again * refactor about.gd thanks to Numenters tip * Fixed play time game card position * fix more visuals Co-authored-by: RedstoneMedia <34373974+RedstoneMedia@users.noreply.github.com>
"base": "MarginContainer", | ||
"base": "Reference", |
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.
sort_it.gd extends form MarginContainer and my godot is changing this back to MarginContainer.
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.
Yeah, this is weird, my godot always changes it back and forth. I honestly have no Idea what causes this.
@@ -86,7 +86,7 @@ class ScoreSorter: | |||
|
|||
|
|||
## Handle data for the game that ended. | |||
func game_ended(player: String, game_id: String, start_time, score: Dictionary): | |||
func game_ended(player: String, game_id: String, start_time, score_or_null): |
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.
Don't like the name. Is it score or is it null or is the score null?
Just call it score and add a comment with which values are expected.
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.
Just two little things, but you got my 👍 anyway.
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.
Now this is a good PR I can get behind.
Description
This PR includes a visual and a code makeover.
Visual
splash screen
new menu
new info dialog
new section about/contribute/report a bug
new section settings
the new ingame pause menu
Changes, changes everywhere
Additionally to the visual changes depicted above following changes were made:
Type of change
Environment
Testing
tested everything at some point, should work
Checklist