ID:175984
 
how can i make onscreen buttons thats on everyone in my games screen
obj
bar
icon = 'bar.dmi'
screen_loc = "1,1 to 10,1"
New(client/C)
..()
C += src

obj
button
icon = 'button.dmi'
screen_loc = "1,1"
New(client/C)
..()
C += src
Click()
usr <<"This is a button. You clicked it. Good job. >=D"

client
New()
..()
new/obj/bar(src)
new/obj/button(src)

Siientx
In response to Siientx
"C += src" should be "C.screen += src".
In response to Nadrew
thx much
In response to VegeanSX
oo crap i cant get more than on button to work here's what ive got so far
obj
bar
icon = 'bar.dmi'
screen_loc = "4,1 to 10,1"
New(client/C)
..()
C.screen += src

obj
button1
icon = 'button.dmi'
icon_state = "meditate"
screen_loc = "9,1"
New(client/C)
..()
C.screen += src
Click()
usr.Meditate()
obj
button
icon = 'button.dmi'
icon_state = "say"
screen_loc = "10,1"
New(client/C)
..()
C.screen += src
Click()
usr.Say()

client
New()
..()
new/obj/bar(src)
new/obj/button(src)
In response to VegeanSX
forgot to add new/obj/button1(src) at the client new.

Siientx
In response to Siientx
opps stupid me =P