mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 23:49:21 +01:00
Merge pull request #10756 from VOREStation/Arokha/fixes2
The One Where I Port Modals
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
for(var/datum/poster/posteroption in poster_designs)
|
||||
options[posteroption.listing_name] = posteroption
|
||||
|
||||
var/choice = input(M,"Choose a poster!","Customize Poster") in options
|
||||
var/choice = tgui_input_list(M, "Choose a poster!", "Customize Poster", options)
|
||||
if(src && choice && !M.stat && in_range(M,src))
|
||||
var serial = poster_designs.Find(options[choice])
|
||||
serial_number = serial
|
||||
@@ -195,7 +195,7 @@
|
||||
if(ruined)
|
||||
return
|
||||
|
||||
if(alert("Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
|
||||
if(tgui_alert(usr, "Do I want to rip the poster from the wall?","You think...",list("Yes","No")) == "Yes")
|
||||
|
||||
if(ruined || !user.Adjacent(src))
|
||||
return
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
for(var/decl/poster/posteroption in decls_repository.get_decls_of_type(/decl/poster))
|
||||
options[posteroption.listing_name] = posteroption
|
||||
|
||||
var/choice = input(M,"Choose a poster!","Customize Poster") in options
|
||||
var/choice = tgui_input_list(M, "Choose a poster!", "Customize Poster", options)
|
||||
if(src && choice && !M.stat && in_range(M,src))
|
||||
poster_decl = options[choice]
|
||||
name = "rolled-up poly-poster - No.[poster_decl.icon_state]"
|
||||
@@ -179,7 +179,7 @@
|
||||
if(ruined)
|
||||
return
|
||||
|
||||
if(alert("Do I want to rip the poster from the wall?","You think...","Yes","No") == "Yes")
|
||||
if(tgui_alert(usr, "Do I want to rip the poster from the wall?","You think...",list("Yes","No")) == "Yes")
|
||||
|
||||
if(ruined || !user.Adjacent(src))
|
||||
return
|
||||
|
||||
@@ -114,13 +114,13 @@
|
||||
|
||||
var/obj/effect/spawner/newbomb/proto = /obj/effect/spawner/newbomb/radio/custom
|
||||
|
||||
var/p = input("Enter phoron amount (mol):","Phoron", initial(proto.phoron_amt)) as num|null
|
||||
var/p = input(usr, "Enter phoron amount (mol):","Phoron", initial(proto.phoron_amt)) as num|null
|
||||
if(p == null) return
|
||||
|
||||
var/o = input("Enter oxygen amount (mol):","Oxygen", initial(proto.oxygen_amt)) as num|null
|
||||
var/o = input(usr, "Enter oxygen amount (mol):","Oxygen", initial(proto.oxygen_amt)) as num|null
|
||||
if(o == null) return
|
||||
|
||||
var/c = input("Enter carbon dioxide amount (mol):","Carbon Dioxide", initial(proto.carbon_amt)) as num|null
|
||||
var/c = input(usr, "Enter carbon dioxide amount (mol):","Carbon Dioxide", initial(proto.carbon_amt)) as num|null
|
||||
if(c == null) return
|
||||
|
||||
new /obj/effect/spawner/newbomb/radio/custom(get_turf(mob), p, o, c)
|
||||
|
||||
Reference in New Issue
Block a user