mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Rerolling blob strains now uses a radial menu, and lets you see what the strain does before picking it (#55559)
Also provides a generic, forward proof way to provide information to radial menu choices.
Why It's Good For The Game
input is old and crummy.
Blob is a very wiki reliant mechanic. This moves a bit of it into the game itself to fix that.
Provides a real cancel option, whereas the old one had none. This is not a balance change, but a QoL one--everyone just moved the input window off to the side.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/// An info button that, when clicked, puts some text in the user's chat
|
||||
/obj/effect/abstract/info
|
||||
name = "info"
|
||||
icon = 'icons/effects/effects.dmi'
|
||||
icon_state = "info"
|
||||
|
||||
/// What should the info button display when clicked?
|
||||
var/info_text
|
||||
|
||||
/obj/effect/abstract/info/Initialize(mapload, info_text)
|
||||
. = ..()
|
||||
|
||||
if (!isnull(info_text))
|
||||
src.info_text = info_text
|
||||
|
||||
/obj/effect/abstract/info/Click()
|
||||
. = ..()
|
||||
to_chat(usr, info_text)
|
||||
|
||||
/obj/effect/abstract/info/MouseEntered()
|
||||
. = ..()
|
||||
icon_state = "info_hovered"
|
||||
|
||||
/obj/effect/abstract/info/MouseExited()
|
||||
. = ..()
|
||||
icon_state = initial(icon_state)
|
||||
Reference in New Issue
Block a user