Coder Social home page Coder Social logo

Comments (11)

therationalpi avatar therationalpi commented on August 27, 2024 1

Fixed it.

screen shot 2017-11-16 at 11 45 51 am

ba1a457

from monikamoddev.

therationalpi avatar therationalpi commented on August 27, 2024

#26

While the whole suggestion here would be too much to implement, having Monika comment on the song you choose to play through Soundtest could be good.

from monikamoddev.

 avatar commented on August 27, 2024

Due to the nature of the DDLCModTemplate, this issue should be reviewed.

from monikamoddev.

 avatar commented on August 27, 2024

After a discussion in Discord, a draft for this system has been brought up.

A simple, accessible menu that can be accessed the following ways:

  • The 'm' key. (Possibly assign another key for solely music skipping)
  • Through the settings button.
  • A small music icon.
  • Dialogue-esque choice style. This allows Monika to comment on songs selected by the player.

A selection of songs can be chosen from this menu. Possible ideas include:

  • Music/SFX from DDLC
  • Selective choices, specifically piano pieces used from the community that can be framed as Monika playing for the player.

from monikamoddev.

ThePotatoGuy avatar ThePotatoGuy commented on August 27, 2024

I was playing around a bit with screens and managed to create this:

musicmenu

It acts as an overlay, using screens game_menu and navigation to create a functioning menu. This menu is also dynamically created, so adding additional songs is as simple as adding to a list, defined in songs.music_choices. (I have not tested scrollbars, so that will have to be handled if we add a ton of songs.)

The screen is displayed upon pressing "m". Since its a screen, it should be easy to work with a gui button.

Also the screen is opened in a different context. I was unable to figure a way to workaround this, so the following flow occurs upon a music change:

  1. User hits "m".
  2. The python function select_track is executed.
  3. The label display_music_selector is called in a new context, which launches the Music Menu screen as well as disables reopening the Music Menu if user hits "m" again.
  4. User clicks a song. The song is stored in songs.selected_track. Flow returns to the select_track function.
  5. select_track checks if songs.selected_track is different than the currently playing track songs.current_track. If it is different, the selected track is played and the current track is set to the selected track

In addition, I added persistent.current_track which stores the currently playing track. I added some logic to ch30_autoload which checks for this and plays this track accordingly.

Code comparison is here

Forgot to mention that the song "buttons" hitboxes are not aligned perfectly to the text. (I.E: clicking the space just to the right of "Your Reality" will count as a button click). This is due to the hitboxes resizing to the largest string in the set. Not sure how to adjust this atm.

from monikamoddev.

therationalpi avatar therationalpi commented on August 27, 2024

Wow, I really like this menu style. Very nice!

from monikamoddev.

ThePotatoGuy avatar ThePotatoGuy commented on August 27, 2024

Thanks Pi.

Even though this isn't exactly the same as the Soundtest Interface draft described above, I'm going to create a pull req for the next-release branch. I feel that since this uses a screen object to act as the Music Menu, it would be possible to use this as a base for adding additional features described in the draft.

from monikamoddev.

therationalpi avatar therationalpi commented on August 27, 2024

Based on some discussions, the original request might be out of date anyway.

It would be nice if playing a song when you leave this menu could trigger an event where Monika gives her opinion on it, but only if she hasn't before.

from monikamoddev.

ThePotatoGuy avatar ThePotatoGuy commented on August 27, 2024

That could be done by pushing an event in the select_music function.

from monikamoddev.

 avatar commented on August 27, 2024

This menu could be refined further down the road.

from monikamoddev.

therationalpi avatar therationalpi commented on August 27, 2024

I'll go in and try to extend out the menu so the text doesn't overflow the frame. Might need to make a new asset for it or something.

from monikamoddev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.