Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZephyrTFA committed Sep 8, 2024
1 parent 2919319 commit ff67c8d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions code/modules/asset_cache/asset_list_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -178,18 +178,17 @@
/datum/asset/spritesheet/chat
name = "chat"

/datum/asset/spritesheet/chat/register()
InsertAll("emoji", 'icons/emoji.dmi')
/datum/asset/spritesheet/chat/create_spritesheets()
InsertAll("emoji", EMOJI_SET)
// pre-loading all lanugage icons also helps to avoid meta
InsertAll("language", 'icons/misc/language.dmi')
InsertAll("language", 'icons/ui/chat/language.dmi')
// catch languages which are pulling icons from another file
for(var/path in typesof(/datum/language))
var/datum/language/L = path
var/icon = initial(L.icon)
if (icon != 'icons/misc/language.dmi')
if (icon != 'icons/ui/chat/language.dmi')
var/icon_state = initial(L.icon_state)
Insert("language-[icon_state]", icon, icon_state=icon_state)
..()

/datum/asset/simple/lobby
assets = list(
Expand Down

0 comments on commit ff67c8d

Please sign in to comment.