From afff99d4165f26a0b4a2aa9ffa3b89915dbdf36f Mon Sep 17 00:00:00 2001 From: quotefox Date: Fri, 20 Aug 2021 00:38:46 +0100 Subject: [PATCH] Pins system pins system --- code/datums/elements/flavor_text.dm | 7 +++++++ code/modules/client/preferences.dm | 4 ++++ code/modules/client/preferences_savefile.dm | 2 ++ hyperstation/icons/chat/pins.dmi | Bin 0 -> 488 bytes hyperstation/icons/mobs/head.dmi | Bin 423 -> 481 bytes .../code/modules/client/preferences_savefile.dm | 3 ++- 6 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 hyperstation/icons/chat/pins.dmi diff --git a/code/datums/elements/flavor_text.dm b/code/datums/elements/flavor_text.dm index 462b1121..e3dc28ee 100644 --- a/code/datums/elements/flavor_text.dm +++ b/code/datums/elements/flavor_text.dm @@ -83,8 +83,15 @@ GLOBAL_LIST_EMPTY(mobs_with_editable_flavor_text) //et tu, hacky code var/mob/living/carbon/human/L = target if(L.gender) examineTabOutput += "[icon2html('hyperstation/icons/chat/gender.dmi', world, L.gender)]" + examineTabOutput += "[L.name] " examineTabOutput += "([L.dna.custom_species ? L.dna.custom_species : L.dna.species.name])" + + if(L.client.prefs.pins) //character has pins + var/P = "" + for(P in L.client.prefs.pins) + examineTabOutput += "[icon2html('hyperstation/icons/chat/pins.dmi', world, P)]" //show pins! + examineTabOutput += "" examineTabOutput += "
[url_encode(msg)]" if(ismob(target)) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 1ba1677b..4e308742 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -105,6 +105,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) var/roleplayroles = FALSE //for the roleplay roles var/importantroles = FALSE //for things that define as important. + var/datum/species/pref_species = new /datum/species/human() //Mutant race var/list/features = list("mcolor" = "FFF", "tail_lizard" = "Smooth", @@ -233,6 +234,9 @@ GLOBAL_LIST_EMPTY(preferences_datums) var/unlock_content = 0 var/vip = 0 + //visable pins! + var/list/pins = list() + var/list/ignoring = list() var/clientfps = 60 diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index 6027fd3d..0db1cde1 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -144,6 +144,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car S["sillyroles"] >> sillyroles S["roleplayroles"] >> roleplayroles S["importantroles"] >> importantroles + S["pins"] >> pins //try to fix any outdated data if necessfary if(needs_update >= 0) @@ -265,6 +266,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car //Hyper WRITE_FILE(S["noncon"], noncon) + WRITE_FILE(S["pins"], pins) return 1 diff --git a/hyperstation/icons/chat/pins.dmi b/hyperstation/icons/chat/pins.dmi new file mode 100644 index 0000000000000000000000000000000000000000..6bf0a30b397ce5778786a1c7731740a21a357eed GIT binary patch literal 488 zcmVP)iSoK#7YpC9|j)B*Dd*R+N~V z3Sq<5BxM$rWTYfk#v2l^)CiYSWd&D17qC+SHVQIn$Yl>(S(Ti2o$#MPXidwV$JtE=ioY{N7sD6^JD=yQd5sch>mCk z5bgEb9U_>{OpUkz+>xN==Manle`O#ARHuN*R0)ageJu-w+71WtmT{+Apr&*pG~HQG z`hSS1q###A6*Eoo|aoWz0;k(Mm#WwEYdl&Zx5Bjei$Af;JOX4_v zToIzDv>;Sxj#EPObIwyj^_XK4;GQ_5TH+jIiMPO6x<0E>q=z)s--Pae`JW}1yq?rN ezY%MFvCS9AV+k6E#7}|%000020 zB>(^a%gf6;i=%(y|0T}<{2JJ+00001bW%=J06^y0W&i*Hhml`!e<7%{AhD>VG9$4h z-UydcWd&D17qEi?;y5)KPRQ0;0002eNklPy5C-6r7^B$uHXux3f&);% z1`J?D(8`L!DXbj97%F>Y0%QVk7oRr1JCkd)GXK~8@9zEp(Qg=I7Fzb~gO~?y9vQwM zvlm+K!7~TS!N(VffBjb@`-LcqmfArWriq)AOcboLgcW#VPBhM9C#3PmI3WN40C<~} zCCk&I5E~mFk78U_r=6RN>bzDjL?7+RX9ZjGdBH5_2l;^j002O7v9vt5v^mvn&mQW& zl-eHBcd8rm-fG$29#Rs>Eaj?(fanP zA>Sbd3DyLa-i>}w*?83r4l^=pKR)3KfNcgVnW)=#W4@xwprXi&u#M6-hH^~-@SXYh3Ob6Mw<&;$Uxe|Urd diff --git a/modular_citadel/code/modules/client/preferences_savefile.dm b/modular_citadel/code/modules/client/preferences_savefile.dm index 1ce337fa..1b08f4c1 100644 --- a/modular_citadel/code/modules/client/preferences_savefile.dm +++ b/modular_citadel/code/modules/client/preferences_savefile.dm @@ -99,7 +99,8 @@ WRITE_FILE(S["feature_has_anus"], features["has_anus"]) WRITE_FILE(S["feature_butt_size"], features["butt_size"]) WRITE_FILE(S["feature_butt_color"], features["butt_color"]) - + //pins + WRITE_FILE(S["pins"], pins) //gear loadout if(islist(chosen_gear))