1. obj
hud
HUD
layer = MOB_LAYER + 1
icon = 'HUD.dmi'
say
icon_state = "say"
Click()
var/T = input("say")as null|text
if(!T)
return
else
view() << "([usr]) (says) [T]"
New(client/C)
screen_loc = "1,1"
C.screen+=src
worldsay
icon_state = "worldsay"
Click()
var/T = input("wsay")as null|text
if(!T)
return
else
world << "([usr]) (wsays) [T]"
New(client/C)
screen_loc = "2,1"
C.screen+=src
stygianrogue
icon_state = "stygianrogue"
Click()
world << "~All hail StygianRogue! heh heh heh, thats if you want to. :)~"
New(client/C)
screen_loc = "2,1"
C.screen+=src
client/New()
..()
new/obj/hud/HUD/say(src)
new/obj/hud/HUD/worldsay(src)
new/obj/hud/HUD/stygianrogue(src)
2. my attack hud.obj/Attack
screen_loc = "1,1"
Click()
usr.Attack()
mob/Login()
..()
client.screen += new /obj/Attack
obj
attack
icon = 'button.dmi'
icon_state = "button"
ID:161951
Mar 10 2008, 6:20 pm (Edited on Mar 10 2008, 6:50 pm)
|
|
new/obj/hud/HUD/x(src)
\/
new/obj/hud/HUD/x(src.client.screen)
Add the second hud as you would the first, if not; join them as one. :/