Skip to content

Commit

Permalink
Merge pull request #190 from ARF-SS13/123124a
Browse files Browse the repository at this point in the history
The whole beanery (Bean Button)
  • Loading branch information
Tk420634 authored Dec 31, 2024
2 parents 425b876 + 805379a commit 57fbda8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
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.

0 comments on commit 57fbda8

Please sign in to comment.