mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-03-30 17:14:59 +01:00
* fixes * fuck my stupid chungus life * Minion limit, heal fix, dead sac fix * cooldown, no sacrificing star gazer or ascended alive heretics * blade debuff * oopsy * Update tgui.bundle.js * map diff bot what ya doing * fuck that chat spam * lets heretic armour hold a haunted longsword * why not it makes sense * do_after * god I hate this bullshit * other lewc stuff * push * heretic id card fix * she tg on my ui till I css * yes * spent * fix / ipc buff (real)™️ * moderate again * revert * no reserve * bringing up to master * update map files to master * didnt replace centcomm * beginning some rebalancing * aggressive spread tweaks * lots of tweaks and fixes * trying to un-key the maps * maybe this time * this time???? * oops * sql fix * basicmob conversion * paintings! and a critical influence fix * rust + tweaks * monster tweak * small change * removing this * more tweaks. no more dusting * added some examine_more * flower seeds * various tweaks. more to come * no more conduit spacing * fixed some dumb stuff * silly stuff * its always prettier * bugfixes and linters * linters, wow * oops * bah * linter * fuck you * temp check * hidden influence drain * influence visible message * tweak fix * void cloak bugfix * small fixes * fixes * do_after_once broken * fixes and tweaks * heretic blade potential fix + sacrifice changes * batch of fixes * tiny tweak * rebuilt TGUI * no greentext + rerolls * logging + bugfix * unused var * small fix * various fixes * comment * projectile change * tgui rebuild * tgui bundle redo * rune issue solved * influence visible now * fix ui reloading * new moon ascension + fixes + icons * tweaks, species sprites * tgui rebuild * small tweak + linter * harvester icon tweak * spans * fixes and tweaks * caretaker nerf + tweaks * potential fix for knowledge * roller fix * mad mask * Update tgui.bundle.js * void phase tweak * Update tgui.bundle.js * misc tweaks * fix heretic not retargeting correctly with cryo * simplify logic * this is better * lots of fixes and tweaks * Update tgui.bundle.js * linter * linter * fireshark and greyscale insanity * fish * Update tgui.bundle.js * linter * linter * tgui * no window shopping * fish fix * tgui rebundle * moon smile runtime fix * various fixes * sacrifice fixes * insanity is easier now, madness mask changes. * bugfixing + teleport change * linters + tweaks * Update code/modules/antagonists/heretic/status_effects/mark_effects.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * Update code/modules/antagonists/heretic/status_effects/mark_effects.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> --------- Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> Co-authored-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: warriorstar-orion <orion@snowfrost.garden> Co-authored-by: Paul <pmerkamp@gmail.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
/**
|
|
* # Click intercept datum
|
|
*
|
|
* Datum which is intended to be stored by a client's `click_intercept` variable.
|
|
* Used to override normal clicking behavior when clicking on an object.
|
|
* While active, a mob's `ClickOn` proc will redirect to the `InterceptClickOn()` proc instead.
|
|
*/
|
|
/datum/click_intercept
|
|
/// A reference to the client which is assigned this click intercept datum.
|
|
var/client/holder = null
|
|
/// Any `atom/movable/screen/buttons` the client is meant to receive when assigned this click intercept datum.
|
|
var/list/atom/movable/screen/buttons = list()
|
|
|
|
/datum/click_intercept/New(client/C)
|
|
create_buttons()
|
|
holder = C
|
|
holder.click_intercept = src
|
|
holder.show_popup_menus = FALSE
|
|
holder.screen += buttons
|
|
return ..()
|
|
|
|
/datum/click_intercept/Destroy()
|
|
holder.screen -= buttons
|
|
holder.click_intercept = null
|
|
holder.show_popup_menus = TRUE
|
|
holder = null
|
|
QDEL_LIST_CONTENTS(buttons)
|
|
return ..()
|
|
|
|
/**
|
|
* Called when you want to cancel a client's click intercept and return to normal clicking.
|
|
*/
|
|
/datum/click_intercept/proc/quit()
|
|
qdel(src)
|
|
|
|
/**
|
|
* Base proc, intended to be overriden. Code that adds datum specific buttons to the list of `buttons`, should go here.
|
|
*/
|
|
/datum/click_intercept/proc/create_buttons()
|
|
return
|
|
|
|
/**
|
|
* Called in various mob's `ClickOn` procs, which happens when they click on an object in the world.
|
|
*
|
|
* If the mob's `client.click_intercept` variable is set to something other than null, calls the `InterceptClickOn` proc for that click intercept datum. Aka, this proc.
|
|
*
|
|
* If you return TRUE, click on ends the click. Otherwise, normal clicking happens
|
|
* Arguments:
|
|
* * user - the mob which just clicked on something.
|
|
* * params - the `params` arguemnt passed from the `ClickOn` proc.
|
|
* * object - the atom that was just clicked.
|
|
*/
|
|
/datum/click_intercept/proc/InterceptClickOn(mob/user, params, atom/object)
|
|
return TRUE
|