mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 20:11:56 +00:00
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.
27 lines
600 B
Plaintext
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)
|