Another hud... except by me

Tricxtas HUD

Yerp, I got bored so I drew some bad graphics and made a hud out of it
Features:
-Mouse over read outs on ap,mp and health
-Drag function which saves, so it will be like that when you log back in
-All the readouts in one small handy area
-yer thats it…

// NPC made by tricxta
if (playerenters || timeout){
  showstats 1792;
  if (!isweapon)toweapons -hudsystem;
  this.placex=strtofloat(#s(client.hudx));
  this.placey=strtofloat(#s(client.hudy));
  showimg 500,main-hud.png,this.placex,this.placey;
  changeimgvis 500,4;
  showtext 502,this.placex + 3,this.placey + 55,arial,l,Graalats:#v(playerrupees);
  showtext 503,this.placex + 5,this.placey + 35,arial,l,Bombs:#v(playerbombs);
  showtext 504,this.placex + 5,this.placey + 45,arial,l,Arrows:#v(playerdarts);
  showtext 505,this.placex + 97,this.placey + 9,arial,l,HP;
  showtext 506,this.placex + 97,this.placey + 33,arial,l,MP;
  showtext 507,this.placex + 97,this.placey + 58,arial,l,AP;
  for (this.i=502;this.i<507;this.i++){
    changeimgcolors this.i,,,,;
    changeimgzoom this.i,.6;
    changeimgvis this.i,5;
  }
  showimg 508,hud-bar.png,this.placex + 114,this.placey + 10;
  changeimgpart 508,0,0,playerhearts/playerfullhearts*107,11;
  changeimgcolors 508,1,0,0,1;
  changeimgvis 508,4;
  showimg 509,hud-bar.png,this.placex + 114,this.placey + 34;
  changeimgpart 509,0,0,playermp/100*107,11;
  changeimgcolors 509,0,0,1,1;
  changeimgvis 509,4;
  showimg 510,hud-bar.png,this.placex + 114,this.placey + 59;
  changeimgpart 510,0,0,(playerap/100)*107,11;
  changeimgcolors 510,1,1,0,1;
  changeimgvis 510,4;
  if (playerhearts==0)hideimg 508;
  if (playermp==0)hideimg 509;
  if (playerap==0)hideimg 510;
  showimg 511,#W,this.placex + 23-(imgwidth(#W)/2),this.placey + 24 -(imgheight(#W)/2);
  changeimgzoom 511,.7;
  changeimgvis 511,5;
  if (issparringzone)showtext 512,this.placex + 64,this.placey + 25,arial,c,Spar;
  else if (nopkzone)showtext 512,this.placex + 64,this.placey + 25,arial,c,No PK;
  else showtext 512,this.placex + 64,this.placey + 25,arial,c,PK;
  changeimgcolors 512,0,0,0,0;
  changeimgzoom 512,.6;
  changeimgvis 512,5;
  if (leftmousebutton && mousescreenx in |this.placex,this.placex+250| && mousescreeny in |this.placey,this.placey+80|){
    setstring client.hudx,#v(int(mousescreenx)-125);
    setstring client.hudy,#v(int(mousescreeny)-40);
  }
  if (mousescreenx in |this.placex+114,this.placex+144+107| && mousescreeny in |this.placey+9,this.placey+9+11|){
    showtext 513,mousescreenx,mousescreeny,arial,bc,#v(playerhearts)/#v(playerfullhearts);
    changeimgzoom 513,.6;
    changeimgvis 513,6;
  }
  else if (mousescreenx in |this.placex+114,this.placex+114+107| && mousescreeny in |this.placey+34,this.placey+34+11|){
    showtext 513,mousescreenx,mousescreeny,arial,bc,#v(playermp)/100;
    changeimgzoom 513,.6;
    changeimgvis 513,6;
  }
  else if (mousescreenx in |this.placex+114,this.placex+114+107| && mousescreeny in |this.placey+59,this.placey+59+11|){
    showtext 513,mousescreenx,mousescreeny,arial,bc,#v(playerap)/100;
    changeimgzoom 513,.6;
    changeimgvis 513,6;
  }
  else hideimg 513;
  timeout=0.05;
}

It could just be me, however just printing the numbers for HP,MP, and AP would be a lot less tedious for the player. Having to put my mouse over a bar to see those values just seems like a waste of time. Other than that though it’s okay…

EDIT: forgot text doesn’t have a damn alpha

: \ Screenshots.

why would want screenshots…just dont be lazy and copy and paste this shit into a level. Im amazed to see no-ones like “:eek: wowzas dude, your hud can be dragged…im amazed coz ive never seen a hud like that!”

___Merged doublepost__________________

also if someone could draw some mad ass graphics for this I would like to see them, its a shame im no good at drawing with the acception of a few things. You just gotta be able to picture an idea and I cant do that :frowning:

LOL No. Screenshots.

[QUOTE=tricxta;59694]“:eek: wowzas dude, your hud can be dragged…im amazed coz ive never seen a hud like that!”[/QUOTE]

That’s because Agret told me to do it for mine. I’m pretty sure you took the idea from my HUD thread. It’s also evident that you were thinking of my HUDs by putting “Another HUD, except by me” in your thread name.

Also, screenshots or it doesn’t work >:|

So what if I stole the idea, you were too lazy to do it and I was doing it to see put it on this to see how much I get flamed…
Also I updated one of the graphics for it to something a bit better defined

screenshots away!

Make the AP bar something that changes colors.
Bonus points if you use a bunch of bars and not changeimgcolors.
Important for people who don’t use Direct3D(Lights) (Me, Spooon, a few others)

Edit: Add the screenshots to the first post too.

hmmmm change colours… well…seems silly using multiple images. I simply refuse to!

What is it too much to change the hue of something in an image editor and put it on a sprite sheet?

also writing a formula for AP colors is retarded since there not consistent, yellow on one end and black on the other… if it was red to blue then yes maybe it could have been achieved but nope, it cant

___Merged doublepost__________________

and yes yen, it is

O.o you know the colors change approximately 10 AP from each other, right? and if they did it 5 at a time it would be 20 images. You’re lazy >:|

[QUOTE=Yenairo;59706]
Make the AP bar something that changes colors.
Bonus points if you use a bunch of bars and not changeimgcolors.
Important for people who don’t use Direct3D(Lights) (Me, Spooon, a few others)

Edit: Add the screenshots to the first post too.
[/QUOTE]

It’d be stupid to use 100 images just to compensate for people who don’t use lights.

Though he could just slap a showpoly under the HUD itself to mimic the effect, and changeimgcolor that, since the bar has no shading or anything.

right on

Merged doublepost_______________

[QUOTE=Yenairo;59713]O.o you know the colors change approximately 10 AP from each other, right? and if they did it 5 at a time it would be 20 images. You’re lazy >:|[/QUOTE]

Maybe when I get bored Ill make a sprite sheet with all the colours. How bout that?

Shiny, 20 images. Not 100.
Just the important colors would work too…

Like Black, Dark Red, Red, White, Green, Light Green, Cyan, Blue, Yellow.

[QUOTE=Yenairo;59721]
Shiny, 20 images. Not 100.
Just the important colors would work too…

Like Black, Dark Red, Red, White, Green, Light Green, Cyan, Blue, Yellow.
[/QUOTE]

Then you’re half-assing it.

oh dear…whats the bet this thread will be closed before 24 hours is up?

[QUOTE=Shiny;59726]Then you’re half-assing it.[/QUOTE]

Yeah, but sometimes it’s a factor of people don’t notice things so they can’t appreciate it. So some things are okay to half ass.

[QUOTE=Yenairo;59732]Yeah, but sometimes it’s a factor of people don’t notice things so they can’t appreciate it. So some things are okay to half ass.[/QUOTE]
That’s a poor approach to development.