[RESOLVED] Need help with CSS for new setting for AAO player

If you wish to contribute to the Ace Attorney Online Game Creation Engine open source project, or just know more about the way it is developed, this is the place.

Moderator: EN - Forum Moderators

Post Reply
User avatar
DeathByAutoscroll
Posts: 277
Joined: Sat Mar 12, 2022 7:00 pm
Gender: Female
Spoken languages: English
Location: Outside your home

[RESOLVED] Need help with CSS for new setting for AAO player

Post by DeathByAutoscroll »

Hello. I have functionally programmed a way to allow the player to change the sound of voice blips while playing a case (Demonstration video) however I have been unable to wrangle the CSS to make this new addition look even halfway decent without side effects, and I am requesting help with this by someone who knows how to CSS.

Current:
Image

Goal:
Image

The code can be found at https://bitbucket.org/deathbyautoworksp ... ceBlipVol/
Last edited by DeathByAutoscroll on Thu Jan 02, 2025 11:57 pm, edited 1 time in total.
Thrower of bricks.
Things I have made or have directly helped make, in chronological order:
ImageImageImageImageImageImageImageImageImage
User avatar
TimeAxis
Posts: 454
Joined: Fri Jan 01, 2021 8:27 pm
Spoken languages: English
Contact:

Re: Need help with CSS for new setting for AAO player

Post by TimeAxis »

I’m not sure CSS would be the issue here. The goal is for it to be a volume slider, right? So you’d probably want to use a Range element. But it seems like to do that you might need to add a function to form_elements.js to add range elements since one doesn’t exist currently? I’m not 100% sure on that, or why it would be set up in such a roundabout way if so.
ImageImageImageImageImageImage
ImageImageImageImage
Other
The Imposter's Turnabout (Coming Maybe)
User avatar
DeathByAutoscroll
Posts: 277
Joined: Sat Mar 12, 2022 7:00 pm
Gender: Female
Spoken languages: English
Location: Outside your home

Re: Need help with CSS for new setting for AAO player

Post by DeathByAutoscroll »

TimeAxis wrote: Tue Dec 24, 2024 5:04 pm I’m not sure CSS would be the issue here. The goal is for it to be a volume slider, right? So you’d probably want to use a Range element. But it seems like to do that you might need to add a function to form_elements.js to add range elements since one doesn’t exist currently? I’m not 100% sure on that, or why it would be set up in such a roundabout way if so.
A volume slider was an idea I have decided to drop. After applying the KISS principle and also inputting the language strings, it became clear that there would not be space for a volume slider that the user could have any kind of fine control over. The CSS is an issue as the text does not align with the other options, as well as the wrapping caused by comically long box for a 3 digit max input.
Thrower of bricks.
Things I have made or have directly helped make, in chronological order:
ImageImageImageImageImageImageImageImageImage
User avatar
Enthalpy
Community Manager
Posts: 5219
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Re: Need help with CSS for new setting for AAO player

Post by Enthalpy »

I can give this a look over the weekend, but because a few other obligations are taking longer than expected, I can't commit to this any earlier.
[D]isordered speech is not so much injury to the lips that give it forth, as to the disproportion and incoherence of things in themselves, so negligently expressed. ~ Ben Jonson
User avatar
Enthalpy
Community Manager
Posts: 5219
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Re: Need help with CSS for new setting for AAO player

Post by Enthalpy »

Having thought this over some, I wonder if it would be better to have a collapsible volume section that would let the user change blip, sound effect, and music settings...

If we do that, then the CSS problems go away, no?
[D]isordered speech is not so much injury to the lips that give it forth, as to the disproportion and incoherence of things in themselves, so negligently expressed. ~ Ben Jonson
User avatar
TimeAxis
Posts: 454
Joined: Fri Jan 01, 2021 8:27 pm
Spoken languages: English
Contact:

Re: Need help with CSS for new setting for AAO player

Post by TimeAxis »

A collapsible section for all 3 sounds good to me. Personally I’m more partial to bars as well instead of having to input a number every time, which feels very janky. I don’t think fine tuned control over the exact number is necessary for volume. Ideally they would use page data to remember your settings as well.
ImageImageImageImageImageImage
ImageImageImageImage
Other
The Imposter's Turnabout (Coming Maybe)
User avatar
DeathByAutoscroll
Posts: 277
Joined: Sat Mar 12, 2022 7:00 pm
Gender: Female
Spoken languages: English
Location: Outside your home

Re: Need help with CSS for new setting for AAO player

Post by DeathByAutoscroll »

Enthalpy wrote: Thu Jan 02, 2025 4:13 pm Having thought this over some, I wonder if it would be better to have a collapsible volume section that would let the user change blip, sound effect, and music settings...

If we do that, then the CSS problems go away, no?
I agree that would be better long term, although this currently significantly outstrips my current capabilities and the time I can currently dedicate to leaning how to do this. I'll have a look at trying to figure out how to make a custom sound/music section interface work fully when I have time, especially with how SoundHowler works with custom audio. If anyone else wants to take on this challenge before then however please feel free to go for it.
Thrower of bricks.
Things I have made or have directly helped make, in chronological order:
ImageImageImageImageImageImageImageImageImage
User avatar
Enthalpy
Community Manager
Posts: 5219
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Re: Need help with CSS for new setting for AAO player

Post by Enthalpy »

Well, you can probably reuse the code we have for collapsible debug sections.

In any event, I'm not inclined doing the CSS learning I'd need to do to answer the original question when we're going to get rid of it soon anyways.
[D]isordered speech is not so much injury to the lips that give it forth, as to the disproportion and incoherence of things in themselves, so negligently expressed. ~ Ben Jonson
User avatar
DeathByAutoscroll
Posts: 277
Joined: Sat Mar 12, 2022 7:00 pm
Gender: Female
Spoken languages: English
Location: Outside your home

Re: [RESOLVED] Need help with CSS for new setting for AAO player

Post by DeathByAutoscroll »

Noted, will look at the debug menu! Marking as resolved for now with the new proposal/plan. Thank you for having a look over this and for the great suggestions.
Thrower of bricks.
Things I have made or have directly helped make, in chronological order:
ImageImageImageImageImageImageImageImageImage
Post Reply