forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from DopplerShift13/portz
ports the TTS Device, now known as the AAC Device
- Loading branch information
Showing
10 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
modular_doppler/modular_cosmetics/GAGS/greyscale_configs_objects.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
/> フ meow! this dm file contains greyscale configs for non-clothing items. | ||
| _ _| / | ||
/` ミ_xノ | ||
/ | | ||
/ ヽ ノ | ||
│ | | | | ||
/ ̄| | | | | ||
( ̄ヽ__ヽ_)__)_) | ||
\二) | ||
*/ | ||
|
||
/datum/greyscale_config/aac_device | ||
name = "AAC Device" | ||
icon_file = 'modular_doppler/modular_cosmetics/GAGS/icons/obj/devices.dmi' | ||
json_config = 'modular_doppler/modular_cosmetics/GAGS/json_configs/objects/aac_device.json' |
Binary file not shown.
16 changes: 16 additions & 0 deletions
16
modular_doppler/modular_cosmetics/GAGS/json_configs/objects/aac_device.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"aac_device": [ | ||
{ | ||
"type": "icon_state", | ||
"icon_state": "aac_device_body", | ||
"blend_mode": "overlay", | ||
"color_ids": [ 1 ] | ||
}, | ||
{ | ||
"type": "icon_state", | ||
"icon_state": "aac_device_screen", | ||
"blend_mode": "overlay", | ||
"color_ids": [ 2 ] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//this is the tts device as seen on other codebases, renamed and reflavored to reflect its real world counterpart. | ||
/obj/item/aac_device | ||
name = "AAC device" | ||
desc = "An Augmented and Alternative Communication device designed to facilitate oral communication \ | ||
for people with communicative disabilities." | ||
icon = 'modular_doppler/modular_cosmetics/GAGS/icons/obj/devices.dmi' | ||
icon_state = "aac_device" | ||
w_class = WEIGHT_CLASS_SMALL | ||
obj_flags = UNIQUE_RENAME | ||
flags_1 = IS_PLAYER_COLORABLE_1 | ||
greyscale_config = /datum/greyscale_config/aac_device | ||
greyscale_colors = "#FFFFFF#FFFFFF" | ||
|
||
/obj/item/aac_device/attack_self(mob/user) | ||
user.balloon_alert_to_viewers("typing...", "started typing...") | ||
playsound(src, 'modular_doppler/modular_items/sounds/aac_started_type.ogg', 50, TRUE) | ||
var/str = tgui_input_text(user, "What would you like the device to say?", "Say Text", "", MAX_MESSAGE_LEN, encode = FALSE) | ||
if(!str) | ||
user.balloon_alert_to_viewers("stops typing", "stopped typing") | ||
playsound(src, 'modular_doppler/modular_items/sounds/aac_stopped_type.ogg', 50, TRUE) | ||
return | ||
src.say(str) | ||
//SEND_SIGNAL((src), COMSIG_MOB_POST_SAY, (str), null, null) ostensibly this would call the user's dopperboops, but it doesn't work :3c | ||
str = null | ||
|
||
/obj/item/aac_device/item_ctrl_click(mob/user) | ||
var/new_name = reject_bad_name(tgui_input_text(user, "Name your Augmented and Alternative Communication device.", "Set AAC Device Name", "", MAX_NAME_LEN)) | ||
if(new_name) | ||
name = "[new_name]'s [initial(name)]" | ||
else | ||
name = initial(name) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/obj/machinery/vending/medical | ||
products_doppler = list( | ||
/obj/item/aac_device = 5, | ||
/obj/item/clothing/gloves/radio = 5, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters