//hud code:
obj
hud
HUD
layer = 99999999
icon = 'buttons.dmi'
say
icon_state = "say"
Click()
usr.say()
New(client/C)
screen_loc = "1,1"
C.screen+=src
worldsay
icon_state = "wsay"
Click()
usr.OOC()
New(client/C)
screen_loc = "2,1"
C.screen+=src
save
icon_state = "save"
Click()
usr.SaveK()
New(client/C)
screen_loc = "3,1"
C.screen+=src
client/New()
..()
new/obj/hud/HUD/say(src)
new/obj/hud/HUD/worldsay(src)
new/obj/hud/HUD/save(src)
//say code:
var/smiley/S=new
mob
verb //tried making this a proc :P same result.
say(msg as text)
set category = "Commands"
msg=S.ParseHTML(msg)
if(filter(msg,profane) == TRUE) //if the msg has profanity in it
src.profane() // call the proc
return //stop it from sending
if(filter(msg,bannedwords) == TRUE) // if the msg has banned words in it
src.bannedwords() //call the proc
return //stop it from sending
else //if it checks out
if(spamcheck == TRUE)//if the player is spamming
src << "Spam rate exceeded please wait a moment and try again!"//tell him to wait for a second
return //stop it from sending
else//if the message is ok to send
src.spamcheck()//check for spam
view() << "[src] says: [msg]" // send the world the message
if(log == 1)//if logging is turned on
text2file("[time2text(world.realtime)]:[src] says, [msg]","log.txt") // add it to the log
Problem description:
ok thing is, when i click the "say" button the input box doesnt pop up. it just sends a blank message :( any idea why?