Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Skyrat Mirror] [READY] CatEarHeadphones Donor item #148

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions modular_skyrat/modules/GAGS/greyscale_configs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,28 @@
/datum/greyscale_config/standalone_hood/worn/oldvox
icon_file = 'modular_skyrat/modules/GAGS/icons/head/head_oldvox.dmi'

// CATEAR HEADPHONES

/datum/greyscale_config/catear_headphone
name = "Cat-ear Headphones"
icon_file = 'modular_skyrat/modules/GAGS/icons/head/catear_headphone.dmi'
json_config = 'modular_skyrat/modules/GAGS/json_configs/head/catear_headphone/catear_headphone.json'

/datum/greyscale_config/catear_headphone/worn
name = "Cat-ear Headphones (Worn)"
icon_file = 'modular_skyrat/modules/GAGS/icons/head/catear_headphone.dmi'
json_config = 'modular_skyrat/modules/GAGS/json_configs/head/catear_headphone/catear_headphone_worn.json'

/datum/greyscale_config/catear_headphone_inhand_left
name = "Cat-ear Headphones (Inhand Left)"
icon_file = 'modular_skyrat/modules/GAGS/icons/head/catear_headphone_inhand.dmi'
json_config = 'modular_skyrat/modules/GAGS/json_configs/head/catear_headphone/catear_headphone_worn_inhand_left.json'

/datum/greyscale_config/catear_headphone_inhand_right
name = "Cat-ear Headphones (Inhand Right)"
icon_file = 'modular_skyrat/modules/GAGS/icons/head/catear_headphone_inhand.dmi'
json_config = 'modular_skyrat/modules/GAGS/json_configs/head/catear_headphone/catear_headphone_worn_inhand_right.json'

/*
* MASKS
*/
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"catear_headphone": [
{
"type": "icon_state",
"icon_state": "catearphones_obj_base",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_obj_lights",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}
],
"catear_headphone_on": [
{
"type": "icon_state",
"icon_state": "catearphones_obj_base",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_obj_lights",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}
],
"catear_headphone_tail": [
{
"type": "icon_state",
"icon_state": "catearphones_obj_base",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_obj_lights",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}
],
"catear_headphone_tail_on": [
{
"type": "icon_state",
"icon_state": "catearphones_obj_base",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_obj_lights",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"catear_headphone": [
{
"type": "icon_state",
"icon_state": "catearphones_base",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_off",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}
],
"catear_headphone_on":[
{
"type": "icon_state",
"icon_state": "catearphones_base",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_on",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}

],
"catear_headphone_tail": [
{
"type": "icon_state",
"icon_state": "catearphones_base",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_off",
"blend_mode": "overlay",
"color_ids": [ 2 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_tail_on",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}
],
"catear_headphone_tail_on": [
{
"type": "icon_state",
"icon_state": "catearphones_base",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_on",
"blend_mode": "overlay",
"color_ids": [ 2 ]
},
{
"type": "icon_state",
"icon_state": "catearphones_tail_on",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"catear_headphone": [
{
"type": "icon_state",
"icon_state": "catear_headphones_left",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catear_headphones_left_color",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}
],
"catear_headphone_on":[
{
"type": "icon_state",
"icon_state": "catear_headphones_left",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catear_headphones_left_color",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}

]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"catear_headphone": [
{
"type": "icon_state",
"icon_state": "catear_headphones_right",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catear_headphones_right_color",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}
],
"catear_headphone_on":[
{
"type": "icon_state",
"icon_state": "catear_headphones_right",
"blend_mode": "overlay",
"color_ids": [ 1 ]
},
{
"type": "icon_state",
"icon_state": "catear_headphones_right_color",
"blend_mode": "overlay",
"color_ids": [ 2 ]
}

]
}
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,47 @@
. = ..()
. += span_notice("<i>Etched underneath the handle is the following message:</i>\n")
. += span_smallnoticeital("\"I told you I would find a way to make it all easier.\" - A.H.")

/obj/item/instrument/piano_synth/headphones/catear_headphone
name = "Cat-Ear Headphones"
desc = "Merch of their Electric Guitarist Demi Galgan from the Singularity Shredders. It's heavily customizable and even comes with a holographic tail!"
icon_state = "catear_headphone"
worn_icon = 'modular_skyrat/modules/GAGS/icons/head/catear_headphone.dmi'
lefthand_file = 'modular_skyrat/modules/GAGS/icons/head/catear_headphone_inhand.dmi'
righthand_file = 'modular_skyrat/modules/GAGS/icons/head/catear_headphone_inhand.dmi'
inhand_icon_state = "catear_headphone"
slot_flags = ITEM_SLOT_EARS | ITEM_SLOT_HEAD | ITEM_SLOT_NECK
var/catTailToggled = FALSE
instrument_range = 1
greyscale_colors = "#FFFFFF#FFFFFF"
greyscale_config = /datum/greyscale_config/catear_headphone
greyscale_config_worn = /datum/greyscale_config/catear_headphone/worn
greyscale_config_inhand_left = /datum/greyscale_config/catear_headphone_inhand_left
greyscale_config_inhand_right = /datum/greyscale_config/catear_headphone_inhand_right
flags_1 = IS_PLAYER_COLORABLE_1


/obj/item/instrument/piano_synth/headphones/catear_headphone/Initialize(mapload)
. = ..()
AddElement(/datum/element/gags_recolorable)
update_icon(UPDATE_OVERLAYS)

/obj/item/instrument/piano_synth/headphones/catear_headphone/worn_overlays(mutable_appearance/standing, isinhands, icon_file)
. = ..()
if(!isinhands)
. += emissive_appearance('modular_skyrat/modules/GAGS/icons/head/catear_headphone.dmi', "catearphones_[song?.playing ? "on" : "off"]_emissive", src, alpha = src.alpha)
if(catTailToggled)
. += emissive_appearance('modular_skyrat/modules/GAGS/icons/head/catear_headphone.dmi', "catearphones_tail_on_emissive", src, alpha = src.alpha)
icon_state = "catear_headphone_tail[song?.playing ? "_on" : null]"
else
icon_state = "catear_headphone[song?.playing ? "_on" : null]"

/obj/item/instrument/piano_synth/headphones/catear_headphone/AltClick(mob/user)
. = ..()
catTailToggled = !catTailToggled
user.update_worn_head()
update_icon(UPDATE_OVERLAYS)

/obj/item/instrument/piano_synth/headphones/catear_headphone/update_overlays()
. = ..()
. += emissive_appearance('modular_skyrat/modules/GAGS/icons/head/catear_headphone.dmi', "catearphones_obj_lights_emissive", src, alpha = src.alpha)
Original file line number Diff line number Diff line change
Expand Up @@ -724,3 +724,8 @@
name = "Nobility Dresscoat"
item_path = /obj/item/clothing/suit/toggle/labcoat/medical/vic_dresscoat_donator
ckeywhitelist = list("nikotheguydude")

/datum/loadout_item/head/catear_headphone
name = "Cat-Ear Headphones"
item_path = /obj/item/instrument/piano_synth/headphones/catear_headphone
ckeywhitelist = list("dtfe")
Loading