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

The whole beanery (Bean Button) #190

Merged
merged 1 commit into from
Dec 31, 2024
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
1 change: 1 addition & 0 deletions code/_onclick/hud/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ GLOBAL_LIST_INIT(available_ui_styles, list(
var/atom/movable/screen/claw_hud_button
var/atom/movable/screen/tail_hud_button
var/atom/movable/screen/cuphand_hud_button
var/atom/movable/screen/beans_hud_button
var/atom/movable/screen/tend_hud_button
var/atom/movable/screen/butt_hud_button

Expand Down
4 changes: 4 additions & 0 deletions code/_onclick/hud/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,10 @@
cuphand_hud_button.hud = src
infodisplay += cuphand_hud_button

beans_hud_button = new /atom/movable/screen/beans_hud_button()
beans_hud_button.hud = src
infodisplay += beans_hud_button

tend_hud_button = new /atom/movable/screen/tend_hud_button()
tend_hud_button.hud = src
infodisplay += tend_hud_button
Expand Down
17 changes: 16 additions & 1 deletion code/_onclick/hud/screen_objects/character_actions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
name = "cuphand on people!"
icon = 'icons/mob/screen_gen.dmi'
icon_state = "cuphand"
screen_loc = "EAST-1:4, SOUTH+4:12"
screen_loc = "EAST-1:4, SOUTH+4: 8"

/atom/movable/screen/cuphand_hud_button/Click(location,control,params)
var/mob/living/carbon/human/H = usr
Expand All @@ -502,6 +502,21 @@
return
H.emote("cuphand")

////////////////////////////////////////////////////////////
/// Beans button
/atom/movable/screen/beans_hud_button
name = "bean on people!"
icon = 'icons/mob/screen_gen.dmi'
icon_state = "beans"
screen_loc = "EAST-2:4, SOUTH+4:12"

/atom/movable/screen/beans_hud_button/Click(location,control,params)
var/mob/living/carbon/human/H = usr
if(!ishuman(usr))
to_chat(usr, span_alert("Sorry! You've gotta be a fully spawned in character with hopes and dreams to use this!"))
return
H.emote("beans")

////////////////////////////////////////////////////////////
/// Tend button
/atom/movable/screen/tend_hud_button
Expand Down
Binary file modified icons/mob/screen_gen.dmi
Binary file not shown.
Loading