-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
New footer design implementation and rewrite of FooterButton class #20148
Conversation
The metrics seem really off from the design. Is there a reason for that? (ie. font size, icon size, bottom colour bar size). |
some i changed purposefully because they didn't match the sized you would expect from the design if i took the values at face value, especially the text , the base button width, etc.. i tested at 1x scale on a 1080 p screen and both are in pixels i assume so im not sure why that could be. if you want i can match them exactly |
I'd expect them to match visually if that's the case, but they don't. |
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.
FA 6 renames a lot of the icons. The links I gave in the discussion show aliases from 5.
Due to the refactor to osu/osu.Game/Screens/Select/FooterButtonRandom.cs Lines 121 to 131 in 97e85ef
Also of note, it seems that in the |
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.
In addition to other things pointed out, just an initial pass.
Offset = new Vector2(.250f, 2), | ||
Colour = Colour4.Black.Opacity(.25f), |
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.
Offset = new Vector2(.250f, 2), | |
Colour = Colour4.Black.Opacity(.25f), | |
Offset = new Vector2(0.25f, 2), | |
Colour = Colour4.Black.Opacity(0.25f), |
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.
Also interested to know where these values came from. Just visual ballparking?
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.
yep because the figma shadow value gave me a shadow way stronger than that shown in the design, again sorry for all these mistakes , where should i source this stuff from for future reference ?
The tweening and animation style is completely wrong with this change, but I can fix that once the other issues are fixed. Maybe. For now, please remove the scaling of the buttons during mouse down completely. And change the buttons to be anchored to the bottom of the parent, not the top. @arflyte please advise how you imagined mods showing in the footer, if at all. this ad-hoc implementation looks very bad: osu.2022-09-06.at.04.18.56.mp4 |
Waiting on the answer to this since I've restructured the nesting hierarchy for drawables ( it was awfully bloated I've come to realize) and I need to know if I can do away with the mods box before I continue |
That is definitely not the way to display selected mods. There's supposed to be a floating indicator on top of the button, but I haven't designed that yet. Place the selected mod floating on top of the button for now, until I work on its fix. |
Lol I don't even know what to do with this PR. I think it's probably blocked until @arflyte provides a proper design. |
well i was told to put it up there in my defense i agree that that overlap sucks, |
if possible I'd love a quick review of my latest two commits, think the structuring of the drawable is much better now and I removed all the margin jankiness i'd done due to lack of knowledge. Not pressing at all since this is blocked for now regardless, just would be neat. shear centering should also be better |
@arflyte has there been any progress around this design? |
@mk56-spn there's been some design work on the mod display it would seem (https://www.figma.com/file/DXKwqZhD5yyb1igc3mKo1P/Song-Select-Draft-2?node-id=0%3A1&t=bRPeY78djO0JkLzS-0, bottom left) That said, it's probably going to require a bit of implementation detail so I'd argue that the display should just be removed from this PR completely and added as a separate effort. |
Needs non-trivial conflict resolution. |
Sounds good. Fwiw I'm willing to do this part as well. But yeah I'd rather get practice mode and the other bits I have in my pipeline out so I'll put this secondary effort on the backburner If thats ok |
not for review currently, adressing that rather horrid conflict |
@arflyte still missing design what do |
i can make a semi fitting placeholder change for them if you want in other words replace their current colours with B6/ B5 background colour, move the colour itself to a thin bar on one of the sides , add some corner radius rounding, a bit of spacing between them , make them less tall and shift them up so they dont collide with the new buttons. and probably match the shear |
I honestly think you should implement your new buttons in complete isolation. In a test scene. So you don't have to remove the multiplier display code and wait for all other design elements to be completed. Trying to immediately slot this in amongst many other surrounding elements is, as we have seen from this PR, not a good idea. You're welcome to suffix your component with a V2 as has been done elsewhere. Opening in a new PR is also fine if it cleans up the history. |
yep ive upped my commit practices since making this and i totally agree this PR looks rather filthy, gonna close this in a bit in favour of a clean branch |
Tried to stick as best as i could to the designs
matched the animations and such with ShearedButton.cs for consistency and rewrote the code to more closely track with that.
Sample Vid:
2022-09-05.17-36-53.mov
will do the back button and Logo replacement seperately since they are more finnicky and lots of screens depend on them