mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 19:44:58 +01:00
[MIRROR] Add new H.E.C.K. suit GAGS sprite, recolorable via spray can [MDB IGNORE] (#14006)
* Add new H.E.C.K. suit GAGS sprite, recolorable via spray can (#67217) imageadd: The H.E.C.K. suit has a new sprite. (by Meyhazah) add: You can now use a spray can to completely recolor the H.E.C.K. suit. * Add new H.E.C.K. suit GAGS sprite, recolorable via spray can Co-authored-by: Urumasi <Urumasi@email.cz>
This commit is contained in:
@@ -308,3 +308,19 @@ This is highly likely to cause massive amounts of lag as every object in the gam
|
||||
current = parent
|
||||
parent = type2parent(current)
|
||||
config_owner_type = current
|
||||
|
||||
/// Used for spray painting items in the gags_recolorable component
|
||||
/datum/greyscale_modify_menu/spray_paint
|
||||
var/obj/item/toy/crayon/spraycan/spraycan = null
|
||||
|
||||
/datum/greyscale_modify_menu/spray_paint/New(atom/target, client/user, list/allowed_configs, datum/callback/apply_callback, starting_icon_state, starting_config, starting_colors, obj/item/toy/crayon/spraycan/used_spraycan)
|
||||
..()
|
||||
spraycan = used_spraycan
|
||||
|
||||
/datum/greyscale_modify_menu/spray_paint/ui_status(mob/user, datum/ui_state/state)
|
||||
return min(
|
||||
ui_status_only_living(user, target),
|
||||
ui_status_user_is_abled(user, target),
|
||||
ui_status_user_strictly_adjacent(user, target),
|
||||
user.is_holding(spraycan)? UI_INTERACTIVE : UI_CLOSE
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user