-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: mobile main hud #169
Conversation
kuruk-mm
commented
Jan 16, 2024
•
edited
Loading
edited
- Change Icons in the HUD
- Screen scaling. The base resolution for the UI is 1280x720, and if you change the size, the UI will resize to match that size.
- Menu navigation UI improved, header increased the size
- Joystick now works in an left-bottom area of the screen
- Chat only is shown when it's used (on the future, we are going to implement last 5 messages notifications above it)
- Implement SafeAreaHUD, an area that the "interactive" UI must be drawn. This is for avoiding physicals parts in the Mobile phone (like a camera, or some parts of it) that you cannot interact
e4359f9
to
904b8b6
Compare
95856cd
to
501d84a
Compare
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.
Some minor reviews
Regarding the tests:
- Download the
snapshots.zip
from the CI summary and get the right snapshots to replace inrepo/tests/snapshots
- Before replacing text-shape's snapshots, see what and why they're changing
godot/src/main.gd
Outdated
) | ||
resolution_manager.change_resolution(get_window(), get_viewport(), Global.config.resolution) | ||
resolution_manager.change_ui_scale(get_window(), Global.config.ui_scale) | ||
#resolution_manager.change_window_size( |
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.
dead code
this is still in the settings
@@ -73,8 +73,12 @@ func _ready() -> void: | |||
hide() | |||
|
|||
|
|||
func custom_input(event: InputEvent) -> void: |
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.
can you detail how this works?
godot/src/ui/components/safe_margin_container/SafeMarginContainer.gd
Outdated
Show resolved
Hide resolved
5fd57f6
to
a201885
Compare
fix: remove incorrect code from virtual joystick, that was already there fix: safe area margin now works correctly
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.
Nice work, looks good to me 😄
Just fix tests before merging
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #169 +/- ##
==========================================
+ Coverage 47.37% 47.40% +0.02%
==========================================
Files 140 140
Lines 16850 16868 +18
==========================================
+ Hits 7983 7996 +13
- Misses 8867 8872 +5 ☔ View full report in Codecov by Sentry. |