mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 08:11:11 +01:00
[MIRROR] default tgui alert input handling (#8891)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
co-authored by
Kashargul
Kashargul
parent
ec8834f9e5
commit
9f42148ab1
@@ -41,6 +41,8 @@
|
||||
var/timehash = copytext(md5("[world.time]"),1,10)
|
||||
var/text = null
|
||||
var/logo = tgui_alert(usr, "Do you want the header of your fax to have a NanoTrasen, SolGov, or Trader logo?","Fax Logo",list("NanoTrasen","SolGov","Trader")) //VOREStation Add - Trader
|
||||
if(!logo)
|
||||
return
|
||||
if(logo == "SolGov")
|
||||
logo = "sglogo.png"
|
||||
//VOREStation Edit/Add
|
||||
|
||||
@@ -283,7 +283,7 @@ Extracted to its own procedure for easier logic handling with paper bundles.
|
||||
var/choice = tgui_alert(usr, "[question_text] improve response time from staff when sending to discord. \
|
||||
Renaming it changes its preview in staff chat.", \
|
||||
"Default name detected", list("Change Title","Continue", "Cancel"))
|
||||
if(choice == "Cancel")
|
||||
if(!choice || choice == "Cancel")
|
||||
return TRUE
|
||||
else if(choice == "Change Title")
|
||||
var/new_name = tgui_input_text(usr, "Enter new fax title", "This will show up in the preview for staff chat on discord when sending \
|
||||
|
||||
Reference in New Issue
Block a user