[MIRROR] Misc fixes for statpanel (#9334)

Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2024-10-27 19:07:47 -07:00
committed by GitHub
parent 4e277de29c
commit 51a06b4c2d
4 changed files with 45 additions and 5 deletions

View File

@@ -28,7 +28,7 @@
/obj/machinery/embedded_controller/Topic()
. = ..()
stack_trace("WARNING: Embedded controller [src] ([type]) had Topic() called unexpectedly. Please report this.")
// stack_trace("WARNING: Embedded controller [src] ([type]) had Topic() called unexpectedly. Please report this.") // statpanel means that topic can always be called for clicking
/obj/machinery/embedded_controller/tgui_act(action, params)
if(..())
@@ -106,4 +106,4 @@
/obj/machinery/embedded_controller/radio/proc/set_frequency(new_frequency)
radio_controller.remove_object(src, frequency)
frequency = new_frequency
radio_connection = radio_controller.add_object(src, frequency, radio_filter)
radio_connection = radio_controller.add_object(src, frequency, radio_filter)

View File

@@ -535,8 +535,7 @@
onclose(usr, "[name]")
if(href_list["flavor_change"])
update_flavor_text()
// ..()
return
return ..()
/mob/proc/pull_damage()

View File

@@ -237,3 +237,44 @@ body.dark {
.dark .grid-item:active .grid-item-text {
background-color: #313131;
}
/* required for alt click menu */
.link {
display: inline;
background: none;
border: none;
padding: 7px 14px;
color: black;
text-decoration: none;
cursor: pointer;
font-size: 13px;
margin: 2px 2px;
}
.linkelem {
display: inline;
background: none;
border: none;
padding: 0px 14px;
color: black;
text-decoration: none;
cursor: pointer;
font-size: 13px;
margin: 2px 2px;
}
.dark .link {
color: #abc6ec;
}
.dark .linkelem {
color: #abc6ec;
}
.link:hover {
text-decoration: underline;
}
.linkelem:hover {
text-decoration: underline;
}

View File

@@ -500,7 +500,7 @@ function draw_listedturf() {
table.appendChild(b);
table.appendChild(document.createElement("br"));
}
document.getElementById("statcontent").appendChild(table);
statcontentdiv.appendChild(table);
}
function remove_listedturf() {