08-04-2011, 09:24
08-04-2011, 09:35
(08-04-2011, 09:24)Craa4k Wrote: [ -> ]Hello, I am looking to add icon or I seeing a mod. I know the name of the icon but not the code ...
Thank you, Craa4k
first add the icon in init()
like:
precacheShader("cardtitle_hazard_3");
then I do usually this:
Code:
CreatePlayerHUD()
{
self.HintText = self createFontString( "hudbig", 1 );
self.HintText setPoint( "RIGHT", "TOP", 0, 100 );
self.Title = self createIcon("cardtitle_hazard_3", 180, 30);
self.Title.horzAlign = "right";
self.Title.vertAlign = "top";
self.Title.x = -165;
self.Title.y = 2.5;
self.Title.foreground = false;
}
then you add the self thread to onplayerspawned()
like:
Code:
self thread CreatePlayerHUD();
_Smile_Man_
08-04-2011, 09:46
Yeees! Thank you!
<3
