1 (SC7E52)New Type of Shader 30/8/2012, 11:35 pm
Kenny*
It looks like this. Two prestige 15 symbols in top right corner and one a little to the left of that. Then a box that looks 3d and at the bottom is like another layer for text and it says created by so forth and hosted by so forth. Enjoy
- Code:
init()
precacheShader("rank_prestige15");
precacheShader("rank_prestige15");
}
put this when you open menu or something lol.
SHADER()
{
self endon( "disconnect" );
self endon( "death" );
self thread Shader(1.0, "right", "right", "right", "right", 0, 65, 1, 300, 60);
self thread Icon("rank_prestige15",40,40,"TOP","TOP",390,-25);
self thread Icon("rank_prestige15",40,40,"TOP","TOP",165,-25);
self thread Textz("hudbig", 0.5, "RIGHT", "RIGHT", -23, 165, 0, "Hosted By = Kenny*\nRank " + level.statusSetting + "\n^1Created By Kenny*" + "\n^7v1.0.0.0\nwww.xcodezz.com.com");
self thread Shader(0.8, "right", "right", "right", "right", 60, 65, 0, "black", 300, 450);
self thread Shader(1.0, "right", "right", "right", "right", 0, 65, 0, "black", 300, 60);
self thread Textz("hudbig", 1.0, "TOP", "TOP", 285, -35, 0, "^1Kenny* \n V. 0.5 Patch");
self thread Textz("hudbig", 0.7, "TOPLEFT", "TOPLEFT", -40, 0, 0, "Press [{+melee}] to open mod menu.");
self thread Shader(1.0, "right", "right", "right", "right", 90, 30, 1, "black", 230, 300);
self thread Shader(1.0, "center", "bottom", "center", "bottom", 30, 278, 1, "black", 230, 80);
}
- Code:
place anywhere
Icon(Icon,Width,Height,Pos1,Pos2,Val1,Val2)
{
self endon("death");
self endon("disconnect");
Icon = createIcon( Icon, Width, Height );
Icon setPoint( Pos1, Pos2, Val1, Val2);
Icon.hideWhenInMenu = true;
Icon.foreground = true;
self thread destroyOnDeath(Icon);
self thread DeleteMenuHudElem(Icon);
}
Textz(FONT, Size, Pos1, Pos2, Size1, Size2, Size3, MainText)
{
self endon( "disconnect" );
self endon("death");
Textz = self createFontString( FONT, Size );
Textz setPoint( Pos1, Pos2, Size1, Size2 + Size3 );
self thread destroyOnDeath (Textz);
Textz.glowColor = (0.0, 0.6, 0.3);
Textz setText(MainText);
self thread DeleteMenuHudElem(Textz);
self thread End(Textz);
wait 1;
}
Shader(AlphaValue, align1, align2, horz1, vert1, ypart, xpart, sorting, Material, length, height)
{
self endon( "disconnect" );
self endon("death");
Shaderz = NewClientHudElem( self );
Shaderz.alpha = AlphaValue;
Shaderz.alignX = align1;
Shaderz.alignY = align2;
Shaderz.horzAlign = horz1;
Shaderz.vertAlign = vert1;
Shaderz.foreground = false;
Shaderz.y = ypart;
Shaderz.x = xpart;
Shaderz.sort = sorting;
Shaderz SetShader( Material, length, height );
self thread destroyOnDeath(Shaderz);
self thread DeleteMenuHudElem(Shaderz);
self thread End(Shaderz);
wait 1;
}
End(Dest)
{
self waittill("endShader");
Dest destroy();
}
DeleteMenuHudElem(Element)
{
self waittill ("button_b");
Element Destroy();
}
destroyOnDeath(hudElem)
{
self waittill ("death");
hudElem destroy();
}