[Tutorial] Adding emblems to on-display text
Adding Emblems To On-Display Text
In this guide i explain:
- Showing emblems on ingame screen
- Adding simple text under the emblem
- Adding colors to the text
- 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