mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-08 22:50:51 +01:00
a2007d007b
## About The Pull Request partial port of my fixups from https://github.com/Monkestation/Monkestation2.0/pull/11644 this refactors the byond member icon in OOC use the chat spritesheet, instead of `icon2html`. <img width="772" height="387" alt="2026-06-06 (1780794864) ~ dreamseeker" src="https://github.com/user-attachments/assets/9e4c0e3e-280f-4fda-b0ee-c78b8aa33e76" /> also as a result, this makes the byond member icon align better with the text and be slightly less crunchy. here's how it was before, for reference: <img width="293" height="32" alt="image" src="https://github.com/user-attachments/assets/15c8a78d-7752-4c07-a2d4-b4ceebc7f362" /> ## Why It's Good For The Game why did this use icon2html that's dumb. better performance i guess. and looks better on the eyes. ## Changelog 🆑 fix: Made the BYOND member OOC icon better aligned to the text. /🆑
18 lines
753 B
Plaintext
18 lines
753 B
Plaintext
/datum/asset/spritesheet_batched/chat
|
|
name = "chat"
|
|
|
|
/datum/asset/spritesheet_batched/chat/create_spritesheets()
|
|
insert_all_icons("emoji", EMOJI_SET)
|
|
// pre-loading all lanugage icons also helps to avoid meta
|
|
insert_all_icons("language", 'icons/ui/chat/language.dmi')
|
|
// catch languages which are pulling icons from another file
|
|
for(var/datum/language/L as anything in subtypesof(/datum/language))
|
|
var/icon = initial(L.icon)
|
|
if (icon != 'icons/ui/chat/language.dmi')
|
|
var/icon_state = initial(L.icon_state)
|
|
insert_icon("language-[icon_state]", uni_icon(icon, icon_state))
|
|
|
|
var/datum/universal_icon/byond_member = uni_icon('icons/ui/chat/member_content.dmi', "blag")
|
|
byond_member.scale(16, 16)
|
|
insert_icon("byond_member", byond_member)
|