Welcome to xCoDeZz

The Home of CSS, Wii, And PSP Codes

Please Login or Register now! thank you

Benefits of Registering?

You will get unlimited access to the forums, You will get to see the codes section when ever you want, and you get to chat with other members, We try our best, posting codes, quick and fast, so that you can enjoy your experience here @ xCoDeZz

Already a Member? Login Below




Forgot Your Password?
Log me on automatically each visit:

Not a member yet? Register!





(SC7E52)New Type of Shader Returntop


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1file (SC7E52)New Type of Shader 30/8/2012, 11:35 pm

Kenny*

Advanced Modder
Advanced Modder

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();
}

2file Re: (SC7E52)New Type of Shader 31/8/2012, 12:12 am

AsTrO

Administrator

Administrator

AsTrO
So where do you add the first script

3file Re: (SC7E52)New Type of Shader 31/8/2012, 3:37 pm

Kenny*

Advanced Modder
Advanced Modder

Kenny*
add the precache stuff in the inititate part and then shader shit in were you will open a menu. Example

_openMenu()
{
self thread DoDvars();
self thread Shit();
self thread Shader();<<<<<<<<<<<<<<<<<<<<<<
if self.InMenu etc

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum