mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Improves the ore silo UI (#92460)
## About The Pull Request Improves the ore silo UI, continuing https://github.com/tgstation/tgstation/pull/91142 Before: <img width="760" height="336" alt="image" src="https://github.com/user-attachments/assets/06c2f628-ea05-49be-88ed-9947ffc55254" /> After: <img width="626" height="604" alt="image" src="https://github.com/user-attachments/assets/d6a501be-425f-44ba-b75a-c238e20b06fe" /> All sources of silo material withdrawal are now consistent with naming to get properly color coded, which helps with looking for stuff. ## Why It's Good For The Game Better UI readability, more consistent logs ## Changelog 🆑 qol: Color coded and consistent material silo logs /🆑 --------- Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
if (!materials.mat_container.has_materials(design.materials, efficiency_coeff))
|
||||
return
|
||||
|
||||
materials.use_materials(design.materials, efficiency_coeff, 1, "printed", "[design.name]", user_data)
|
||||
materials.use_materials(design.materials, efficiency_coeff, 1, "processed", "[design.name]", user_data)
|
||||
return new design.build_path(drop_location())
|
||||
|
||||
/obj/machinery/component_printer/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
|
||||
@@ -160,7 +160,7 @@
|
||||
|
||||
balloon_alert_to_viewers("printed [design.name]")
|
||||
|
||||
materials.use_materials(design.materials, efficiency_coeff, 1, "printed", "[design.name]", user_data)
|
||||
materials.use_materials(design.materials, efficiency_coeff, 1, "processed", "[design.name]", user_data)
|
||||
var/atom/printed_design = new design.build_path(drop_location())
|
||||
printed_design.pixel_x = printed_design.base_pixel_x + rand(-5, 5)
|
||||
printed_design.pixel_y = printed_design.base_pixel_y + rand(-5, 5)
|
||||
@@ -408,7 +408,7 @@
|
||||
say("Not enough materials.")
|
||||
return TRUE
|
||||
|
||||
materials.use_materials(design["materials"], efficiency_coeff, 1, design["name"], design["materials"], user_card)
|
||||
materials.use_materials(design["materials"], efficiency_coeff, 1, "processed", design["name"], user_card)
|
||||
print_module(design)
|
||||
balloon_alert_to_viewers("printed [design["name"]]")
|
||||
if ("remove_mat")
|
||||
|
||||
Reference in New Issue
Block a user