mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #14536 from Heroman3003/protean
Makes speech bubbles manually selectable, adds a whole bunch of new ones
This commit is contained in:
@@ -946,6 +946,26 @@ var/global/list/event_wildlife_roaming = list(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
var/global/list/selectable_speech_bubbles = list(
|
||||||
|
"default",
|
||||||
|
"normal",
|
||||||
|
"slime",
|
||||||
|
"comm",
|
||||||
|
"machine",
|
||||||
|
"synthetic",
|
||||||
|
"synthetic_evil",
|
||||||
|
"cyber",
|
||||||
|
"ghost",
|
||||||
|
"slime_green",
|
||||||
|
"dark",
|
||||||
|
"plant",
|
||||||
|
"clown",
|
||||||
|
"fox",
|
||||||
|
"maus",
|
||||||
|
"heart",
|
||||||
|
"textbox",
|
||||||
|
"posessed")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// AREA GENERATION AND BLUEPRINT STUFF BELOW HERE
|
// AREA GENERATION AND BLUEPRINT STUFF BELOW HERE
|
||||||
|
|||||||
@@ -59,8 +59,11 @@
|
|||||||
loc.cut_overlay(typing_indicator, TRUE)
|
loc.cut_overlay(typing_indicator, TRUE)
|
||||||
return
|
return
|
||||||
|
|
||||||
if(!typing_indicator)
|
var/cur_bubble_appearance = custom_speech_bubble
|
||||||
init_typing_indicator("[speech_bubble_appearance()]_typing")
|
if(!cur_bubble_appearance || cur_bubble_appearance == "default")
|
||||||
|
cur_bubble_appearance = speech_bubble_appearance()
|
||||||
|
if(!typing_indicator || cur_typing_indicator != cur_bubble_appearance)
|
||||||
|
init_typing_indicator("[cur_bubble_appearance]_typing")
|
||||||
|
|
||||||
if(state && !typing)
|
if(state && !typing)
|
||||||
loc.add_overlay(typing_indicator, TRUE)
|
loc.add_overlay(typing_indicator, TRUE)
|
||||||
|
|||||||
@@ -191,3 +191,12 @@
|
|||||||
if (visible)
|
if (visible)
|
||||||
visible_message("<b>\The [src]</b> shifts and contorts, taking the form of \a [new_species]!")
|
visible_message("<b>\The [src]</b> shifts and contorts, taking the form of \a [new_species]!")
|
||||||
regenerate_icons()
|
regenerate_icons()
|
||||||
|
|
||||||
|
/mob/verb/select_speech_bubble()
|
||||||
|
set name = "Select Speech Bubble"
|
||||||
|
set category = "OOC"
|
||||||
|
|
||||||
|
var/new_speech_bubble = tgui_input_list(src, "Pick new voice!", "Character Preference", selectable_speech_bubbles)
|
||||||
|
if(new_speech_bubble)
|
||||||
|
to_chat(src, "<span class='notice'>Your voice changes.</span>")
|
||||||
|
custom_speech_bubble = new_speech_bubble
|
||||||
@@ -341,7 +341,9 @@ var/list/channel_to_radio_key = new
|
|||||||
//The 'post-say' static speech bubble
|
//The 'post-say' static speech bubble
|
||||||
var/speech_bubble_test = say_test(message)
|
var/speech_bubble_test = say_test(message)
|
||||||
//var/image/speech_bubble = image('icons/mob/talk_vr.dmi',src,"h[speech_bubble_test]") //VOREStation Edit. Commented this out in case we need to reenable.
|
//var/image/speech_bubble = image('icons/mob/talk_vr.dmi',src,"h[speech_bubble_test]") //VOREStation Edit. Commented this out in case we need to reenable.
|
||||||
var/speech_type = speech_bubble_appearance()
|
var/speech_type = custom_speech_bubble
|
||||||
|
if(!speech_type || speech_type == "default")
|
||||||
|
speech_type = speech_bubble_appearance()
|
||||||
var/image/speech_bubble = generate_speech_bubble(src, "[speech_type][speech_bubble_test]")
|
var/image/speech_bubble = generate_speech_bubble(src, "[speech_type][speech_bubble_test]")
|
||||||
var/sb_alpha = 255
|
var/sb_alpha = 255
|
||||||
var/atom/loc_before_turf = src
|
var/atom/loc_before_turf = src
|
||||||
|
|||||||
@@ -109,7 +109,9 @@
|
|||||||
if(comm)
|
if(comm)
|
||||||
var/speech_bubble_test = say_test(message)
|
var/speech_bubble_test = say_test(message)
|
||||||
//var/image/speech_bubble = image('icons/mob/talk_vr.dmi',comm,"h[speech_bubble_test]") //VOREStation Edit - Commented out in case of needed reenable.
|
//var/image/speech_bubble = image('icons/mob/talk_vr.dmi',comm,"h[speech_bubble_test]") //VOREStation Edit - Commented out in case of needed reenable.
|
||||||
var/speech_type = speech_bubble_appearance()
|
var/speech_type = custom_speech_bubble
|
||||||
|
if(!speech_type || speech_type == "default")
|
||||||
|
speech_type = speech_bubble_appearance()
|
||||||
var/image/speech_bubble = generate_speech_bubble(comm, "[speech_type][speech_bubble_test]")
|
var/image/speech_bubble = generate_speech_bubble(comm, "[speech_type][speech_bubble_test]")
|
||||||
spawn(30)
|
spawn(30)
|
||||||
qdel(speech_bubble)
|
qdel(speech_bubble)
|
||||||
|
|||||||
@@ -218,6 +218,8 @@
|
|||||||
|
|
||||||
var/typing
|
var/typing
|
||||||
var/obj/effect/decal/typing_indicator
|
var/obj/effect/decal/typing_indicator
|
||||||
|
var/cur_typing_indicator
|
||||||
|
var/custom_speech_bubble = "default"
|
||||||
|
|
||||||
var/low_priority = FALSE //Skip processing life() if there's just no players on this Z-level
|
var/low_priority = FALSE //Skip processing life() if there's just no players on this Z-level
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
return I
|
return I
|
||||||
|
|
||||||
/mob/proc/init_typing_indicator(var/set_state = "typing")
|
/mob/proc/init_typing_indicator(var/set_state = "typing")
|
||||||
|
if(typing_indicator)
|
||||||
|
qdel(typing_indicator)
|
||||||
|
typing_indicator = null
|
||||||
typing_indicator = new
|
typing_indicator = new
|
||||||
typing_indicator.appearance = generate_speech_bubble(null, set_state)
|
typing_indicator.appearance = generate_speech_bubble(null, set_state)
|
||||||
typing_indicator.appearance_flags |= (RESET_COLOR|PIXEL_SCALE) //VOREStation Edit
|
typing_indicator.appearance_flags |= (RESET_COLOR|PIXEL_SCALE) //VOREStation Edit
|
||||||
@@ -23,8 +26,11 @@
|
|||||||
cut_overlay(typing_indicator, TRUE)
|
cut_overlay(typing_indicator, TRUE)
|
||||||
return
|
return
|
||||||
|
|
||||||
if(!typing_indicator)
|
var/cur_bubble_appearance = custom_speech_bubble
|
||||||
init_typing_indicator("[speech_bubble_appearance()]_typing")
|
if(!cur_bubble_appearance || cur_bubble_appearance == "default")
|
||||||
|
cur_bubble_appearance = speech_bubble_appearance()
|
||||||
|
if(!typing_indicator || cur_typing_indicator != cur_bubble_appearance)
|
||||||
|
init_typing_indicator("[cur_bubble_appearance]_typing")
|
||||||
|
|
||||||
if(state && !typing)
|
if(state && !typing)
|
||||||
add_overlay(typing_indicator, TRUE)
|
add_overlay(typing_indicator, TRUE)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 6.4 KiB |
Reference in New Issue
Block a user