Skip to content

Commit

Permalink
Adds a HUD button to access the Spawners Menu for ghosts (#11091)
Browse files Browse the repository at this point in the history
* Added the button (and also fixed the swarmer spawner text)

Added a button for observers to check out the spawners menu directly from the hud, including the spirte.

While I was at it, I fixed the weird placement of the language button for ghosts and the swarmer description in the swarmers menu (it didn't have any).

* Slight grammar change
  • Loading branch information
Gilgaxx authored Jun 20, 2024
1 parent c25e651 commit e4dd8be
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
10 changes: 6 additions & 4 deletions code/_onclick/hud/_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,13 @@

//Ghosts

#define ui_ghost_jumptomob "SOUTH:6,CENTER-2:24"
#define ui_ghost_orbit "SOUTH:6,CENTER-1:24"
#define ui_ghost_reenter_corpse "SOUTH:6,CENTER:24"
#define ui_ghost_teleport "SOUTH:6,CENTER+1:24"
#define ui_ghost_jumptomob "SOUTH:6,CENTER-3:24"
#define ui_ghost_orbit "SOUTH:6,CENTER-2:24"
#define ui_ghost_reenter_corpse "SOUTH:6,CENTER-1:24"
#define ui_ghost_teleport "SOUTH:6,CENTER:24"
#define ui_ghost_spawners_menu "SOUTH:6,CENTER+1:24"
#define ui_ghost_pai "SOUTH: 6, CENTER+2:24"
#define ui_ghost_language_menu "SOUTH:21, CENTER+3:7"

//Team finder

Expand Down
14 changes: 14 additions & 0 deletions code/_onclick/hud/ghost.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@
var/mob/dead/observer/G = usr
G.register_pai()

/atom/movable/screen/ghost/spawners_menu
name = "Spawners Menu"
icon_state = "spawners_menu"

/atom/movable/screen/ghost/spawners_menu/Click()
var/mob/dead/observer/G = usr
G.open_spawners_menu()

/datum/hud/ghost/New(mob/owner)
..()
var/atom/movable/screen/using
Expand Down Expand Up @@ -73,8 +81,14 @@
using.hud = src
static_inventory += using

using = new /atom/movable/screen/ghost/spawners_menu()
using.screen_loc = ui_ghost_spawners_menu
using.hud = src
static_inventory += using

using = new /atom/movable/screen/language_menu
using.icon = ui_style
using.screen_loc = ui_ghost_language_menu
using.hud = src
static_inventory += using

Expand Down
2 changes: 2 additions & 0 deletions code/modules/antagonists/swarmer/swarmer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
desc = "A currently unactivated swarmer. Swarmers can self activate at any time, it would be wise to immediately dispose of this."
icon = 'icons/mob/swarmer.dmi'
icon_state = "swarmer_unactivated"
short_desc = "You are a swarmer!"
flavour_text = "Consume resources and replicate until there are no more resources left. Ensure that this location is fit for invasion at a later date; do not perform actions that would render it dangerous or inhospitable. Biological resources will be harvested at a later date; do not harm them."
density = FALSE
anchored = FALSE

Expand Down
Binary file modified icons/mob/screen_ghost.dmi
Binary file not shown.

0 comments on commit e4dd8be

Please sign in to comment.