mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] Fixes music importing newlining (#26997)
* Fixes music importing newlining (#82152) ## About The Pull Request Makes the instrument song importing tgui input text use multiline which means BPM is now on its own line instead of taking the first line of the song with it, getting it cut from the import. ## Why It's Good For The Game Closes https://github.com/tgstation/tgstation/issues/82148 ## Changelog 🆑 fix: Importing songs into instruments no longer cuts the first line of the song. /🆑 * Fixes music importing newlining --------- Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
co-authored by
John Willard
parent
7189459421
commit
a9f516170a
@@ -94,9 +94,10 @@
|
||||
if("import_song")
|
||||
var/song_text = ""
|
||||
do
|
||||
song_text = tgui_input_text(user, "Please paste the entire song, formatted:", name, max_length = (MUSIC_MAXLINES * MUSIC_MAXLINECHARS))
|
||||
song_text = tgui_input_text(user, "Please paste the entire song, formatted:", name, max_length = (MUSIC_MAXLINES * MUSIC_MAXLINECHARS), multiline = TRUE)
|
||||
if(!in_range(parent, user))
|
||||
return
|
||||
|
||||
if(length_char(song_text) >= MUSIC_MAXLINES * MUSIC_MAXLINECHARS)
|
||||
var/should_continue = tgui_alert(user, "Your message is too long! Would you like to continue editing it?", "Warning", list("Yes", "No"))
|
||||
if(should_continue != "Yes")
|
||||
|
||||
Reference in New Issue
Block a user