|
| 1 | +//* This file is explicitly licensed under the MIT license. *// |
| 2 | +//* Copyright (c) 2025 Citadel Station Developers *// |
| 3 | + |
| 4 | +GLOBAL_LIST_INIT(status_emojis, init_status_emojis()) |
| 5 | + |
| 6 | +/proc/init_status_emojis() |
| 7 | + . = list() |
| 8 | + for(var/datum/status_emoji/path as anything in subtypesof(/datum/status_emoji)) |
| 9 | + if(path.abstract_type == path) |
| 10 | + continue |
| 11 | + . += new path |
| 12 | + // quack. duck typing to the rescue (and chagrin of whoever has to fix this 2 years later) |
| 13 | + tim_sort(., /proc/cmp_name_asc) |
| 14 | + |
| 15 | +/** |
| 16 | + * A status emoji to be flicked by mobs, primarily. |
| 17 | + * * That said, this contains alignment data that can be used to align it to any atom, so... |
| 18 | + * * Icon states are assumed to be aligned to top right of the icon size. Provide alignment offsets if needed. |
| 19 | + */ |
| 20 | +/datum/status_emoji |
| 21 | + abstract_type = /datum/status_emoji |
| 22 | + var/name |
| 23 | + var/icon = 'icons/screen/status_emojis.dmi' |
| 24 | + var/icon_state |
| 25 | + |
| 26 | + var/icon_size_x = 32 |
| 27 | + var/icon_size_y = 32 |
| 28 | + |
| 29 | + var/shift_x = 0 |
| 30 | + var/shift_y = 0 |
| 31 | + |
| 32 | +/datum/status_emoji/annoyed |
| 33 | + name = "Annoyed" |
| 34 | + icon_state = "annoyed" |
| 35 | + |
| 36 | +/datum/status_emoji/berserk |
| 37 | + name = "Berserk" |
| 38 | + icon_state = "berserk" |
| 39 | + |
| 40 | +/datum/status_emoji/confused |
| 41 | + name = "Confused" |
| 42 | + icon_state = "confused" |
| 43 | + |
| 44 | +/datum/status_emoji/depression |
| 45 | + name = "Depression" |
| 46 | + icon_state = "depression" |
| 47 | + shift_y = 3 |
| 48 | + |
| 49 | +/datum/status_emoji/frustration |
| 50 | + name = "Frustration" |
| 51 | + icon_state = "frustration" |
| 52 | + |
| 53 | +/datum/status_emoji/joyous |
| 54 | + name = "Joyous" |
| 55 | + icon_state = "joyous" |
| 56 | + |
| 57 | +/datum/status_emoji/panic |
| 58 | + name = "Panic" |
| 59 | + icon_state = "panic" |
| 60 | + |
| 61 | +/datum/status_emoji/tired |
| 62 | + name = "Tired" |
| 63 | + icon_state = "tired" |
0 commit comments