ID:148346
 
my hud thing wont show up on my game.and there is no error eother

world
client
New()
new/obj/huds/Who(src.screen)
new/obj/huds/Say(src.screen)
new/obj/huds/Credits(src.screen)
..()

obj/huds
Who
name = "Who"
icon='huds.dmi'
icon_state="who"
layer=MOB_LAYER+6
screen_loc="1,2"
New(client/C)C.screen += src
Click()

If u could help please help me
usr.Who()
the hud objects should be created in src.client, not src.screen

world
client
New()
new/obj/huds/Who(src.client)
new/obj/huds/Say(src.client)
new/obj/huds/Credits(src.client)
..()

obj/huds
Who
name = "Who"
icon='huds.dmi'
icon_state="who"
layer=MOB_LAYER+6
screen_loc="1,2"
New(client/C)C.screen += src
Click()
usr.Who()

also, indent the vars and procs that belong to Who.

I'm pretty sure this should work, but i'm not really the best programmer.
i tried what you guys posted with the who verb, but how would you do that for an attack command? I followed the same steps, and it doesnt have any errors, but it does when I go into the game, and click the button. Can anyone help me?
In response to Shizuka
Shizuka wrote:
the hud objects should be created in src.client, not src.screen

world
client
New()
new/obj/huds/Who(src.client)
new/obj/huds/Say(src.client)
new/obj/huds/Credits(src.client)
..()

Actually you weren't far off, but there's a problem: That should just be src. The client has no client var.

Lummox JR
In response to Lummox JR
if you're still having problems... looks at dantom's screen builder. It might offer some sort of a solution to your problem.