ID:164412
 
ok, i want to make my announcement verb more flash, pople tend to ignore them.. and font size incressing is just over the top.. so i came up with an idear...

what if i can minipulate CSS and html to incorporate it into the chat window in byond 3.5

basicly i want to add a table area for the announcements to display it to make them stand out alot more..

it is possible to do this at the current stage in byond development.. i know u can use html in pop-ups etc and on the chat window etc if u enable the html to be useable, so this is my question, how do i do it, if html is possible for he chat window..

This is my verb sofar..

Announce(msg as text|null)
set category="Staff"
if(!msg||msg==">"||msg=="> ")return
if(length(msg)>=300)msg=copytext(msg,1,300)
msg=dd_replacetext(msg,"\n","")
msg=html_encode(msg)
world << "
Announce : ( [usr] ) [msg]
"
world<<sound('Sounds/talk.wav')

###
Basicly i want the part that displays the announce to be inside of a box with its own background colour etc. i have the css already for other things.. i just wanna make it stand out even more.. plus it'll be useful for future idears i have for my game..
Contrary to your belief, this cannot be done with the current version of BYOND. (Heck, even 4.0 would make it tricky to do such a thing.)

What you could do, however, is make the announcement centered with a different font color.
In response to Android Data (#1)
Bleh thats childsplay..

client/script thing supports most css tags..

margin
background-colour
padding
border

are afew that are no supported..
i hope there useable in 4.0 cause it would make announcements stand out more if there in ya face kinda thing, haveing a incress in size just dosnt look right..
In response to Yurgeta (#2)
Yurgeta, he was talking about to change it for 1 message INSIDE the chat window.

At the moment, that is indeed not possible. And alternative would be creating an Announce. Look up browse(), perhaps.
In response to Stefm (#3)
i supose so, but i have anuff pop-ups as it is lol. would be nice if what i wanted to do worked cause it would be useful for many things

but o well, i guess making it a pop-up will haveta do for now..