Post[Tutorial] Adding emblems to on-display text

Posts 1–6 of 6 · Page 1 of 1
[Tutorial] Adding emblems to on-display text
Adding Emblems To On-Display Text


In this guide i explain:
  1. Showing emblems on ingame screen
  2. Adding simple text under the emblem
  3. Adding colors to the text
  4. Line of code you can change to change the sound played when emblem comes up


ok so i will add a code here and explain how it works under:
notifyData = spawnstruct();
notifyData.iconName = "rank_prestige10"; //Icon, 10th prestige
notifyData.titleText = "Text"; //Line 1
notifyData.notifyText = "Text"; //Line 2
notifyData.notifyText2 = "Text"; //Line 3
notifyData.glowColor = (0.3, 0.6, 0.3); //RGB Color array divided by 100
notifyData.sound = "mp_level_up"; //Sound, level up sound here
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
ok so the actual thing in the code above that displays the icon of the 10th prestige emblem is:

notifyData.iconName = "rank_prestige10"; //Icon, 10th prestige

then under u can easely add me text like this:

notifyData.titleText = "Text"; //Line 1
notifyData.notifyText = "Text"; //Line 2
notifyData.notifyText2 = "Text"; //Line 3
and then simply add color to it:
notifyData.glowColor = (0.3, 0.6, 0.3); //RGB Color array divided by 100
The line:

notifyData = spawnstruct();

means that when you spawn it comes up.


This is for the sound that plays when the emblem appears on the screen:

notifyData.sound = "mp_level_up"; //Sound, level up sound here

Credits:

Abstract - for teaching me to do this whith his guide (link to his guide i learn this from)
i hope works >.< and dont forget to thank [If it works xD]
was i fast enough in posting the guide?
lol i posted after like 15 mins xD
EDIT: 13 mins to be exact :P
You forgot to mention that you need to precache the icon.....
any screenshots of the final outcome?
@TheLynx ,use your imagenation xD

jk, i will upload a image as soon as i can =)
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?