Files
Bubberstation/code/modules/tutorials/tutorial_skip.dm
MrMelbert 7e55bba4fb Hud elements and certain in-world objects will now change your cursor to indicate they are clickable (windows style) (#88470)
## About The Pull Request

Basically just goes through and adds `mouse_over_pointer =
MOUSE_HAND_POINTER` to a bunch of screen elements (player hud and lobby
menu)

Also adds it to very small wall mounted objects like buttons, fire
alarms, and light switches


https://github.com/user-attachments/assets/c501cd3d-8efd-4fd0-a486-a53f2102a2cb


https://github.com/user-attachments/assets/89f7cdcb-b40c-4ef3-b578-fee66ddf1ce2

## Why It's Good For The Game

- Makes interacting with screen elements a bit more tactile
- Makes it a bit easier to click on tiny buttons and such (being able to
know when you're actually hovering the thing)
- Maybe can be expanded to more world objects to indicate they are
clickable vs non-interactable?

## Changelog

🆑 Melbert
qol: Hovering over clickable screen elements will now update your mouse
cursor to indicate they're clickable
qol: Hovering over small wall mounts (light switches, buttons, fire
alarms) will now update to mouse cursor indicating you're hovering them
/🆑
2024-12-12 19:32:33 +01:00

37 lines
1.2 KiB
Plaintext

/atom/movable/screen/tutorial_skip
icon = 'icons/effects/alphacolors.dmi'
icon_state = "white"
screen_loc = "TOP,LEFT"
color = COLOR_NEARLY_ALL_BLACK
alpha = 0
mouse_opacity = MOUSE_OPACITY_OPAQUE
layer = TUTORIAL_INSTRUCTIONS_LAYER
mouse_over_pointer = MOUSE_HAND_POINTER
var/atom/movable/screen/tutorial_skip_text/skip_text
/atom/movable/screen/tutorial_skip/Initialize(mapload, datum/hud/hud_owner)
. = ..()
transform = transform.Scale(9, 1)
skip_text = new(null, hud_owner)
vis_contents += skip_text
maptext = MAPTEXT_VCR_OSD_MONO("<span style='font-size: 10px; text-align: left'>Remind me later</span>")
animate(src, alpha = 245, time = 0.8 SECONDS, easing = SINE_EASING)
/atom/movable/screen/tutorial_skip/Destroy()
QDEL_NULL(skip_text)
return ..()
/atom/movable/screen/tutorial_skip_text
alpha = 0
layer = TUTORIAL_INSTRUCTIONS_LAYER
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
maptext_height = 32
maptext_width = 200
maptext_x = 20
maptext_y = 9
/atom/movable/screen/tutorial_skip_text/Initialize(mapload, datum/hud/hud_owner)
. = ..()
var/newtext = MAPTEXT_VCR_OSD_MONO("<span style='font-size: 10px; text-align: left'>Remind me later</span>")
animate(src, alpha = 255, time = 0.5 SECONDS, maptext=newtext)