○ Fixes for announcements and comm consoles.

○ FINALLY FIXED THE REQUEST CONSOLES BEING SHITTY WOOOOOOOO
○ You can now do line breaks in the admin centcom announcements, just simply hit enter.

○ You can now name portable / constructed turrets properly by using a pen on their frame before you finalize the construction. Joy!


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2449 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
vageyenaman@gmail.com
2011-10-29 20:20:39 +00:00
parent c7daef1773
commit 313d99d003
5 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
/proc/captain_announce(var/text)
world << "<h1 class='alert'>Captain Announces</h1>"
world << "<span class='alert'>[sanitize(text)]</span>"
world << "<span class='alert'>[html_encode(text)]</span>"
world << "<br>"

View File

@@ -2,8 +2,8 @@
world << "<h1 class='alert'>[command_name()] Update</h1>"
if (title && length(title) > 0)
world << "<h2 class='alert'>[sanitize(title)]</h2>"
world << "<h2 class='alert'>[html_encode(title)]</h2>"
world << "<span class='alert'>[sanitize(text)]</span>"
world << "<span class='alert'>[html_encode(text)]</span>"
world << "<br>"

View File

@@ -694,6 +694,7 @@ Neutralize All Unidentified Life Signs: []<BR>"},
Turret.cover=new/obj/machinery/porta_turret_cover(src.loc)
Turret.cover.Parent_Turret=Turret
Turret.cover.name = finish_name
del(src)
else if(istype(W, /obj/item/weapon/crowbar))

View File

@@ -207,7 +207,7 @@ var/list/obj/machinery/requests_console/allConsoles = list()
screen = 0
priority = -1
if(href_list["writeAnnouncement"])
src.message = strip_html(input(usr, "Write your message", "Messanger", ""))
src.message = input(usr, "Write your message", "Messanger", "")
src.priority = href_list["priority"]
while (findtext(src.message," ") == 1)
src.message = copytext(src.message,2,lentext(src.message)+1)
@@ -217,8 +217,7 @@ var/list/obj/machinery/requests_console/allConsoles = list()
announceAuth = 0;
screen = 0
if(href_list["sendAnnouncement"])
src.message = strip_html(message)
world << "<b><font color='red' size='3'>[department] announcement:</font> <font color='black' size='3'>[sanitize(message)]</font></b>"
world << "<b><font size = 3> <font color = red>[department] announcement:</font color> [html_encode(message)]</font size></b>"
announceAuth = 0
message = ""
screen = 0

View File

@@ -66,6 +66,7 @@ should be listed in the changelog upon commit tho. Thanks. -->
<li><b>Doohl updated:</b>
<ul>
<li>More hairs added and a very long beard.</li>
<li>Finally fixed the request console announcements going <b><font color = red>AMP AMP AMP</font color></b> all the time when you use punctuation.</li>
</ul>
</li>
</ul>