mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-18 19:57:05 +01:00
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request title <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> ## Why It's Good For The Game <!-- Argue for the merits of your changes and how they benefit the game, especially if they are controversial and/or far reaching. If you can't actually explain WHY what you are doing will improve the game, then it probably isn't good for the game in the first place. --> ## Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> 🆑 add: new adminbuse view matrix editor code: cleanup legacy stuff & moved them into their own respective dropdown option code: use tg display-mutable-appearance /🆑 <!-- Both 🆑's are required for the changelog to work! You can put your name to the right of the first 🆑 if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
20 lines
659 B
Plaintext
20 lines
659 B
Plaintext
/client/proc/mark_datum(datum/D)
|
|
if(!holder)
|
|
return
|
|
if(holder.marked_datum)
|
|
holder.UnregisterSignal(holder.marked_datum, COMSIG_PARENT_QDELETING)
|
|
vv_update_display(holder.marked_datum, "marked", "")
|
|
holder.marked_datum = D
|
|
holder.RegisterSignal(holder.marked_datum, COMSIG_PARENT_QDELETING, TYPE_PROC_REF(/datum/admins, handle_marked_del))
|
|
vv_update_display(D, "marked", VV_MSG_MARKED)
|
|
|
|
/datum/admins/proc/handle_marked_del(datum/source)
|
|
SIGNAL_HANDLER
|
|
UnregisterSignal(marked_datum, COMSIG_PARENT_QDELETING)
|
|
marked_datum = null
|
|
|
|
/client/proc/mark_datum_mapview(datum/D in world)
|
|
set category = "Debug"
|
|
set name = "Mark Object"
|
|
mark_datum(D)
|