mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
516 internal links (#20428)
Convert all (appropriate) links to use the required `byond://` for 516 Added a grep to detect incompatible ones
This commit is contained in:
@@ -85,12 +85,12 @@
|
||||
total_complexity = total_complexity + part.complexity
|
||||
var/list/HTML = list()
|
||||
|
||||
HTML += "<br><a href='?src=[REF(src)]'>Refresh</a> | "
|
||||
HTML += "<a href='?src=[REF(src)];rename=1'>Rename</a><br>"
|
||||
HTML += "<br><a href='byond://?src=[REF(src)]'>Refresh</a> | "
|
||||
HTML += "<a href='byond://?src=[REF(src)];rename=1'>Rename</a><br>"
|
||||
HTML += "[total_parts]/[max_components] ([round((total_parts / max_components) * 100, 0.1)]%) space taken up in the assembly.<br>"
|
||||
HTML += "[total_complexity]/[max_complexity] ([round((total_complexity / max_complexity) * 100, 0.1)]%) maximum complexity.<br>"
|
||||
if(battery)
|
||||
HTML += "[round(battery.charge, 0.1)]/[battery.maxcharge] ([round(battery.percent(), 0.1)]%) cell charge. <a href='?src=[REF(src)];remove_cell=1'>Remove</a>"
|
||||
HTML += "[round(battery.charge, 0.1)]/[battery.maxcharge] ([round(battery.percent(), 0.1)]%) cell charge. <a href='byond://?src=[REF(src)];remove_cell=1'>Remove</a>"
|
||||
else
|
||||
HTML += SPAN_DANGER("No powercell detected!")
|
||||
HTML += "<br><br>"
|
||||
@@ -101,10 +101,10 @@
|
||||
//Put removable circuits in separate categories from non-removable
|
||||
for(var/obj/item/integrated_circuit/circuit in contents)
|
||||
if(!circuit.removable)
|
||||
HTML += "<a href=?src=[REF(circuit)];examine=1;from_assembly=1>[circuit.displayed_name]</a> | "
|
||||
HTML += "<a href=?src=[REF(circuit)];rename=1;from_assembly=1>Rename</a> | "
|
||||
HTML += "<a href=?src=[REF(circuit)];scan=1;from_assembly=1>Scan with Debugger</a> | "
|
||||
HTML += "<a href=?src=[REF(circuit)];bottom=[REF(circuit)];from_assembly=1>Move to Bottom</a>"
|
||||
HTML += "<a href='byond://?src=[REF(circuit)];examine=1;from_assembly=1>[circuit.displayed_name]</a> | "
|
||||
HTML += "<a href='byond://?src=[REF(circuit)];rename=1;from_assembly=1>Rename</a> | "
|
||||
HTML += "<a href='byond://?src=[REF(circuit)];scan=1;from_assembly=1>Scan with Debugger</a> | "
|
||||
HTML += "<a href='byond://?src=[REF(circuit)];bottom=[REF(circuit)];from_assembly=1>Move to Bottom</a>"
|
||||
HTML += "<br>"
|
||||
|
||||
HTML += "<hr>"
|
||||
@@ -112,11 +112,11 @@
|
||||
|
||||
for(var/obj/item/integrated_circuit/circuit in contents)
|
||||
if(circuit.removable)
|
||||
HTML += "<a href=?src=[REF(circuit)];examine=1;from_assembly=1>[circuit.displayed_name]</a> | "
|
||||
HTML += "<a href=?src=[REF(circuit)];rename=1;from_assembly=1>Rename</a> | "
|
||||
HTML += "<a href=?src=[REF(circuit)];scan=1;from_assembly=1>Scan with Debugger</a> | "
|
||||
HTML += "<a href=?src=[REF(circuit)];remove=1;from_assembly=1>Remove</a> | "
|
||||
HTML += "<a href=?src=[REF(circuit)];bottom=[REF(circuit)];from_assembly=1>Move to Bottom</a>"
|
||||
HTML += "<a href='byond://?src=[REF(circuit)];examine=1;from_assembly=1>[circuit.displayed_name]</a> | "
|
||||
HTML += "<a href='byond://?src=[REF(circuit)];rename=1;from_assembly=1>Rename</a> | "
|
||||
HTML += "<a href='byond://?src=[REF(circuit)];scan=1;from_assembly=1>Scan with Debugger</a> | "
|
||||
HTML += "<a href='byond://?src=[REF(circuit)];remove=1;from_assembly=1>Remove</a> | "
|
||||
HTML += "<a href='byond://?src=[REF(circuit)];bottom=[REF(circuit)];from_assembly=1>Move to Bottom</a>"
|
||||
HTML += "<br>"
|
||||
|
||||
var/datum/browser/B = new(user, "assembly-[REF(src)]", name, 600, 400)
|
||||
|
||||
@@ -93,13 +93,13 @@ a creative player the means to solve many problems. Circuits are held inside an
|
||||
var/list/HTML = list(
|
||||
"<div align='center'>",
|
||||
"<table border='1' style='undefined;table-layout: fixed; width: 80%'>",
|
||||
"<br><a href='?src=[REF(src)];return=1'>Return to Assembly</a>",
|
||||
"<br><a href='?src=[REF(src)];'>Refresh</a> | ",
|
||||
"<a href='?src=[REF(src)];rename=1'>Rename</a> | ",
|
||||
"<a href='?src=[REF(src)];scan=1'>Scan with Device</a> | "
|
||||
"<br><a href='byond://?src=[REF(src)];return=1'>Return to Assembly</a>",
|
||||
"<br><a href='byond://?src=[REF(src)];'>Refresh</a> | ",
|
||||
"<a href='byond://?src=[REF(src)];rename=1'>Rename</a> | ",
|
||||
"<a href='byond://?src=[REF(src)];scan=1'>Scan with Device</a> | "
|
||||
)
|
||||
if(src.removable)
|
||||
HTML += "<a href='?src=[REF(src)];remove=1'>Remove</a><br>"
|
||||
HTML += "<a href='byond://?src=[REF(src)];remove=1'>Remove</a><br>"
|
||||
|
||||
HTML += "<colgroup>"
|
||||
HTML += "<col style='width: [table_edge_width]'>"
|
||||
@@ -120,11 +120,11 @@ a creative player the means to solve many problems. Circuits are held inside an
|
||||
if(1)
|
||||
io = get_pin_ref(IC_INPUT, i)
|
||||
if(io)
|
||||
words += "<b><a href=?src=[REF(src)];pin_name=1;pin=[REF(io)]>[io.display_pin_type()] [io.name]</a> <a href=?src=[REF(src)];pin_data=1;pin=[REF(io)]>[io.display_data(io.data)]</a></b><br>"
|
||||
words += "<b><a href='byond://?src=[REF(src)];pin_name=1;pin=[REF(io)]>[io.display_pin_type()] [io.name]</a> <a href='byond://?src=[REF(src)];pin_data=1;pin=[REF(io)]>[io.display_data(io.data)]</a></b><br>"
|
||||
if(io.linked.len)
|
||||
for(var/datum/integrated_io/linked in io.linked)
|
||||
words += "<a href=?src=[REF(src)];pin_unwire=1;pin=[REF(io)];link=[REF(linked)]>[linked.name]</a> \
|
||||
@ <a href=?src=[REF(linked.holder)];examine=1;>[linked.holder.displayed_name]</a><br>"
|
||||
words += "<a href='byond://?src=[REF(src)];pin_unwire=1;pin=[REF(io)];link=[REF(linked)]>[linked.name]</a> \
|
||||
@ <a href='byond://?src=[REF(linked.holder)];examine=1;>[linked.holder.displayed_name]</a><br>"
|
||||
|
||||
if(outputs.len > inputs.len)
|
||||
height = 1
|
||||
@@ -137,11 +137,11 @@ a creative player the means to solve many problems. Circuits are held inside an
|
||||
if(3)
|
||||
io = get_pin_ref(IC_OUTPUT, i)
|
||||
if(io)
|
||||
words += "<b><a href=?src=[REF(src)];pin_name=1;pin=[REF(io)]>[io.display_pin_type()] [io.name]</a> <a href=?src=[REF(src)];pin_data=1;pin=[REF(io)]>[io.display_data(io.data)]</a></b><br>"
|
||||
words += "<b><a href='byond://?src=[REF(src)];pin_name=1;pin=[REF(io)]>[io.display_pin_type()] [io.name]</a> <a href='byond://?src=[REF(src)];pin_data=1;pin=[REF(io)]>[io.display_data(io.data)]</a></b><br>"
|
||||
if(io.linked.len)
|
||||
for(var/datum/integrated_io/linked in io.linked)
|
||||
words += "<a href=?src=[REF(src)];pin_unwire=1;pin=[REF(io)];link=[REF(linked)]>[linked.name]</a> \
|
||||
@ <a href=?src=[REF(linked.holder)];examine=1;>[linked.holder.displayed_name]</a><br>"
|
||||
words += "<a href='byond://?src=[REF(src)];pin_unwire=1;pin=[REF(io)];link=[REF(linked)]>[linked.name]</a> \
|
||||
@ <a href='byond://?src=[REF(linked.holder)];examine=1;>[linked.holder.displayed_name]</a><br>"
|
||||
|
||||
if(inputs.len > outputs.len)
|
||||
height = 1
|
||||
@@ -151,13 +151,13 @@ a creative player the means to solve many problems. Circuits are held inside an
|
||||
for(var/activator in activators)
|
||||
var/datum/integrated_io/io = activator
|
||||
var/words = list(
|
||||
"<b><a href=?src=[REF(src)];pin_name=1;pin=[REF(io)]><span class='bad'>[io.name]</span></a> <a href=?src=[REF(src)];pin_data=1;pin=[REF(io)]><span class='bad'>[io.data?"\<PULSE OUT\>":"\<PULSE IN\>"]</span></a></b><br>"
|
||||
"<b><a href='byond://?src=[REF(src)];pin_name=1;pin=[REF(io)]><span class='bad'>[io.name]</span></a> <a href='byond://?src=[REF(src)];pin_data=1;pin=[REF(io)]><span class='bad'>[io.data?"\<PULSE OUT\>":"\<PULSE IN\>"]</span></a></b><br>"
|
||||
)
|
||||
|
||||
if(io.linked.len)
|
||||
for(var/datum/integrated_io/linked in io.linked)
|
||||
words += "<a href=?src=[REF(src)];pin_unwire=1;pin=[REF(io)];link=[REF(linked)]><span class='bad'>[linked.name]</span></a> \
|
||||
@ <a href=?src=[REF(linked.holder)];examine=1;><span class='bad'>[linked.holder.displayed_name]</span></a><br>"
|
||||
words += "<a href='byond://?src=[REF(src)];pin_unwire=1;pin=[REF(io)];link=[REF(linked)]><span class='bad'>[linked.name]</span></a> \
|
||||
@ <a href='byond://?src=[REF(linked.holder)];examine=1;><span class='bad'>[linked.holder.displayed_name]</span></a><br>"
|
||||
|
||||
HTML += "<tr>"
|
||||
HTML += "<td colspan='3' align='center'>[jointext(words, null)]</td>"
|
||||
|
||||
@@ -14,19 +14,19 @@
|
||||
var/list/my_list = data
|
||||
var/t = "<h2>[src]</h2><br>"
|
||||
t += "List length: [my_list.len]<br>"
|
||||
t += "<a href='?src=[REF(src)]'>Refresh</a> | "
|
||||
t += "<a href='?src=[REF(src)];add=1'>Add</a> | "
|
||||
t += "<a href='?src=[REF(src)];remove=1'>Remove</a> | "
|
||||
t += "<a href='?src=[REF(src)];edit=1'>Edit</a> | "
|
||||
t += "<a href='?src=[REF(src)];swap=1'>Swap</a> | "
|
||||
t += "<a href='?src=[REF(src)];clear=1'>Clear</a><br>"
|
||||
t += "<a href='byond://?src=[REF(src)]'>Refresh</a> | "
|
||||
t += "<a href='byond://?src=[REF(src)];add=1'>Add</a> | "
|
||||
t += "<a href='byond://?src=[REF(src)];remove=1'>Remove</a> | "
|
||||
t += "<a href='byond://?src=[REF(src)];edit=1'>Edit</a> | "
|
||||
t += "<a href='byond://?src=[REF(src)];swap=1'>Swap</a> | "
|
||||
t += "<a href='byond://?src=[REF(src)];clear=1'>Clear</a><br>"
|
||||
t += "<hr>"
|
||||
// Iterating by index simplifies editing/deletion in game,
|
||||
// since the href_list["pos"] var is consistent
|
||||
for(var/i = 1, i <= my_list.len; i++)
|
||||
t += "#[i] | [display_data(my_list[i])] | "
|
||||
t += "<a href='?src=[REF(src)];edit=1;pos=[i]'>Edit</a> | "
|
||||
t += "<a href='?src=[REF(src)];remove=1;pos=[i]'>Remove</a><br>"
|
||||
t += "<a href='byond://?src=[REF(src)];edit=1;pos=[i]'>Edit</a> | "
|
||||
t += "<a href='byond://?src=[REF(src)];remove=1;pos=[i]'>Remove</a><br>"
|
||||
var/datum/browser/B = new(user, "list_pin_[REF(src)]", null, 500, 400)
|
||||
B.set_content(t)
|
||||
B.open(FALSE)
|
||||
|
||||
Reference in New Issue
Block a user