-
-
Notifications
You must be signed in to change notification settings - Fork 653
Add audio-player-custom #2084
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
Add audio-player-custom #2084
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👇 Click on the image for a new way to code review
Legend |
Can someone please give me feedback on why it has not passed all the tests? |
Hello, @Carlos-Carsdfj ! Interesting contribution, was thinking to poke at the music player's aspect in the next milestone, v0.5 (codename Chimera). |
Thank you for answering so quickly. I already understand that there are problems with ls test. I have no problem implementing that ideas, if they are very complicated I can do it tomorrow in my free time |
No problem. Sounds good, no huge rush, as nobody is poking at the audio related code right now, but if you manage all the stuff within a week or so, that would be awesome. Opened a review with some basic stuff under the hood. Regarding the audio player's aesthetics, div within div looks somewhat bad, at very least the player div should be moved outside; could have the playlist div more narrow to match width, we'll need some left/right side screen estate anyway to showcase the top backers and sponsors. The "Music Song" text seems rather pointless, we should move "Shuffle" over there for a way nicer integration. Bonus stuff: instead of using the current div, we could use this graphic as background (also used as button for materializing units): Your PR also fixes #1994 in the process. I've also opened #2085 to better keep track of things and also provide a token bounty 🪙 |
More stuff regarding player visuals if switching to using the background in order to take things to the next level:
For the shuffle icon we could use "icono-sync" from it https://saeedalipoor.github.io/icono/ which is also pure CSS icon since you already use it for the other icons. |
Do not add this image because it loses quality when stretching it, https://github.com/FreezingMoon/AncientBeast/blob/master/assets/interface/long_button.png for the moment I will leave it until here when I have free time again this week I will do it and I'll try to find another image for the background another pr, I hope that it is better that way. |
Very nice progress, it looks quite clean, definitely great progress compared to the default player. The background image was meant to be kept at original ratio, just rescaled if needed. Thought that went without saying :D Anyway, I looked at OpenGameArt and did a search, bumped into this again https://opengameart.org/content/fantasy-ui-button |
Heya! It seems we have some misunderstanding: the background is supposed to be for the player itself, not the playlist xD |
Ok, I pass the background to the audio player and leave the list as it was before? |
Yes, though the audio tags will go to the audio player using that new background, like you managed, as that part was progress 👍🏻 |
@Carlos-Carsdfj Looks pretty good! <3 One more thing to tweak for now, alignments:
After that I'll merge and send bounties 🪙 I'll open right away a few more issues regarding the audio stuff. |
@Carlos-Carsdfj Close tags are good, I know I originally said way more spaced out (in the middles of those gaps) but like this they read like "epic rock" and it easier to get from one to another. Timeline should still be a bit more on the left side so it has even gaps compared to the margins. One more issue that I've noticed thanks to you screwing up at first and using the background for the play list part itself: |
if you resize the parent div the audio player doesn't resize |
It's a fixed size element and that's completely fine. |
I can try to fix the playlist in another pr, I had already fixed it before when I put the background image in the list instead of the player😅 |
I already add the image shadowless file thanks |
hopefully
@Carlos-Carsdfj Alrighty, did some tweaks and finally merged this. Sent bounty 🪙 along with a bonus 👍🏻 |
Thanks a lot ! 😁 right now I don't have electricity in my house😔 I'm going to see the link to know how to collect the reward |
No problem. Sucks not to have power. The XatteR is already in your wallet, those links are just the proof of the transaction. |
Great, I will study that a little more thoroughly and I will keep it in the wallet, so can I ask you any other questions? I might get back to collaborating on the playlist or something else in a week in my free time |
Sure thing. Usually I'm on our Discord daily https://discord.gg/x78rKen |
Audio player is now nicely themed! fixes FreezingMoon#2085, fixes FreezingMoon#1994
Add a custom audio player that captures the essence of the game more, I hope you like it and that it does not cause any problems
just remove the audio tag and add a custom one, try as much as possible not to touch the existing scripts and css.less so create a new script and separate css file and then replace the
in the musicplayer.js, for a