Commit Graph

13 Commits

  • SongSelect: Add Settings
    - Resolution can be adjusted, as well as touch drum animation on mobile
    - A translation text file "songtitle.txt" can be imported
      - Titles and translated titles are each on their own line, if a line begins with a language code, it will translate the song title that is above
      - An example file can be found here: https://gist.github.com/LoveEevee/65fe66f0b54c0536f96fd2f4862984d4
    - The page will fail to load if version on the page does not match /api/config
    - Disabled Tab key while playing, before hitting it would focus the version link
    - Fix forcing branches in debug not working
    - Fixed not being able to click on songs that do not have oni but have ura
    - Fix unexpected category being used as a fallback
    - Fix verticalText and layeredText not accepting anything except strings
  • SoundBuffer: Set song volume
    - Requires a new column in the database after preview: `volume` REAL
    - The value is a volume multiplier, if the value is set to null or 1 there will be no change
    - The volume can be set in debugger
    - Imported TJA files are now read from disk every time the song is played, freeing some memory and making it easier to create charts
    - Correctly parse TJA files with alphabet notes, added "A" and "B" notes, which appear as DON (Big) and KA (Big) respectively
  • PraseTja: Add branches
    - Needs the following changes to the database: change `easy`, `normal`, `hard`, and `oni` to `TEXT` type
    - When adding songs to the database and if, for example, a song's 7-star difficulty has a branch, instead of `7` input `7 B`, this is to display song's branch support on the song selection
    - Branch can be forced in debug
  • Custom scripting, #song=, translations
    - A song can be linked directly by adding "#song=<id>" to the url, replace `<id>` with the id in the database, after loading it jumps immediately jumps to the difficulty selection
    - Added tutorial translations
    - Fixed song preview not playing
    - Use text fallback for the logo when there are no vectors
    - Increased combo cache by 1 pixel
    - A custom javascript file can be loaded from config.json by defining "custom_js" value
    - Added lots of events to help writing custom js files: `version-link, title-screen, language-change, song-select, song-select-move, song-select-difficulty, song-select-back, about, about-link, tutorial, import-songs, import-songs-default, session, session-start, session-end, debug, load-song, load-song-player2, load-song-unfocused, load-song-cancel, load-song-error, game-start, key-events, p2-game-end, p2-disconnected, p2-abandoned, pause, unpause, pause-restart, pause-song-select, game-lag, scoresheet, scoresheet-player2`
    - Event syntax example:
    ```js
    addEventListener("game-start", event => {
    	console.log("game-start", event.detail)
    })
    ```