Families wanted stars now only show up when you are involved in it, and announcements for wanted level changes (#50283)
* Wanted level stuff * fuck * Update code/game/gamemodes/gang/gang.dm Co-Authored-By: Rohesie <rohesie@gmail.com> * Update code/_onclick/hud/families.dm Co-Authored-By: Rohesie <rohesie@gmail.com> * Update code/game/gamemodes/gang/gang.dm Co-Authored-By: Rohesie <rohesie@gmail.com> * Update code/modules/antagonists/gang/gang.dm Co-Authored-By: Rohesie <rohesie@gmail.com> * Update code/modules/antagonists/ert/ert.dm Co-Authored-By: Rohesie <rohesie@gmail.com> Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/obj/screen/wanted
|
||||
name = "Space Police Alertness"
|
||||
desc = "Shows the current level of hostility the space police is planning to rain down on you. Better be careful."
|
||||
icon = 'icons/obj/gang/wanted_160x32.dmi'
|
||||
icon_state = "wanted_0"
|
||||
screen_loc = ui_wanted_lvl
|
||||
///Wanted level, affects the hud icon.
|
||||
var/level
|
||||
///Boolean, have the cops arrived? If so, the icon stops changing and remains the same.
|
||||
var/cops_arrived
|
||||
|
||||
/obj/screen/wanted/Initialize()
|
||||
. = ..()
|
||||
var/datum/game_mode/gang/F = SSticker.mode
|
||||
level = F.wanted_level
|
||||
cops_arrived = F.cops_arrived
|
||||
update_icon()
|
||||
|
||||
/obj/screen/wanted/MouseEntered(location,control,params)
|
||||
openToolTip(usr,src,params,title = name,content = desc, theme = "alerttooltipstyle")
|
||||
|
||||
/obj/screen/wanted/MouseExited()
|
||||
closeToolTip(usr)
|
||||
|
||||
/obj/screen/wanted/update_icon_state()
|
||||
. = ..()
|
||||
icon_state = "wanted_[level][cops_arrived ? "_active" : ""]"
|
||||
@@ -81,11 +81,7 @@ GLOBAL_LIST_INIT(available_ui_styles, list(
|
||||
plane_masters["[instance.plane]"] = instance
|
||||
instance.backdrop(mymob)
|
||||
|
||||
wanted_lvl = new /obj/screen()
|
||||
wanted_lvl.icon = 'icons/obj/gang/wanted_160x32.dmi'
|
||||
wanted_lvl.icon_state = "wanted_0"
|
||||
wanted_lvl.screen_loc = ui_wanted_lvl
|
||||
infodisplay += wanted_lvl
|
||||
owner.overlay_fullscreen("see_through_darkness", /obj/screen/fullscreen/see_through_darkness)
|
||||
|
||||
|
||||
/datum/hud/Destroy()
|
||||
|
||||
Reference in New Issue
Block a user