mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
Detective Board UI update (#90591)
## About The Pull Request I've updated the UI of the detective board to make it look more detective-like. Also, it is not necessary to specify the name and description of the evidence to be attached. If it is not specified, these fields are taken from the item. https://github.com/user-attachments/assets/51419478-5fa9-43d4-a903-992ab4f0c91d (The detective smoked a cigar and is now coughing) Before:  After:  ## Why It's Good For The Game Better UI/UX ## Changelog 🆑 FeudeyTF qol: Better UI/UX for detective's board /🆑
This commit is contained in:
@@ -52,12 +52,10 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/detectiveboard, 32)
|
||||
attaching_evidence = TRUE
|
||||
var/name = tgui_input_text(user, "Please enter the evidence name", "Detective's Board", max_length = MAX_NAME_LEN)
|
||||
if(!name)
|
||||
attaching_evidence = FALSE
|
||||
return
|
||||
name = item.name
|
||||
var/desc = tgui_input_text(user, "Please enter the evidence description", "Detective's Board", max_length = MAX_DESC_LEN)
|
||||
if(!desc)
|
||||
attaching_evidence = FALSE
|
||||
return
|
||||
desc = item.desc
|
||||
|
||||
if(!user.transferItemToLoc(item, src))
|
||||
attaching_evidence = FALSE
|
||||
|
||||
Reference in New Issue
Block a user