forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define MODPACK_CHAT_BADGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/datum/modpack/chat_badges | ||
name = "Chat badges" | ||
desc = "Добавляет иконки в OOC для различных ролей" | ||
author = "furior" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "_chat_badges.dm" | ||
|
||
#include "code/badges.dm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#define CHAT_BADGES_DMI 'modular_ss220/chat_badges/icons/chatbadges.dmi' | ||
|
||
/client/proc/get_ooc_badged_name() | ||
. = key | ||
if(donator_level && (prefs.toggles & PREFTOGGLE_DONATOR_PUBLIC)) | ||
var/icon/doantor = icon(CHAT_BADGES_DMI, donator_level > 3 ? "Trusted" : "Paradise") | ||
. = "[bicon(doantor)][.]" | ||
|
||
if(prefs.unlock_content) | ||
if(prefs.toggles & PREFTOGGLE_MEMBER_PUBLIC) | ||
var/icon/palm = icon(CHAT_BADGES_DMI, "Trusted") | ||
. = "[bicon(palm)][.]" | ||
|
||
if(!holder) | ||
return | ||
|
||
// Config disallows using Russian so this is the way | ||
var/rank | ||
switch(holder.rank) | ||
if("Хост") | ||
rank = "Host" | ||
if("Ведущий Разработчик") | ||
rank = "HeadDeveloper" | ||
if("Старший Администратор") | ||
rank = "HeadAdmin" | ||
if("Банда") | ||
rank = "Streamer" | ||
if("Админ") | ||
rank = "GameAdmin" | ||
if("Триал Админ") | ||
rank = "TrialAdmin" | ||
if("Ментор") | ||
rank = "Mentor" | ||
if("Разработчик") | ||
rank = "Developer" | ||
if("Маппер") | ||
rank = "Mapper" | ||
if("Спрайтер") | ||
rank = "Spriceter" | ||
|
||
var/icon/rank_badge = icon(CHAT_BADGES_DMI, rank) | ||
. = "[bicon(rank_badge)][.]" | ||
|
||
#undef CHAT_BADGES_DMI |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters