mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] Refactored fundamental circuit components that have varying inputs. Improvements to the integrated circuit UI. Improves and rebalances the drone shell [MDB IGNORE] (#15264)
* Refactored fundamental circuit components that have varying inputs. Improvements to the integrated circuit UI. Improves and rebalances the drone shell (#68586) * Refactored fundamental circuit components that have varying inputs. Made the integrated circuit UI slightly better. * Fixes with UI * Removes logger * Ran prettier * Fixed documentation * Rebalances drone circuit * Drones can now charge in chargers Co-authored-by: Watermelon914 <hidden@ hidden.com> * Refactored fundamental circuit components that have varying inputs. Improvements to the integrated circuit UI. Improves and rebalances the drone shell Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Watermelon914 <hidden@ hidden.com>
This commit is contained in:
co-authored by
Watermelon914
Watermelon914
parent
e2c4318f29
commit
856ea9c79a
@@ -188,6 +188,8 @@
|
||||
var/datum/port/output/output_port = new(arglist(arguments))
|
||||
output_ports += output_port
|
||||
sortTim(output_ports, /proc/cmp_port_order_asc)
|
||||
if(parent)
|
||||
SStgui.update_uis(parent)
|
||||
return output_port
|
||||
|
||||
/**
|
||||
|
||||
@@ -43,6 +43,7 @@ GLOBAL_LIST_INIT(circuit_dupe_whitelisted_types, list(
|
||||
var/obj/item/circuit_component/component = load_component(type)
|
||||
identifiers_to_circuit[identifier] = component
|
||||
component.load_data_from_list(component_data)
|
||||
SEND_SIGNAL(component, COMSIG_CIRCUIT_COMPONENT_LOAD_DATA, component_data)
|
||||
|
||||
var/list/input_ports_data = component_data["input_ports_stored_data"]
|
||||
for(var/port_name in input_ports_data)
|
||||
@@ -167,6 +168,7 @@ GLOBAL_LIST_INIT(circuit_dupe_whitelisted_types, list(
|
||||
component_data["connections"] = connections
|
||||
component_data["input_ports_stored_data"] = input_ports_stored_data
|
||||
|
||||
SEND_SIGNAL(component, COMSIG_CIRCUIT_COMPONENT_SAVE_DATA, component_data)
|
||||
component.save_data_to_list(component_data)
|
||||
circuit_data[identifier] = component_data
|
||||
|
||||
|
||||
@@ -614,6 +614,7 @@ GLOBAL_LIST_EMPTY_TYPED(integrated_circuits, /obj/item/integrated_circuit)
|
||||
if(!WITHIN_RANGE(component_id, attached_components))
|
||||
return
|
||||
var/obj/item/circuit_component/component = attached_components[component_id]
|
||||
SEND_SIGNAL(component, COMSIG_CIRCUIT_COMPONENT_PERFORM_ACTION, ui.user, params["action_name"])
|
||||
component.ui_perform_action(ui.user, params["action_name"])
|
||||
if("print_component")
|
||||
var/component_path = text2path(params["component_to_print"])
|
||||
|
||||
Reference in New Issue
Block a user