mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 20:22:07 +00:00
## About The Pull Request Maked `fieldset_block` and `examine_block` more stylish and neat, also `fieldset_block` no longer has a centred title. Renamed `examine_block` to `boxed_message` and adds `custom_boxed_message` which can be colored. - AdminPMs, admin tickets and vote results has been wrapped into `fieldset_block` for comfort and visibility - Health Analyzer results painted to blue - Vote notice and tips of the round wrapped to purple `custom_boxed_message` - Tooltip text border color, now uses text color, not just white ## Why It's Good For The Game Demonstration in both themes <details><summary>Dark</summary>    </details> <details><summary>Light</summary>    </details> ## Changelog 🆑 qol: AdminPMs, admin tickets, vote results and started vote notification are now much more visible in the chat. qol: Boxed messages in chat (like examine), has been restyled. /🆑
27 lines
909 B
Plaintext
27 lines
909 B
Plaintext
/datum/buildmode_mode/copy
|
|
key = "copy"
|
|
var/atom/movable/stored = null
|
|
|
|
/datum/buildmode_mode/copy/Destroy()
|
|
stored = null
|
|
return ..()
|
|
|
|
/datum/buildmode_mode/copy/show_help(client/builder)
|
|
to_chat(builder, span_purple(boxed_message(
|
|
"[span_bold("Spawn a copy of selected target")] -> Left Mouse Button on obj/turf/mob\n\
|
|
[span_bold("Select target to copy")] -> Right Mouse Button on obj/mob"))
|
|
)
|
|
|
|
/datum/buildmode_mode/copy/handle_click(client/c, params, obj/object)
|
|
var/list/modifiers = params2list(params)
|
|
|
|
if(LAZYACCESS(modifiers, LEFT_CLICK))
|
|
var/turf/T = get_turf(object)
|
|
if(stored)
|
|
duplicate_object(stored, spawning_location = T)
|
|
log_admin("Build Mode: [key_name(c)] copied [stored] to [AREACOORD(object)]")
|
|
else if(LAZYACCESS(modifiers, RIGHT_CLICK))
|
|
if(ismovable(object)) // No copying turfs for now.
|
|
to_chat(c, span_notice("[object] set as template."))
|
|
stored = object
|