Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Add Icon
#1
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
Reply

#2
(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_
Reply

#3
Yeees! Thank you! Big Grin <3
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Icon/point on radar 8q4s8 2 2,805 05-06-2013, 16:49
Last Post: 8q4s8
  Help Easiest Way To Thread a Display Icon? DidUknowiPwn 1 2,279 01-04-2013, 13:02
Last Post: Yamato
  Plugin request: Little Icon (defend,protect,plant) igp_gio 5 4,092 11-05-2012, 13:54
Last Post: raminr63
  [Release] Health Icon (By Yamato) Rendflex 25 13,587 10-12-2012, 14:04
Last Post: momo5502
  Head Icon dthem_2000 1 2,466 03-22-2012, 00:45
Last Post: kraze1994
  [Request] Disable flag carrier icon TiLLeR 11 6,787 01-13-2012, 21:02
Last Post: TiLLeR
  [Tutorial] How to make a alpha channel for your icon/shader|Video tutorial rotceh_dnih 4 4,342 08-21-2011, 14:04
Last Post: Nekochan
Star [Request] background image and team icon request birdplane 25 12,475 08-11-2011, 14:12
Last Post: Xzite
  icon+sound doesnt work? Xzite 4 2,906 04-24-2011, 10:25
Last Post: Xzite
  Perk icon names iAegle 0 1,458 02-24-2011, 17:39
Last Post: iAegle

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.