mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
[MIRROR] NtOS Emojipedia - PDA Emoji Messaging For All [MDB IGNORE] (#17402)
* NtOS Emojipedia - PDA Emoji Messaging For All (#70829) An Emojipedia app has been added to tablets, given to Mimes and Curators by default, allowing anyone to know all emojis. Additionally, emojis can be used in tablets by every job now. * NtOS Emojipedia - PDA Emoji Messaging For All * update emoji list to be valid * animated emojis Co-authored-by: san7890 <the@san7890.com> Co-authored-by: tastyfish <crazychris32@gmail.com>
This commit is contained in:
co-authored by
san7890
tastyfish
parent
841bcd3b4b
commit
2582117684
@@ -0,0 +1,31 @@
|
||||
/// A tablet app that lets anyone see all the valid emoji they can send via a PDA message (and even OOC!)
|
||||
/datum/computer_file/program/emojipedia
|
||||
filename = "emojipedia"
|
||||
filedesc = "EmojiPedia"
|
||||
category = PROGRAM_CATEGORY_CREW // we want everyone to be able to access this application, since everyone can send emoji via PDA messages
|
||||
program_icon_state = "generic"
|
||||
extended_desc = "This program allows you to view all the emojis you can send via PDA messages."
|
||||
size = 3
|
||||
tgui_id = "NtosEmojipedia"
|
||||
program_icon = "icons"
|
||||
/// Store the list of potential emojis here.
|
||||
var/static/list/emoji_list = icon_states(icon(EMOJI_SET))
|
||||
|
||||
/datum/computer_file/program/emojipedia/New()
|
||||
. = ..()
|
||||
// Sort the emoji list so it's easier to find things and we don't have to keep sorting on ui_data since the number of emojis can not change in-game.
|
||||
emoji_list = sortTim(emoji_list, /proc/cmp_text_asc)
|
||||
|
||||
/datum/computer_file/program/emojipedia/ui_static_data(mob_user)
|
||||
var/list/data = get_header_data()
|
||||
for(var/emoji in emoji_list)
|
||||
data["emoji_list"] += list(list(
|
||||
"name" = emoji,
|
||||
))
|
||||
|
||||
return data
|
||||
|
||||
/datum/computer_file/program/emojipedia/ui_assets(mob/user)
|
||||
return list(
|
||||
get_asset_datum(/datum/asset/spritesheet/emojipedia),
|
||||
)
|
||||
Reference in New Issue
Block a user