[MIRROR] belly input failure message on close (#8895)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2024-09-02 23:07:39 -07:00
committed by GitHub
parent 9198a780fa
commit e9d989a32e
+3
View File
@@ -629,6 +629,9 @@ var/global/list/belly_colorable_only_fullscreens = list("a_synth_flesh_mono",
var/new_name = html_encode(tgui_input_text(usr,"New belly's name:","New Belly"))
if(!new_name)
return FALSE
var/failure_msg
if(length(new_name) > BELLIES_NAME_MAX || length(new_name) < BELLIES_NAME_MIN)
failure_msg = "Entered belly name length invalid (must be longer than [BELLIES_NAME_MIN], no more than than [BELLIES_NAME_MAX])."