mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 14:08:44 +01:00
allow vorebelly display names (#18314)
* allow vorebelly display names * move lowertext * . * . * . * , * . * example implementation * . * . * absorbed * . * . * . * . * also fix that * useRef * key it * . * fix those too
This commit is contained in:
@@ -23,6 +23,12 @@
|
||||
|
||||
host.vore_selected.name = new_name
|
||||
. = TRUE
|
||||
if("b_display_name")
|
||||
var/new_name = html_encode(params["val"])
|
||||
if(length(new_name) > BELLIES_NAME_MAX)
|
||||
return FALSE
|
||||
host.vore_selected.display_name = new_name
|
||||
. = TRUE
|
||||
if("b_message_mode")
|
||||
host.vore_selected.message_mode = !host.vore_selected.message_mode
|
||||
. = TRUE
|
||||
@@ -523,6 +529,12 @@
|
||||
if("b_display_absorbed_examine")
|
||||
host.vore_selected.display_absorbed_examine = !host.vore_selected.display_absorbed_examine
|
||||
. = TRUE
|
||||
if("b_display_outside_struggle")
|
||||
host.vore_selected.toggle_displayed_message_flags(MS_FLAG_STRUGGLE_OUTSIDE)
|
||||
. = TRUE
|
||||
if("b_display_absorbed_outside_struggle")
|
||||
host.vore_selected.toggle_displayed_message_flags(MS_FLAG_STRUGGLE_ABSORBED_OUTSIDE)
|
||||
. = TRUE
|
||||
if("b_grow_shrink")
|
||||
var/new_grow = text2num(params["val"])
|
||||
if (!isnum(new_grow))
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
var/list/belly_data = list()
|
||||
belly_data += list(
|
||||
"name" = B.name,
|
||||
"display_name" = B.display_name,
|
||||
"ref" = "\ref[B]"
|
||||
)
|
||||
if(full_data)
|
||||
@@ -97,7 +98,10 @@
|
||||
var/list/selected_list = null
|
||||
if(owner.vore_selected)
|
||||
var/obj/belly/selected = owner.vore_selected
|
||||
selected_list = list("belly_name" = selected.name)
|
||||
selected_list = list(
|
||||
"belly_name" = selected.name,
|
||||
"display_name" = selected.display_name
|
||||
)
|
||||
if(active_vore_tab == CONTROL_TAB)
|
||||
var/list/addons = list()
|
||||
for(var/flag_name in selected.mode_flag_list)
|
||||
@@ -108,8 +112,8 @@
|
||||
"addons" = addons,
|
||||
"name_length" = BELLIES_NAME_MAX,
|
||||
"name_min" = BELLIES_NAME_MIN,
|
||||
"mode_options" = host.vore_selected.digest_modes,
|
||||
"item_mode_options" = host.vore_selected.item_digest_modes,
|
||||
"mode_options" = selected.digest_modes,
|
||||
"item_mode_options" = selected.item_digest_modes,
|
||||
|
||||
)
|
||||
selected_list["belly_mode_data"] = belly_mode_data
|
||||
|
||||
@@ -63,13 +63,13 @@
|
||||
tab_data["max_length"] = BELLIES_EXAMINE_MAX
|
||||
tab_data["active_message"] = selected.examine_messages
|
||||
tab_data["set_action"] = EXAMINES
|
||||
tab_data["tooltip"] = "Displayed to nearby players during examination when the vorgan is full."
|
||||
tab_data["tooltip"] = "Displayed to nearby players during examination when the vorgan is full. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == WITH_ABSORBED_PREY)
|
||||
tab_data["max_length"] = BELLIES_EXAMINE_MAX
|
||||
tab_data["active_message"] = selected.examine_messages_absorbed
|
||||
tab_data["set_action"] = EXAMINES_ABSORBED
|
||||
tab_data["tooltip"] = "Displayed to nearby players during examination when the vorgan contains absorbed prey."
|
||||
tab_data["tooltip"] = "Displayed to nearby players during examination when the vorgan contains absorbed prey. (All fields can be empty)"
|
||||
tab_data["button_label"] = "Display Absorbed Examine"
|
||||
tab_data["button_action"] = "b_display_absorbed_examine"
|
||||
tab_data["button_data"] = selected.display_absorbed_examine
|
||||
@@ -110,6 +110,10 @@
|
||||
tab_data["active_message"] = selected.struggle_messages_outside
|
||||
tab_data["set_action"] = STRUGGLE_OUTSIDE
|
||||
tab_data["tooltip"] = "Displayed to nearby players when your prey resists."
|
||||
tab_data["button_label"] = "Display Outside Struggle"
|
||||
tab_data["button_action"] = "b_display_outside_struggle"
|
||||
tab_data["button_data"] = selected.displayed_message_flags & MS_FLAG_STRUGGLE_OUTSIDE
|
||||
tab_data["button_tooltip"] = "the struggle messages to the outside." // those will automatically be preceeded by Enables / Disables!
|
||||
return tab_data
|
||||
if(selected_message == INSIDE_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_MESSAGE_MAX
|
||||
@@ -125,7 +129,11 @@
|
||||
tab_data["max_length"] = BELLIES_MESSAGE_MAX
|
||||
tab_data["active_message"] = selected.absorbed_struggle_messages_outside
|
||||
tab_data["set_action"] = ABSORBED_STRUGGLE_OUSIDE
|
||||
tab_data["tooltip"] = "Displayed to nearby players when your absorb prey resists."
|
||||
tab_data["tooltip"] = "Displayed to nearby players when your absorbed prey resists."
|
||||
tab_data["button_label"] = "Display Absorbed Outside Struggle"
|
||||
tab_data["button_action"] = "b_display_absorbed_outside_struggle"
|
||||
tab_data["button_data"] = selected.displayed_message_flags & MS_FLAG_STRUGGLE_ABSORBED_OUTSIDE
|
||||
tab_data["button_tooltip"] = "the absrobed struggle messages to the outside." // those will automatically be preceeded by Enables / Disables!
|
||||
return tab_data
|
||||
if(selected_message == INSIDE_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_MESSAGE_MAX
|
||||
@@ -495,67 +503,67 @@
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_DIGEST])
|
||||
tab_data["set_action"] = BELLY_MODE_DIGEST
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting digested."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting digested. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == HOLD_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_HOLD])
|
||||
tab_data["set_action"] = BELLY_MODE_HOLD
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is being held."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is being held. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == HOLDABSORBED_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_HOLD_ABSORBED])
|
||||
tab_data["set_action"] = BELLY_MODE_HOLD_ABSORB
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your absorbed prey is being held."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your absorbed prey is being held. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == ABSORB_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_ABSORB])
|
||||
tab_data["set_action"] = BELLY_MODE_ABSORB
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting absorbed."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting absorbed. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == HEAL_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_HEAL])
|
||||
tab_data["set_action"] = BELLY_MODE_HEAL
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting healed."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting healed. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == DRAIN_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_DRAIN])
|
||||
tab_data["set_action"] = BELLY_MODE_DRAIN
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting drained."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting drained. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == STEAL_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_SIZE_STEAL])
|
||||
tab_data["set_action"] = BELLY_MODE_STEAL
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey's size is stolen."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey's size is stolen. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == EGG_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_EGG])
|
||||
tab_data["set_action"] = BELLY_MODE_EGG
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting getting encased in an egg."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting getting encased in an egg. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == SHRINK_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_SHRINK])
|
||||
tab_data["set_action"] = BELLY_MODE_SHRINK
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting shrunk."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting shrunk. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == GROW_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_GROW])
|
||||
tab_data["set_action"] = BELLY_MODE_GROW
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting grown."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting grown. (All fields can be empty)"
|
||||
return tab_data
|
||||
if(selected_message == UNABSORB_MESSAGE)
|
||||
tab_data["max_length"] = BELLIES_IDLE_MAX
|
||||
tab_data["active_message"] = SANITIZE_LIST(selected.emote_lists[DM_UNABSORB])
|
||||
tab_data["set_action"] = BELLY_MODE_UNABSORB
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting unabsorbed."
|
||||
tab_data["tooltip"] = "Cyclic idle messages while your prey is getting unabsorbed. (All fields can be empty)"
|
||||
return tab_data
|
||||
|
||||
if(message_option == VPANEL_LIQUIDS_TAB)
|
||||
|
||||
Reference in New Issue
Block a user