mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-21 15:51:31 +00:00
Converts over the missing TGUI input lists (#23859)
* Converts over the missing TGUI input lists * last fixes * num revert
This commit is contained in:
@@ -62,14 +62,12 @@
|
||||
/obj/item/sign/screwdriver_act(mob/living/user, obj/item/I)
|
||||
if(!isturf(user.loc)) // Why does this use user? This should just be loc.
|
||||
return
|
||||
. = TRUE // These return values gotta be true or we stab the sign
|
||||
var/direction = tgui_input_list(user, "Which direction will this sign be moved?", "Select direction,", list("North", "East", "South", "West", "Cancel"))
|
||||
if(direction == "Cancel" || QDELETED(src))
|
||||
return
|
||||
|
||||
var/direction = input("In which direction?", "Select direction.") in list("North", "East", "South", "West", "Cancel")
|
||||
if(direction == "Cancel")
|
||||
return TRUE // These gotta be true or we stab the sign
|
||||
if(QDELETED(src))
|
||||
return TRUE // Unsure about this, but stabbing something that doesnt exist seems like a bad idea
|
||||
|
||||
var/obj/structure/sign/S = new(user.loc) //This is really awkward to use user.loc
|
||||
var/obj/structure/sign/S = new(get_turf(user))
|
||||
switch(direction)
|
||||
if("North")
|
||||
S.pixel_y = 32
|
||||
@@ -80,13 +78,12 @@
|
||||
if("West")
|
||||
S.pixel_x = -32
|
||||
else
|
||||
return TRUE // We dont want to stab it or place it, so we return
|
||||
return
|
||||
S.name = name
|
||||
S.desc = desc
|
||||
S.icon_state = sign_state
|
||||
to_chat(user, "<span class='notice'>You fasten [S] with your [I].</span>")
|
||||
qdel(src)
|
||||
return TRUE
|
||||
|
||||
/obj/structure/sign/double/map
|
||||
name = "station map"
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
return
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/structure/statue/welder_act(mob/user, obj/item/I)
|
||||
if(anchored)
|
||||
return
|
||||
@@ -39,7 +38,6 @@
|
||||
WELDER_SLICING_SUCCESS_MESSAGE
|
||||
deconstruct(TRUE)
|
||||
|
||||
|
||||
/obj/structure/statue/attack_hand(mob/living/user)
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
add_fingerprint(user)
|
||||
|
||||
@@ -161,7 +161,9 @@
|
||||
anchored = TRUE
|
||||
if("Rotate")
|
||||
var/list/dir_choices = list("North" = NORTH, "East" = EAST, "South" = SOUTH, "West" = WEST)
|
||||
var/selected = input(user,"Select a direction for the connector.", "Connector Direction") in dir_choices
|
||||
var/selected = tgui_input_list(user, "Select a direction for the connector.", "Connector Direction", dir_choices)
|
||||
if(!selected)
|
||||
return
|
||||
dir = dir_choices[selected]
|
||||
update_icon() //is this necessary? probably not
|
||||
|
||||
@@ -572,7 +574,9 @@
|
||||
anchored = TRUE
|
||||
if("Rotate")
|
||||
var/list/dir_choices = list("North" = NORTH, "East" = EAST, "South" = SOUTH, "West" = WEST)
|
||||
var/selected = input(user, "Select a direction for the connector.", "Connector Direction") in dir_choices
|
||||
var/selected = tgui_input_list(user, "Select a direction for the connector.", "Connector Direction", dir_choices)
|
||||
if(!selected)
|
||||
return
|
||||
dir = dir_choices[selected]
|
||||
update_icon() //is this necessary? probably not
|
||||
|
||||
|
||||
Reference in New Issue
Block a user