Files
Bubberstation/code/game/objects/effects/info.dm
Jared-Fogle e4edb06fb8 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.
2020-12-21 10:28:21 +13:00

27 lines
600 B
Plaintext

/// 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)