Just do a text element...hello does anyone know how to make a welcome mssg for a bo2 zombie menu that shows up in the middle above on the screen when you spawned in the map
welcomeMessage()
{
notifyData = spawnstruct();
notifyData.titleText = "Menu Name";
notifyData.notifyText = "^2Status: " + verificationToColor(player.status);
notifyData.glowColor = (0,0,0);
notifyData.duration = 15;
notifyData.font = "hudbig";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes_zm\_hud_message::notifyMessage(notifyData);
}
Just do a text element...
i did this but it dont show up
self thread welcomeMessage();
Code:welcomeMessage() { notifyData = spawnstruct(); notifyData.titleText = "Menu Name"; notifyData.notifyText = "^2Status: " + verificationToColor(player.status); notifyData.glowColor = (0,0,0); notifyData.duration = 15; notifyData.font = "hudbig"; notifyData.hideWhenInMenu = false; self thread maps\mp\gametypes_zm\_hud_message::notifyMessage(notifyData); }
What @Candy is telling you is that you have to create a own text element for your welcome message.
PrintMessageToEntry(<string>, <timeplus (int)>)
self PrintMessageToEntry("Message to Print");
<timeplus (int)>
empty, it won't display longer.self PrintMessageToEntry("Created by CabCon");
PrintMessageToEntry(String,timeplus)
{
if(!isDefined(level.message_spwan))
{
level.message_spwan = spawnstruct();
level.message_spwan = self createText(1.5, 5, String, "CENTER", "CENTER", 0, -120, 1);
level.message_spwan.glow = true;
level.message_spwan.glowColor = (1,1,1);
level.message_spwan.hideWhenInMenu = true;
level.message_spwan setCOD7DecodeFX( 100, int(10*1000), 600 );
level.message_spwan setPulseFX( 100, int(10*1000), 1000 );
if(isEmpty(timeplus))
timeplus = 0;
//L(String.size+" | Print Duration : "+(3+(String.size/10*3))+timeplus);
wait 3+(String.size/3)+timeplus;
level.message_spwan affectElement("alpha", 1, 0);
wait 1;
level.message_spwan clear(self);
level.message_spwan = undefined;
self notify("MessageSpawnNew");
//L("PrintMessageToEntry() say --> notify MessageSpawnNew");
}
else
{
//L("PrintMessageToEntry() say --> waittill for MessageSpawnNew");
self waittill("MessageSpawnNew");
self PrintMessageToEntry(String);
}
}
isEmpty(var)
{
if(var == "" || !isDefined(var))
return true;
else
return false;
}
createText(fontSize, sorts, text, align, relative, x, y, alpha, color)
{
uiElement = self createfontstring("default", fontSize);
uiElement setPoint(align, relative, x, y);
uiElement settext(text);
uiElement.sort = sorts;
uiElement.hideWhenInMenu = true;
if( isDefined(alpha) )
uiElement.alpha = alpha;
uiElement.color = (1,1,1);
//Overflow fix
//uiElement.type = "text";
//addTextTableEntry(uiElement, getStringId(text));
//uiElement setSafeText(self, text);
return uiElement;
}
Just change the color?how to get the color like the bo2 sentinel mod menu that it glows but then purple
i did but i dont get the glow
like this i mean
There is no glow. Its just a shader.see how the green glows